On Thu, Sep 1, 2011 at 6:22 PM, Mike O'Connor <span dir="ltr"><<a href="mailto:mike@oeg.com.au">mike@oeg.com.au</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
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></blockquote><div><br>Mike,<br>I'd just avoid using rewriteuser altogether. Instead use $rU which is the 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 can't just rewrite the userpart like you can with the RURI. Someone correct me if I'm wrong. Feature request, hint hint..<br>
<br><br><br> <br></div></div>