[Asterisk-Users] if ${variable} include xxx ???

Ronald Wiplinger ronald at elmit.com
Wed Jan 5 22:44:04 MST 2005


Is there a way to include xxx depening if a variable is set?

I want to replace something like

exten => 2223,1,GotoIf($[${variable:0:2} = 45]?2:4)
exten => 2223,2,include xxx
exten => 2223,3,include bbb
exten => 2223,4,hangup

bye

Ronald







More information about the asterisk-users mailing list