search for: 220408xxx

Displaying 2 results from an estimated 2 matches for "220408xxx".

2007 Mar 13
3
How to match wild card inside a GoToIf?
How can I match wildcards inside a GoToIf? I have something like this, but it doesn't work: [default] exten => _2XXXXXXXX,1,Macro(outcall,${EXTEN}) [macro-outcall] exten => s,1,GotoIf($["${ARG1}" = "220408XXX"]?2:3) exten => s,2,Hangup Any ideas? Regards, Ricardo.
2007 Mar 13
0
Re: asterisk-users Digest, Vol 32, Issue 48
...isk-users@lists.digium.com> > > How can I match wildcards inside a GoToIf? > > I have something like this, but it doesn't work: > > [default] > exten => _2XXXXXXXX,1,Macro(outcall,${EXTEN}) > [macro-outcall] > exten => s,1,GotoIf($["${ARG1}" = "220408XXX"]?2:3) > exten => s,2,Hangup > You are going to need a substring of the original. I'm thinking something like the following although I haven't tested it. exten => s,1,GotoIf($["${ARG1:3}" = "220408"]?2:3) dbc.