[asterisk-users] Re: Caller ID Rewrite

David Bath david.bath at triaddo.com
Sat Dec 2 11:38:35 MST 2006


Oh... that's an interesting idea Benny.  I didn't realize you could use
TO/FROM type syntax in the dialplan...

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Benny
Amorsen
Sent: 02 December 2006 17:28
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] Re: Caller ID Rewrite

>>>>> "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


_______________________________________________
--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


More information about the asterisk-users mailing list