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

2008-03-09 Thread Vincent
On Sun, 9 Mar 2008 03:11:58 +0100, Grygoriy Dobrovolskyy
[EMAIL PROTECTED] wrote:
Two ways, use n priority or add 'g' iption in dial command.

2008/3/9, Jim Duda [EMAIL PROTECTED]:

 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


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

2008-03-09 Thread Jim Duda
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:
 On Sun, 9 Mar 2008 03:11:58 +0100, Grygoriy Dobrovolskyy
 [EMAIL PROTECTED] wrote:
 Two ways, use n priority or add 'g' iption in dial command.

 2008/3/9, Jim Duda [EMAIL PROTECTED]:
 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


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

2008-03-09 Thread Jim Duda
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:
 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:
 On Sun, 9 Mar 2008 03:11:58 +0100, Grygoriy Dobrovolskyy
 [EMAIL PROTECTED] wrote:
 Two ways, use n priority or add 'g' iption in dial command.

 2008/3/9, Jim Duda [EMAIL PROTECTED]:
 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


___
-- 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


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

2008-03-09 Thread Vincent
On Sun, 09 Mar 2008 17:21:47 -0400, Jim Duda [EMAIL PROTECTED] wrote:
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

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

To

exten = h,1,AGI(MisterHouse.agi,Sphinx Disconnect)
exten = h,n,Hangup


___
-- 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


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

2008-03-08 Thread Jim Duda
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


___
-- 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


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

2008-03-08 Thread Grygoriy Dobrovolskyy
Two ways, use n priority or add 'g' iption in dial command.

2008/3/9, Jim Duda [EMAIL PROTECTED]:

 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


 ___
 -- 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