[asterisk-users] Goto mask
Gabriel Ortiz Lour
ortiz.admin at gmail.com
Mon Aug 17 11:58:23 CDT 2009
Hi all,
When I have 2 masks that would like to execute the same logic, there is
the way to use the Goto (or any other) command without changing the
${EXTEN}?
Eg. DID range is 1200-1349 -> call Macro(disca), what mask to use? (I just
got it with 2 masks, but I didn't wanted to duplicate the dialplan for both)
[test]
exten => _12XX,1,Set(DIR=3)
exten => _12XX,n,Set(GROUP(flux)=internal)
exten => _12XX,n,Macro(disca)
exten => _13[0-4]X,1,Goto(1200,1) ; what to put here to go to 12XX ??
The example above would not work because it will try to call 1200 always for
the 13[0-4]X mask, since it will change the ${EXTEN} variable.
thanks already,
Gabriel Ortiz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090817/68f8f6ee/attachment.htm
More information about the asterisk-users
mailing list