[Home]

Summary:ASTERISK-05320: Read seems to stop execution in the dial plan if 'User disconnected' is reached.
Reporter:Joshua McClintock (clearwire)Labels:
Date Opened:2005-10-18 19:09:08Date Closed:2011-06-07 14:10:07
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/app_read
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:When I see 'User disconnected' in the console, nothing after it in my dial plan is executed.

Here is an example:

[outbound]

exten => s,1,Read(Digits||4|)
exten => s,2,NoOp(${Digits},${ACCOUNTCODE})
exten => s,3,Gotoif($[${Digits} > 0]?4:5)
exten => s,4,Hangup
exten => s,5,AGI(alert|${CALLERID}|${ACCOUNTCODE})
exten => s,6,Hangup

I generate a call file which hooks up to this context in my dial plan.  I'm using a TDM400P to dial out with.  When I dial up a number, and no one answers, I get 'User disconnected' and nothing past s,1 is executed.
Comments:By: Olle Johansson (oej) 2005-10-19 05:22:01

Well, is user hang up, why should we execute the dial plan at all?

By: Joshua McClintock (clearwire) 2005-10-19 11:57:32

How am I supposed to react to that condition?  I need it to jump priority or something so I can react to that situation.

By: Serge Vecher (serge-v) 2005-10-19 12:04:40

how about an "h" extension - won't that do it for you?

By: Olle Johansson (oej) 2005-10-19 12:27:53

Ok, going to close this. All execution of dial plan always stops at hangup, that's a basic fact about asterisk that should be sorted out on the IRC or in the -users mailing list, not in the bug tracker. Check the "h" extension in the same context - it is executed after the call is hung up.