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

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

>>>>> "AMH" == Anselm Martin Hoffmeister <[EMAIL PROTECTED]>
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
_______________________________________________
--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