Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[asterisk-users] How Do I continue after Dial Command ??


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





PostPosted: Sat Mar 08, 2008 9:00 pm    Post subject: [asterisk-users] How Do I continue after Dial Command ?? Reply with quote

How do I get a context to continue to execute commands after the caller
hangs up after a Dial command? I'm using the "e" option to the Dial
application. I though the "e" option would allow the context to
continue. This doesn't want to work for me.

I'm using asterisk-1.6.beta5

I never get to "3" below. I get a message saying the "2" ended with a
non-zero status.

[sphinx]
exten => s,1,AGI(MisterHouse.agi,"Sphinx Connect")
exten => s,2,Dial(CONSOLE/1,,e)
exten => s,3,AGI(MisterHouse.agi,"Sphinx Disconnect")
exten => s,4,Hangup

Thanks,

Jim
Back to top
vincent.delporte at bi...
Guest





PostPosted: Sun Mar 09, 2008 2:05 pm    Post subject: [asterisk-users] How Do I continue after Dial Command ?? Reply with quote

On Sun, 9 Mar 2008 03:11:58 +0100, "Grygoriy Dobrovolskyy"
<megahohol at gmail.com> wrote:
Quote:
Two ways, use n priority or add 'g' iption in dial command.

2008/3/9, Jim Duda <jim at duda.tzo.com>:
Quote:

How do I get a context to continue to execute commands after the caller
hangs up after a Dial command? I'm using the "e" option to the Dial
application. I though the "e" option would allow the context to
continue. This doesn't want to work for me.

I'm using asterisk-1.6.beta5

I never get to "3" below. I get a message saying the "2" ended with a
non-zero status.

[sphinx]
exten => s,1,AGI(MisterHouse.agi,"Sphinx Connect")
exten => s,2,Dial(CONSOLE/1,,e)
exten => s,3,AGI(MisterHouse.agi,"Sphinx Disconnect")
exten => s,4,Hangup

What about simply adding the "h" extension?

[sphinx]
exten => s,1,AGI(MisterHouse.agi,"Sphinx Connect")
exten => s,n,Dial(CONSOLE/1,,e)
exten => s,n,AGI(MisterHouse.agi,"Sphinx Disconnect")
exten => s,n,Hangup

exten => h,1,Verbose(Here we are)
exten => h,n,Verbose(Next step)
Back to top
jim at duda.tzo.com
Guest





PostPosted: Sun Mar 09, 2008 3:23 pm    Post subject: [asterisk-users] How Do I continue after Dial Command ?? Reply with quote

Thanks for the responses!

I tried using both the "h" priority and/or the "g" option to Dial.
Neither of these worked for me.

However, the "n" priority works great. I didn't know about this "n"
priority.

Thanks,

Jim

Vincent wrote:
Quote:
On Sun, 9 Mar 2008 03:11:58 +0100, "Grygoriy Dobrovolskyy"
<megahohol at gmail.com> wrote:
Quote:
Two ways, use n priority or add 'g' iption in dial command.

2008/3/9, Jim Duda <jim at duda.tzo.com>:
Quote:
How do I get a context to continue to execute commands after the caller
hangs up after a Dial command? I'm using the "e" option to the Dial
application. I though the "e" option would allow the context to
continue. This doesn't want to work for me.

I'm using asterisk-1.6.beta5

I never get to "3" below. I get a message saying the "2" ended with a
non-zero status.

[sphinx]
exten => s,1,AGI(MisterHouse.agi,"Sphinx Connect")
exten => s,2,Dial(CONSOLE/1,,e)
exten => s,3,AGI(MisterHouse.agi,"Sphinx Disconnect")
exten => s,4,Hangup

What about simply adding the "h" extension?

[sphinx]
exten => s,1,AGI(MisterHouse.agi,"Sphinx Connect")
exten => s,n,Dial(CONSOLE/1,,e)
exten => s,n,AGI(MisterHouse.agi,"Sphinx Disconnect")
exten => s,n,Hangup

exten => h,1,Verbose(Here we are)
exten => h,n,Verbose(Next step)


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
jim at duda.tzo.com
Guest





PostPosted: Sun Mar 09, 2008 4:21 pm    Post subject: [asterisk-users] How Do I continue after Dial Command ?? Reply with quote

I take back that statement about the h extension.

This works fine.

[sphinx]
exten => s,1,AGI(MisterHouse.agi,"Sphinx Connect")
exten => s,2,Dial(CONSOLE/1)

exten => h,1,AGI(MisterHouse.agi,"Sphinx Disconnect")
exten => h,2,Hangup

Thanks for the help!

Jim

Jim Duda wrote:
Quote:
Thanks for the responses!

I tried using both the "h" priority and/or the "g" option to Dial.
Neither of these worked for me.

However, the "n" priority works great. I didn't know about this "n"
priority.

Thanks,

Jim

Vincent wrote:
Quote:
On Sun, 9 Mar 2008 03:11:58 +0100, "Grygoriy Dobrovolskyy"
<megahohol at gmail.com> wrote:
Quote:
Two ways, use n priority or add 'g' iption in dial command.

2008/3/9, Jim Duda <jim at duda.tzo.com>:
Quote:
How do I get a context to continue to execute commands after the caller
hangs up after a Dial command? I'm using the "e" option to the Dial
application. I though the "e" option would allow the context to
continue. This doesn't want to work for me.

I'm using asterisk-1.6.beta5

I never get to "3" below. I get a message saying the "2" ended with a
non-zero status.

[sphinx]
exten => s,1,AGI(MisterHouse.agi,"Sphinx Connect")
exten => s,2,Dial(CONSOLE/1,,e)
exten => s,3,AGI(MisterHouse.agi,"Sphinx Disconnect")
exten => s,4,Hangup
What about simply adding the "h" extension?

[sphinx]
exten => s,1,AGI(MisterHouse.agi,"Sphinx Connect")
exten => s,n,Dial(CONSOLE/1,,e)
exten => s,n,AGI(MisterHouse.agi,"Sphinx Disconnect")
exten => s,n,Hangup

exten => h,1,Verbose(Here we are)
exten => h,n,Verbose(Next step)


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users



_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

H
Back to top
vincent.delporte at bi...
Guest





PostPosted: Mon Mar 10, 2008 12:16 am    Post subject: [asterisk-users] How Do I continue after Dial Command ?? Reply with quote

On Sun, 09 Mar 2008 17:21:47 -0400, Jim Duda <jim at duda.tzo.com> wrote:
Quote:
exten => s,1,AGI(MisterHouse.agi,"Sphinx Connect")
exten => s,2,Dial(CONSOLE/1)

Unless there's a technical reason for this, you should use "n", so you
can easily add/remove instructions without having to renumber
everything:

From

Quote:
exten => h,1,AGI(MisterHouse.agi,"Sphinx Disconnect")
exten => h,2,Hangup

To

Quote:
exten => h,1,AGI(MisterHouse.agi,"Sphinx Disconnect")
exten => h,n,Hangup
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