[Home]

Summary:ASTERISK-09778: Zap Channel stays in use when Hangupcause = 1
Reporter:Andrew Pepler (pep)Labels:
Date Opened:2007-06-28 10:46:55Date Closed:2011-06-07 14:02:53
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Channels/chan_zap
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) consoleoutput.txt
Description:If the number I am calling fails with hangupcause = 1 then the channel I am on becomes unavailable until I restart Asterisk.
The channel does not show up in Core Show Channels.
I am using Dial with options g and M.  When the call ends the dialplan calls an AGI script, plays a message and then hangs up.  
If I then do Zap Show Channel X, PRI FLAGS shows "call" and that channel can no longer be used.  

If hangupcause is any other value I don't get this issue.
Also, if the calling party physically hangs up before the dialplan reaches hangup then the channel is cleared properly.

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

Dialplan:

exten => dial,n,Set(CALLSTATUS=CONGESTION)
exten => dial,n,Set(DIALGROUP=1)
exten => dial,n,While($[${CALLSTATUS}=CONGESTION])
exten => dial,n,Dial(Zap/g${DIALGROUP}/${NUMBER}||gM(callconnect^${CALLREF}^${ACCNO}^${NUMBER}^${RATEORIGIN}))
exten => dial,n,Set(CALLSTATUS=${DIALSTATUS})
exten => dial,n,Set(DIALGROUP=${MATH(${DIALGROUP}+1,i)})
exten => dial,n,GotoIf($[${DIALGROUP}>4]?dial,12)
exten => dial,n,EndWhile
exten => dial,n,AGI(clearcall.agi)
exten => dial,n,Macro(callended)
exten => dial,n,Hangup
Comments:By: Joshua C. Colp (jcolp) 2007-06-29 11:32:26

Could you please supply the actual console output of a call and a zap show channel of the affected channel? Thanks.

By: Andrew Pepler (pep) 2007-07-01 18:27:25

console output uploaded.  I turned PRI Debug on in case it helps.

By: Russell Bryant (russell) 2007-07-05 10:48:28

Can you update to the latest asterisk code in the 1.4 branch?  This may have been fixed by a recent change ...