<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div>Hi Douglas,</div><div><br></div><span id="OLK_SRC_BODY_SECTION"><blockquote id="MAC_OUTLOOK_ATTRIBUTION_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>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></body></html>