I'm trying to get this to work, but it always goes to step 4 - there
something I don't understand about LEN with GotoIf:
exten => _XXXX,1,NoOp,${CALLERIDNUM} ; CID as
received
exten => _XXXX,2,GotoIf([LEN(${CALLERIDNUM}) = 10]?4:3) ; if CID length =
10 then do nothing
exten => _XXXX,3,SetCallerID(${CALLERIDNUM:2}) ; Remove
the first two digits
exten => _XXXX,4,NoOp,${CALLERIDNUM} ; CID
after fix
exten => _XXXX,5,goto(ext-did,${EXTEN},1)
TIA
Bart
_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users