[asterisk-users] Caller ID Rewrite
Anselm Martin Hoffmeister
anselm at hoffmeister-online.de
Sat Dec 2 02:16:15 MST 2006
Am Freitag, den 01.12.2006, 20:41 +0000 schrieb David Bath:
> Hi,
>
> Thanks for quick response.
>
> I changed it as you suggested, but it has the same effect:
>
> In the console I get:
>
> --Executing
> Set("SIP/604625-b79140a8",CALLERID(number)=44${CALLERID(number)}") in
> new stack
>
> It's running the IF code correctly, but in the "true" it's just not
> evaluating the variable...
Well, perhaps the IF hinders evaluation from happening....?
It is by far not as elegant, but you could try
exten=>123456,1,GotoIf($[${REGEX("^0......)} = 1]?2:3)
exten=>123456,2,Set(CALLERID(num)=44${CALLERID(num):1})
exten=>123456,3,ContinueYourDialplanHere
Btw. it should be CALLERID(num), not CALLERID(number), right?
BR
Anselm
More information about the asterisk-users
mailing list