Or just:<div><br><div>$rU = "12345#" + $rU;<br><br></div><div>Dave</div><div><br><div class="gmail_quote">On Wed, Feb 23, 2011 at 10:36 AM, Max Mühlbronner <span dir="ltr"><<a href="mailto:mm@42com.com">mm@42com.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="DE" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="color:#1F497D">Hello,</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">if you just want to
add a prefix, you could use prefix() which is very easy to use. </span><span lang="EN-US" style="font-family:Wingdings;color:#1F497D">J</span><span lang="EN-US" style="color:#1F497D"></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Regards</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Max M.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt">Von:</span></b><span style="font-size:10.0pt">
<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a> [mailto:<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>] <b>Im
Auftrag von </b>Brian Artigas<br>
<b>Gesendet:</b> Mittwoch, 23. Februar 2011 19:31<br>
<b>An:</b> <a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a><br>
<b>Betreff:</b> [OpenSIPS-Users] Modify a URI</span></p>
</div>
</div><div><div></div><div class="h5">
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span lang="EN-US">Can anyone give me a code example how I
would take a URI and inject a string between the sip: and the actual number. I
found the rewriteuri() function but cannot find any code examples on how to use
it.</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">For instance take the request URI:
sip:5615551212@111.222.333.444
</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">And change it
to:
sip:12345#5615551212@111.222.333.444</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks in advance,</span></p>
<p class="MsoNormal"><span lang="EN-US">Brian</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
</div></div><p><span style="font-size:10.0pt">Eingehende
eMail ist virenfrei.<br>
Von AVG überprüft - <a href="http://www.avg.de" target="_blank">www.avg.de</a><br>
Version: 9.0.872 / Virendatenbank: 271.1.1/3463 - Ausgabedatum: 02/23/11
12:32:00</span></p>
</div>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div>