<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, &quot;Brett Nemeroff&quot; &lt;<a href="mailto:brett@nemeroff.com">brett@nemeroff.com</a>&gt; wrote:<br type="attribution">&gt; On Thu, Sep 1, 2011 at 6:22 PM, Mike O&#39;Connor &lt;<a href="mailto:mike@oeg.com.au">mike@oeg.com.au</a>&gt; wrote:<br>
&gt; <br>&gt;&gt; Hi Brett<br>&gt;&gt;<br>&gt;&gt; So I need to rewrite the R-URI, the command which does this is<br>&gt;&gt; &#39;rewriteuser&#39; which only touches the actual phone number in the<br>&gt;&gt; sip:1233@domain.<br>
&gt;&gt;<br>&gt;&gt;<br>&gt; Mike,<br>&gt; I&#39;d just avoid using rewriteuser altogether. Instead use $rU which is the<br>&gt; userpart of the RURI and is a R/W variable.<br>&gt; <br>&gt; The docs for uac_replace_to (same as from) are here:<br>
&gt; <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>&gt; <br>&gt; I think you just have to rebuild an entire valid URI for this function, you<br>
&gt; can&#39;t just rewrite the userpart like you can with the RURI. Someone correct<br>&gt; me if I&#39;m wrong. Feature request, hint hint..<br></div>