Re: [asterisk-users] Rewrite calling number of incoming call

2009-12-16 Thread Magnus Benngård
Thx! Worked as a clock! I did modify it to: exten = 977,1,ExecIf($[${CALLERID(num)}=733025975]?Set(CALLERID(all)=Magnus Benngard)) Even better! :) On Tue, 15 Dec 2009 11:32:44 -0600, Steve Johnson wrote: How about: exten = 977,1,ExecIf($[${CALLERID(num)} =

Re: [asterisk-users] Rewrite calling number of incoming call

2009-12-15 Thread Steve Johnson
How about: exten = 977,1,ExecIf($[${CALLERID(num)} = 733025975]?Set(CALLERID(num)=0317998975)) exten = 977,n,ExecIf($[${CALLERID(num)} = 1234]?Set(CALLERID(num)=317998977)) exten = 977,n,ExecIf($[${CALLERID(num)} = 5678]?Set(CALLERID(num)=317998978)) [..] exten = 977,n,Dial(SIP/0317998977) On

[asterisk-users] Rewrite calling number of incoming call

2009-12-14 Thread Magnus Benngård
Hi! Trying to figure out how to rewrite calling number of an incoming call... A cell phone (0733025975) dials a X-Lite (977). X-Lite shows 733025975 at the display, but I want it to be 0317998975. I thought i could do something like: exten = 977/733025975,1,Set(CALLERID(number)=0317998975)