[Home]

Summary:ASTERISK-07256: AMD leaves Iax channels open after check and never hang up
Reporter:Rodrigo (roche)Labels:
Date Opened:2006-06-29 12:09:16Date Closed:2006-07-07 09:32:27
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Applications/app_amd
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Asterisk 1.2.9.1, Copyright (C) 1999 - 2006 Digium, Inc. and others.

Running at Centos 4.3 Updated with

Linux asterisk-vicidial 2.6.9-34.0.1.ELsmp #1 SMP Wed May 24 08:14:29 CDT 2006 i686 i686 i386 GNU/Linux

The problem is recurring

The Answering Machine Detection leave a lot of Iax Channels Open

He have to hang on by hand


IAX2/binfone00-31    8369@default:2       Up      AMD(2000|2000|400|5000|120|25|
IAX2/binfone00-26    8369@default:2       Up      AMD(2000|2000|400|5000|120|25|
IAX2/binfone00-15    8369@default:2       Up      AMD(2000|2000|400|5000|120|25|
IAX2/binfone00-16    8369@default:2       Up      AMD(2000|2000|400|5000|120|25|
IAX2/binfone00-33    8369@default:2       Up      AMD(2000|2000|400|5000|120|25|
IAX2/binfone00-32    8369@default:2       Up      AMD(2000|2000|400|5000|120|25|




****** ADDITIONAL INFORMATION ******

We are having some strange problems with the Answering Machine Detect.

In some cases the AMD leave some iax channels open or stucked we have to hang up the channels by hand.

ASTCLI> show channels

Local/XXXXXXXXX@d 8369@default:2 Up AMD(2000|2000|400|5000|120|25
Local/XXXXXXXXX@d 8369@default:2 Up AMD(2000|2000|400|5000|120|25
Local/XXXXXXXXX@d 8369@default:2 Up AMD(2000|2000|400|5000|120|25




show channel Local/XXXXXXXXXX@default-573d,2
-- General --ial*CLI>
Name: Local/XXXXXXXXXX@default-573d,2
Type: Local
UniqueID: 1151536964.14352
Caller ID: XXXXXXXXX
Caller ID Name: V0628172244000000048
DNID Digits: (N/A)
State: Up (6)
Rings: 0
NativeFormat: 64
WriteFormat: 64
ReadFormat: 64
1st File Descriptor: -1
Frames in: 0
Frames out: 0
Time to Hangup: 0
Elapsed Time: 16h2m20s
Direct Bridge: SIP/vonage15-cf3b
Indirect Bridge: SIP/vonage15-cf3b
-- PBX --
Context: default
Extension: xxxxxxxxxxxxxx
Priority: 2
Call Group: 0
Pickup Group: 0
Application: Dial
Data: SIP/xxxxxxxx@vonage15|60|Ttro
Blocking in: ast_waitfor_nandfds
Variables:
BRIDGEPEER=SIP/vonage15-cf3b
DIALEDPEERNUMBER=xxxxxxxxx@vonage15
DIALEDPEERNAME=SIP/vonage15-cf3b


The problem is when the channels reach our limit we lost sound quality.
The agents cant ear to the custumers becase that.
Comments:By: Andrey S Pankov (casper) 2006-06-30 17:32:33

At least you have three channel types involved - chan_iax, chan_sip and chan_local... and it seems like you are using chan_agent as well...

Could you please confirm that this is still an issue with current (>r36460) branch 1.2 code?

By: Rodrigo (roche) 2006-07-06 17:18:40

Sorry, You want that I install a newer version and Test?

Well in few days I going to install a stage server for that.

Sorry for the delay and thanks.


Well in these moment I have a script that check the channels produce by AMD and checkes the elapsed time, If the time is more than 5 minutes Is hang up by the script.

Yes is crappy but at least the agents have a decent quality sound.



Checking the channel  IAX2/binfone00-62
Checking the channel  IAX2/binfone00-29
Checking the channel  IAX2/binfone00-61
Checking the channel  IAX2/binfone00-60
Checking the channel  IAX2/binfone00-58
Checking the channel  IAX2/binfone00-41
Checking the channel  IAX2/binfone00-56
Checking the channel  IAX2/binfone00-19
Checking the channel  IAX2/binfone00-48
Checking the channel  IAX2/binfone00-42
Checking the channel  IAX2/binfone00-38
Checking the channel  IAX2/binfone00-32
Checking the channel  IAX2/binfone00-28
Checking the channel  IAX2/binfone00-53
Requested Hangup on channel 'IAX2/binfone00-53'
Checking the channel  IAX2/binfone00-52
Requested Hangup on channel 'IAX2/binfone00-52'
Checking the channel  IAX2/binfone00-51
Requested Hangup on channel 'IAX2/binfone00-51'
   -- AMD: HANGUP

Requested Hangup on channel 'IAX2/binfone00-50'
Checking the channel  IAX2/binfone00-47
Requested Hangup on channel 'IAX2/binfone00-47'
   -- AMD: HANGUP

Requested Hangup on channel 'IAX2/binfone00-46'
   -- AMD: HANGUP

Requested Hangup on channel 'IAX2/binfone00-18'
   -- AMD: HANGUP

Requested Hangup on channel 'IAX2/binfone00-11'
   -- AMD: HANGUP

Requested Hangup on channel 'IAX2/binfone00-10'
   -- AMD: HANGUP

By: BJ Weschke (bweschke) 2006-07-07 07:49:58

AMD isn't supposed to hang up the channel. All it does is return status and it's up to the person coding the dial plan to take what the next step is. I don't think this is a bug.

By: Rodrigo (roche) 2006-07-07 09:25:57

But How much time Does the amd application takes in order to check a call?

We have channels open by 30 minutes - 2 hours checking AM?

Is that normal? Because that screw my sound quality up once the channels rich our limit.

The show channels show these that is the same for every stucked channel:
Blocking in: ast_waitfor_nandfds



By: BJ Weschke (bweschke) 2006-07-07 09:31:26

furthermore, app_amd isn't a 1.2.X Asterisk application, so if you're running it, someone has backported it and you may have better luck getting support through them than here as we don't know what code is actually running here.

By: BJ Weschke (bweschke) 2006-07-07 09:32:26

this isn't a 1.2.X application.