<div style="font-family:Arial;font-size:14px"><div style="font-family: Arial; font-size: 14px;"><br /><br />Thx!<br /><br />Worked as a clock!<br /><br />I did modify it to:<br />exten => 977,1,ExecIf($[${CALLERID(num)}=733025975]?Set(CALLERID(all)=Magnus Benngard<0317998975>))<br /><br />Even better! :)<br /></div>
<p>On Tue, 15 Dec 2009 11:32:44 -0600, Steve Johnson <stevej456@gmail.com> wrote:</p>
<blockquote style="border-left: 2px solid #1010ff; padding-left: 5px; margin-left: 5px; width: 100%;">
<p>How about:<br /><br />exten => 977,1,ExecIf($[${CALLERID(num)} =<br />733025975]?Set(CALLERID(num)=0317998975))<br />exten => 977,n,ExecIf($[${CALLERID(num)} = 1234]?Set(CALLERID(num)=317998977))<br />exten => 977,n,ExecIf($[${CALLERID(num)} = 5678]?Set(CALLERID(num)=317998978))<br />[..]<br />exten => 977,n,Dial(SIP/0317998977)<br /><br /><br />On Mon, Dec 14, 2009 at 12:21 PM, Magnus Benngård<br /> wrote:<br />> Hi!<br />><br />> Trying to figure out how to rewrite calling number of an incoming call...<br />><br />> A cell phone (0733025975) dials a X-Lite (977).<br />> X-Lite "shows" 733025975 at the display, but I want it to be 0317998975.<br />> I thought i could do something like:<br />><br />> exten => 977/733025975,1,Set(CALLERID(number)=0317998975)<br />> exten => 977,n,Dial(SIP/0317998977)<br />><br />> [Dec 14 19:07:43] NOTICE[20731]: chan_h323.c:2272 answer_call: Dropping call<br />> because extensions '977', 's' and 'i' doesn't exists in context<br />> [inputinterior.se]<br />><br />> Rewriting of outgoing is working... snip<br />><br />> exten => _0X!/0317998975,1,Set(CALLERID(number)=317998975)<br />> exten => _0X!/0317998977,1,Set(CALLERID(number)=317998977)<br />> exten => _0X!/0317998978,1,Set(CALLERID(number)=317998978)<br />> exten => _0X!/0317998985,1,Set(CALLERID(number)=317998985)<br />> exten => _0X!/0317998987,1,Set(CALLERID(number)=317998987)<br />> exten => _0X!,n,Dial(H323/0${EXTEN}@Avaya)<br />><br />> Can someone guide me on the correct track?<br />><br />> _______________________________________________<br />> -- Bandwidth and Colocation Provided by http://www.api-digital.com --<br />><br />> asterisk-users mailing list<br />> To UNSUBSCRIBE or update options visit:<br />> http://lists.digium.com/mailman/listinfo/asterisk-users<br />><br /><br />_______________________________________________<br />-- Bandwidth and Colocation Provided by http://www.api-digital.com --<br /><br />asterisk-users mailing list<br />To UNSUBSCRIBE or update options visit:<br /> http://lists.digium.com/mailman/listinfo/asterisk-users</p>
<p> </p>
</blockquote>
<p> </p></div>