[Asterisk-Users] Help with this

Bart Fisher bhfisher at icpage.com
Sat Nov 12 14:32:36 MST 2005


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 




More information about the asterisk-users mailing list