<div style="font-family:Arial;font-size:14px"><div style="font-family: Arial; font-size: 14px;"><span style="font-family: monospace;">Hi!<br /><br />I am trying to figure out how to rewrite calling number for all extensions.<br />What I am trying to do is:<br /><br />1) Have a "block" of rewriting rules that will apply to all calls:<br />&nbsp;&nbsp; Something like...<br />&nbsp;&nbsp; (???),ExecIf($[${CALLERID(num)}=702221448]?Set(CALLERID(all)=Cecilia Benngard&lt;0</span><span style="font-family: monospace;">702221448</span><span style="font-family: monospace;">&gt;))<br />&nbsp;&nbsp; (???),ExecIf($[${CALLERID(num)}=705886363]?Set(CALLERID(all)=Magnus Benngard&lt;0705886363&gt;))<br />&nbsp;&nbsp;&nbsp; ...<br /><br />2) Standard dialing rules...<br />&nbsp;&nbsp; 971,1,</span><span style="font-family: monospace;">Dial(SIP/0317998971)</span><br /><span style="font-family: monospace;">&nbsp;&nbsp; 975,1,Dial(SIP/0317998975)<br />&nbsp;&nbsp; ...<br /><br />I know hot to do it per extension...<br />&nbsp;&nbsp; 971,1,</span><span style="font-family: monospace;">ExecIf($[${CALLERID(num)}=702221448]?Set(CALLERID(all)=Cecilia Benngard&lt;0</span><span style="font-family: monospace;">702221448</span><span style="font-family: monospace;">&gt;)</span><br /><span style="font-family: monospace;">&nbsp;&nbsp; 971,2,</span><span style="font-family: monospace;">Dial(SIP/0317998971)</span><br /><span style="font-family: monospace;"><br />But there must be a better way to do it, or?<br /></span></div></div>