<p>Also you can set up AVPOPS for customers and if they only dial x digits then you can prefix the area code like Brett said.</p>
<div class="gmail_quote">On Sep 1, 2011 7:41 PM, "Brett Nemeroff" <<a href="mailto:brett@nemeroff.com">brett@nemeroff.com</a>> wrote:<br type="attribution">> On Thu, Sep 1, 2011 at 6:22 PM, Mike O'Connor <<a href="mailto:mike@oeg.com.au">mike@oeg.com.au</a>> wrote:<br>
> <br>>> Hi Brett<br>>><br>>> So I need to rewrite the R-URI, the command which does this is<br>>> 'rewriteuser' which only touches the actual phone number in the<br>>> sip:1233@domain.<br>
>><br>>><br>> Mike,<br>> I'd just avoid using rewriteuser altogether. Instead use $rU which is the<br>> userpart of the RURI and is a R/W variable.<br>> <br>> The docs for uac_replace_to (same as from) are here:<br>
> <a href="http://www.opensips.org/html/docs/modules/1.7.x/uac#id292749">http://www.opensips.org/html/docs/modules/1.7.x/uac#id292749</a><br>> <br>> I think you just have to rebuild an entire valid URI for this function, you<br>
> can't just rewrite the userpart like you can with the RURI. Someone correct<br>> me if I'm wrong. Feature request, hint hint..<br></div>