[asterisk-users] Finish extension (avoid dialplan to silently continue in the next priority of another extension)

Daniel Gonzalez gonvaled at gonvaled.com
Thu Dec 11 09:58:12 CST 2014


Hi,

I have run into a strange behaviour:

[ctx-test]

exten => h,1,NoOp(*** hangup ***)

exten => s,1,NoOp(*** ${EXTEN} ***)
 same => n,...
 same => n,...
 same => n,Hangup()

Strangely, the h extension continues on the priority 2 of the extension s.
Maybe this is caused by the use of same? How can I make sure that an
extension is really ending, something like:

exten => h,1,NoOp(*** hangup ***)
 same => n,RellyEndHere()

For subroutines there is the Return() application, but this can not be used
generally in contexts. Is there any application to finish processing the
extension in the context?


Thanks,

Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20141211/b208fb6c/attachment.html>


More information about the asterisk-users mailing list