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

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to