[asterisk-users] How to match wild card inside a GoToIf?

Ricardo Carvalho rjcarvalho at reit.up.pt
Tue Mar 13 11:38:56 MST 2007


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.




More information about the asterisk-users mailing list