[Asterisk-Users] Help with this
pdhales at optusnet.com.au
pdhales at optusnet.com.au
Sat Nov 12 14:54:22 MST 2005
I think you have to swap the 4 and 3 around in your gotoif - it's true then
false...
PaulH
----- Original Message -----
From: "Bart Fisher" <bhfisher at icpage.com>
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users at lists.digium.com>
Sent: Sunday, November 13, 2005 8:32 AM
Subject: [Asterisk-Users] Help with this
> 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 at 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
>
More information about the asterisk-users
mailing list