jonas kellens
2009-May-12 20:08 UTC
[asterisk-users] Hangup()-command does not hang up the line
When I call my Asterisk-server from my cell phone on one of the PSTN-numbers that terminate in a FXO-module on my TDM410P Digium card, and in the dialplan the end of a context is reached and Asterisk needs to execute the Hangup()-command, I notice the following : - Asterisk tells me that the conversation was hung up (the log files tell me the command was executed) - On my cell phone I hear silence, no special tone on the line that tells me the call was terminated by Asterisk, AND time keeps on counting on my cell phone as if the duration of the conversation continues. I see the following solution : - At the end of my context, I initiate the Congestion()-application to force the caller to hang up. But I think it must be enough just to call the Hangup()-command to make Asterisk terminate the conversation... But as I said : on my cell phone I see that time keeps on counting as if I'm still connected + no tone that the line was hung up. On the other hand : Asterisk detects the other end really good and registers when the caller has put down his phone and the conversation is terminated by the caller. Also a fax and a busy-tone is well detected. The option busydetect=yes is set in my chan_dahdi.conf... But this is not the problem. Is this a bug ?? Greetingz, Jonas. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090512/edbe100c/attachment.htm
Danny Nicholas
2009-May-12 20:15 UTC
[asterisk-users] Hangup()-command does not hang up the line
I would try hanguponpolarityswitch=yes in my dadhi.conf. _____ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of jonas kellens Sent: Tuesday, May 12, 2009 3:09 PM To: Asterisk Mailing Subject: [asterisk-users] Hangup()-command does not hang up the line When I call my Asterisk-server from my cell phone on one of the PSTN-numbers that terminate in a FXO-module on my TDM410P Digium card, and in the dialplan the end of a context is reached and Asterisk needs to execute the Hangup()-command, I notice the following : - Asterisk tells me that the conversation was hung up (the log files tell me the command was executed) - On my cell phone I hear silence, no special tone on the line that tells me the call was terminated by Asterisk, AND time keeps on counting on my cell phone as if the duration of the conversation continues. I see the following solution : - At the end of my context, I initiate the Congestion()-application to force the caller to hang up. But I think it must be enough just to call the Hangup()-command to make Asterisk terminate the conversation... But as I said : on my cell phone I see that time keeps on counting as if I'm still connected + no tone that the line was hung up. On the other hand : Asterisk detects the other end really good and registers when the caller has put down his phone and the conversation is terminated by the caller. Also a fax and a busy-tone is well detected. The option busydetect=yes is set in my chan_dahdi.conf... But this is not the problem. Is this a bug ?? Greetingz, Jonas. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090512/3882c541/attachment.htm
Gordon Henderson
2009-May-12 21:08 UTC
[asterisk-users] Hangup()-command does not hang up the line
On Tue, 12 May 2009, jonas kellens wrote:> When I call my Asterisk-server from my cell phone on one of the > PSTN-numbers that terminate in a FXO-module on my TDM410P Digium card, > and in the dialplan the end of a context is reached and Asterisk needs > to execute the Hangup()-command, I notice the following : > > - Asterisk tells me that the conversation was hung up (the log files > tell me the command was executed) > - On my cell phone I hear silence, no special tone on the line that > tells me the call was terminated by Asterisk, AND time keeps on counting > on my cell phone as if the duration of the conversation continues.Replace the Asterisk box with a standard analogue phone and see what happens. I suspect you'll see the same. It happens in the UK too. The line will eventually clear, but it may take some time. I used to use it to "transfer" a call - ie. just put the phone back on-hook, then go to another phone and lift it... And you'll see it on old films where the bad guy phones a house and loads up the payphone with lots of money to stop the house being able to hang up the call and dial 999 ... Some exchanges do seem to clear the call much quicker now, but I think it's pot-luck, depending on the exchange and maybe hardware/software they have... Gordon