[Asterisk-Users] extensions.conf
Nick Barnes
nick at bcn-it.co.uk
Thu Sep 16 00:20:11 MST 2004
Steven suggested:
> You can accomplish your intended function by using either
> Macros, channel variables, or an include.
And one more way to do it (just to show how flexible Asterisk is):
-----------------------
[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]
<snip all exten => s... stuff>
exten => 300,1,Dial(Local/s at iax-demo/n,,g)
exten => 300,2,goto(s,3)
[some-other-menu]
<snip all exten => s... stuff>
exten => 300,1,Dial(Local/s at iax-demo/n,,g)
exten => 300,2,Goto(s,1)
-----------------------
Which, in the given example isn't the most efficient way of doing it!
However, if extension 300 is slightly different in [some-menu] and
[some-other-menu] and therefore can't be managed by an 'include =>
extension-300-stuff' or somesuch, then the advantages of a local dial
command become apparent.
Nick Barnes
Senior Consultant.
More information about the asterisk-users
mailing list