Finish Extension (avoid Dialplan To Silently Continue In The Next Priority Of Another Extension)

Home » Asterisk Users » Finish Extension (avoid Dialplan To Silently Continue In The Next Priority Of Another Extension)
Asterisk Users 2 Comments

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

2 thoughts on - Finish Extension (avoid Dialplan To Silently Continue In The Next Priority Of Another Extension)

  • SGFuZ3VwIGhhbmRsaW5nIGluIEFzdGVyaXNrIGlzIGhvcnJpYmxlIGVub3VnaCB0byBtYWtlIHRo ZSBCdWRkaGEgY3J5Lg0KDQpUaGUgKG1vc3RseSB3b3JraW5nKSBzb2x1dGlvbiBJIGNhbWUgdXAg d2l0aCB3YXMNCg0KMSkgICAgICBBdHRhY2ggYSBoYW5ndXAgaGFuZGxlciB0byB0aGUgc291cmNl IGNoYW5uZWwgYXMgc29vbiBhcyBwb3NzaWJsZSBpbiB0aGUgZGlhbHBsYW4gdG8gZG8gd2hhdGV2
    ZXIgcG9zdCBjYWxsIHdvcmsgd2hpY2ggbmVlZHMgdG8gYmUgZG9uZS4NCg0KMikgICAgICBVc2Ug dGhlIOKAnGfigJ0gYW5kIOKAnEbigJ0gb3B0aW9ucyB0byBEaWFsIHRvIHBsYXkgYW55IG5lZWRl ZCBpbnRlcmNlcHQgbWVzc2FnZXMgcmVxdWlyZWQgYWZ0ZXIgb25lIGxlZyBvZiB0aGUgY2FsbCBo YW5ncyB1cC4NCg0KRnJvbTogYXN0ZXJpc2stdXNlcnMtYm91bmNlc0BsaXN0cy5kaWdpdW0uY29t IFttYWlsdG86YXN0ZXJpc2stdXNlcnMtYm91bmNlc0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IGNvbnRleHRzLiBJcyB0aGVyZSBh bnkgYXBwbGljYXRpb24gdG8gZmluaXNoIHByb2Nlc3NpbmcgdGhlIGV4dGVuc2lvbiBpbiB0aGUg Y29udGV4dD8NCg0KDQoNClRoYW5rcywNCg0KRGFuaWVsDQo

  • Which version of Asterisk are you using?

    Can you provide a log showing the channel continuing on into the s extension?