[asterisk-users] Re: Caller ID Rewrite

Benny Amorsen benny+usenet at amorsen.dk
Sat Dec 2 10:27:58 MST 2006


>>>>> "AMH" == Anselm Martin Hoffmeister <anselm at hoffmeister-online.de> writes:

AMH> Well, perhaps the IF hinders evaluation from happening....? It is
AMH> by far not as elegant, but you could try

AMH> exten=>123456,1,GotoIf($[${REGEX("^0......)} = 1]?2:3)
AMH> exten=>123456,2,Set(CALLERID(num)=44${CALLERID(num):1})
AMH> exten=>123456,3,ContinueYourDialplanHere

How about simply:

 exten => 123456/0XXXXXXXXXX,1,Set(CALLERID(num)=44${CALLERID(num):1})
 exten => 123456,1,NoOp()
 exten => 123456,2,ContinueYourDialplanHere


/Benny




More information about the asterisk-users mailing list