Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

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


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
gonvaled at gonvaled.com
Guest





PostPosted: Thu Dec 11, 2014 10:58 am    Post subject: [asterisk-users] Finish extension (avoid dialplan to silentl Reply with quote

Hi,
I have run into a strange behaviour:
Quote:
[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:
Quote:
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
Back to top
EWieling at nyigc.com
Guest





PostPosted: Thu Dec 11, 2014 11:09 am    Post subject: [asterisk-users] Finish extension (avoid dialplan to silentl Reply with quote

Hangup handling in Asterisk is horrible enough to make the Buddha cry.

The (mostly working) solution I came up with was
<![if !supportLists]>1) <![endif]>Attach a hangup handler to the source channel as soon as possible in the dialplan to do whatever post call work which needs to be done.
<![if !supportLists]>2) <![endif]>Use the “g” and “F” options to Dial to play any needed intercept messages required after one leg of the call hangs up.

From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Daniel Gonzalez
Sent: Thursday, December 11, 2014 10:58 AM
To: Asterisk Users Mailing List
Subject: [asterisk-users] Finish extension (avoid dialplan to silently continue in the next priority of another extension)


Hi,
I have run into a strange behaviour:
Quote:
[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:
Quote:
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
Back to top
mjordan at digium.com
Guest





PostPosted: Thu Dec 11, 2014 12:05 pm    Post subject: [asterisk-users] Finish extension (avoid dialplan to silentl Reply with quote

On Thu, Dec 11, 2014 at 9:58 AM, Daniel Gonzalez <gonvaled@gonvaled.com> wrote:
Quote:
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?


Which version of Asterisk are you using?

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

--
Matthew Jordan
Digium, Inc. | Engineering Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services