<div dir="ltr"><div>Hi Marc,<br><br></div>Thank you so much for your help!!<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 7, 2013 at 9:39 AM, Marc Storck <span dir="ltr"><<a href="mailto:mstorck@voipgate.com" target="_blank">mstorck@voipgate.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word"><div>Hi Douglas,</div><div class="im"><div>
<br></div><span><blockquote style="BORDER-LEFT:#b5c4df 5 solid;PADDING:0 0 0 5;MARGIN:0 0 0 5"><div><div><div dir="ltr"><div>Yes I know that  but  I don't want the customer dial (506XXX) for example to call another extension, because if I have (cc:506 sn:1000) and the customer dial  (1000) the call fail, but if dial (5061000) the call is success, for that reason I want to change
 in some cases this rule.<br></div></div></div></div></blockquote></span><br></div><div>You should use Rewrite Rule Sets to rewrite the numbers dialled by your users to E.164, that's what the Rewrite Rule Sets are for.</div>
<div><br></div><div>I don't know in which country you want to use SIpWise, so I'm assuming your country code is 506 and your subscriber numbers have a fixed length of 4 digits, you could match this in the "Inbound Rewrite Rules for Callee" with:</div>
<div><br></div><div>Match Pattern: ^([1-9][0-9]{3})$</div><div>Replacement Pattern: 506\1</div><div>Description: National to E.164</div><div><br></div><div>Regards, Marc</div><div><br></div><div><br></div></div>
<br>_______________________________________________<br>
Spce-user mailing list<br>
<a href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a><br>
<a href="http://lists.sipwise.com/listinfo/spce-user" target="_blank">http://lists.sipwise.com/listinfo/spce-user</a><br>
<br></blockquote></div><br></div>