[Asterisk-Users] extensions.conf

Steve Maroney steve at stevenet.net
Mon Aug 23 07:40:54 MST 2004


Hey guys,

Is there a way to make asterisk return the calling point after the last
command is completed in a context? The goto statement doesn't seem to work
as I expected it too.

For Example:

[iax-demo]
exten => s,1,Playback(demo-abouttotry)
exten => s,2,Dial(IAX2/guest at misery.digium.com/s at default)
exten => s,3,Playback(demo-nogo)


[some-menu]
exten => s,1,Playback(Some-file)
exten => s,2,Playback(another-file)
exten => s,3,Playback(another-file)
exten => s,4,WaitExten(4)
exten => s,5,Queue(some-queue)

exten => 300,1,Goto(iax-demo,s,1)
exten => 300,2,goto(s,3)

[some-other-menu]
exten => s,1,Playback(Some-different-file)
exten => s,2,Playback(some-other-file)
exten => s,3,WaitExten(4)
exten => s,4,Queue(different-queue)

exten => 300,1,Goto(iax-demo,s,1)
exten => 300,2,Goto(s,1)

You see, I want the iax-demo in both contexts, but after the demos done,
I want the caller to be returned to the context, but where depends on
the calling context. Any help ?

Thank you,
Steve




More information about the asterisk-users mailing list