Hi Elder, I would first check the behaviour of your PSTN lines (i.e. nothing to do with Asterisk). In many places PSTN companies allow between 30 to 90 seconds of connection to remain open even if the -called- party, NOT the calling party, has hung-up. Normally this is to allow putting down the phone in one room and picking up in another room without disconnecting the line. Make a small test to verify this and if this is the case you will need to discuss this with your PSTN provider. Harel
Date: Thu, 8 Jul 2010 12:01:40 -0500 From: Daniel - Asterisk <earohua...@gmail.com> Subject: [asterisk-users] Incoming call doesn't finish when internal phone hangs up To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users@lists.digium.com> Message-ID: <aanlktikxafnxhbsws0ov4u5ht3yjbeevuh26vehrg...@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Hello guys, I have this problem when a call is received in my PBX: (Caller) --> (Redirecting Service) --> (E1 PRI) --> (Asterisk PBX) --> (Internal Phone) Reception works fine, but when conversation finishes and the agent at internal phone hangs up, the call at caller's side is still alive for many seconds until it hangs up. The problem is that Telephone Company is billing me acording Caller's duration which is bigger than Asterisk's CDR. The same issue happens when Caller dials E1 PRI directly. In every case Asterisk finishes normally the call as CDR and CLI register correctly. I'm using Asterisk 1.4.21.2 and OpenVox DE210P card. Configuration files follow: zaptel.conf: span=1,1,1,ccs,hdb3 bchan=1-15,17-31 dchan=16 # Span 2: TE4/0/2 "T4XXP (PCI) Card 0 Span 2" span=2,2,1,ccs,hdb3 bchan=32-46,48-62 dchan=47 # Global data loadzone = us defaultzone = us .................... zapata.conf: [channels] language=es context=default rxwink=300 usecallerid=yes hidecallerid=yes usecallingpres=yes callwaitingcallerid=yes threewaycalling=yes transfer=yes canpark=yes cancallforward=yes callreturn=yes echocancel=yes echocancelwhenbridged=yes rxgain=0.0 txgain=0.0 busydetect=yes busycount=yes busypattern=500,500 answeronpolarityswitch=yes hanguponpolarityswitch=yes ;PRI RDSI - SPAN 1 group = 1 context = incoming-1 inmediate=no switchtype=euroisdn signalling=pri_cpe channel => 1-15,17-31 ;PRI RDSI - SPAN 2 group = 1 context = incoming-2 inmediate=no switchtype=euroisdn signalling=pri_cpe channel => 32-46,48-62 ............... Thanks in advance, Elder Arohuanca Lagos Phone: +51 1 991696900 Lima - Peru -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users