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

Vincent vincent.delporte at bigfoot.com
Sun Mar 9 14:05:35 CDT 2008


On Sun, 9 Mar 2008 03:11:58 +0100, "Grygoriy Dobrovolskyy"
<megahohol at gmail.com> wrote:
>Two ways, use n priority or add 'g' iption in dial command.
>
>2008/3/9, Jim Duda <jim at duda.tzo.com>:
>>
>> 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)




More information about the asterisk-users mailing list