<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"Préformaté HTML Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.PrformatHTMLCar
        {mso-style-name:"Préformaté HTML Car";
        mso-style-priority:99;
        mso-style-link:"Préformaté HTML";
        font-family:Consolas;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="FR" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Hello guys,
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Thanks for your quick answer.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Based on your confirmation that this format of the R-URI is supported and received inside the script (and not parsed by the sip stack), then I
 added additional logs and discovered the mistake in my script. I had before a line &#8220;subst_uri(&quot;/sip:([^:]*)[:;].*/sip:\1/&quot;);&#8221; in order to prevent unexpected R-URI format.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">So when the line is removed, the $ru is complete as received. For me, it is not necessary to escape the URI.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">So Kamailio supports implicitely Netann (RFC4240) R-URI format.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Best regards.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">PatriceB<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">De&nbsp;:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext"> Daniel-Con</span><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">stantin
 Mierla [mailto:miconda@gmail.com] <br>
<b>Envoyé&nbsp;:</b> lundi 4 juin 2012 22:42<br>
<b>À&nbsp;:</b> SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List<br>
<b>Cc&nbsp;:</b> BODEVEN Patrice RD-CORE<br>
<b>Objet&nbsp;:</b> Re: [SR-Users] Kamailio and Netann<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Hello,<br>
<br>
for curiosity I did a test with r-uri (from the first email):<br>
<br>
<o:p></o:p></p>
<pre><a href="sip:annc@cl1.oms.ser.v0.pftest.net;play=http://1xx.1xx.1xx.1xx:8080/errfile/err.wav;repeat=forever">sip:annc@cl1.oms.ser.v0.pftest.net;play=http://1xx.1xx.1xx.1xx:8080/errfile/err.wav;repeat=forever</a><o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>and one with r-uri (as suggested by Andreas):<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre><a href="sip:annc@cl1.oms.ser.v0.pftest.net;play=http%3A%2F%2F1xx.1xx.1xx.1xx%3A8080%2Ferrfile%2Ferr.wav;repeat=forever">sip:annc@cl1.oms.ser.v0.pftest.net;play=http%3A%2F%2F1xx.1xx.1xx.1xx%3A8080%2Ferrfile%2Ferr.wav;repeat=forever</a><o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>In both cases the whole value was printed by $ru (in an xlog(...) function).<o:p></o:p></pre>
<p class="MsoNormal" style="margin-bottom:12.0pt">Can you add in config a line like:<br>
<br>
&nbsp;&nbsp;&nbsp; xlog(&quot;r-uri is [$ru]\n&quot;);<br>
<br>
and what the output? Eventually, you can set debug=3 inc config and send all log messages for processing a request with such uri.<br>
<br>
Cheers,<br>
Daniel<o:p></o:p></p>
<div>
<p class="MsoNormal">On 6/4/12 7:02 PM, Andreas Granig wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre>Hi Patrice,<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>There are couple of characters in the URI which need to be escaped<o:p></o:p></pre>
<pre>properly. A correct R-URI would look like this:<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre><a href="sip:annc@cl1.oms.ser.v0.pftest.net;play=http%3A%2F%2F1xx.1xx.1xx.1xx%3A8080%2Ferrfile%2Ferr.wav;repeat=forever">sip:annc@cl1.oms.ser.v0.pftest.net;play=http%3A%2F%2F1xx.1xx.1xx.1xx%3A8080%2Ferrfile%2Ferr.wav;repeat=forever</a><o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>There are string transformations &quot;{s.escape.param}&quot; and<o:p></o:p></pre>
<pre>&quot;{s.unescape.param}&quot; you can use (in case you get the full URI into your<o:p></o:p></pre>
<pre>config script, not sure whether the parser bails out first).<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Andreas<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>On 06/04/2012 06:35 PM, <a href="mailto:patrice.bodeven@orange.com">patrice.bodeven@orange.com</a> wrote:<o:p></o:p></pre>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre>Hello,<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre> <o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>I&#8217;am working on Kamailio version 3.2.2.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>I&#8217;m doing some test in interaction with Application server and media<o:p></o:p></pre>
<pre>server.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>The applicationServer sends a INVITE sip to Media Server via the Kamailio.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>The R-URI has the format<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre><a href="sip:annc@cl1.oms.ser.v0.pftest.net;play=http://1xx.1xx.1xx.1xx:8080/errfile/err.wav;repeat=forever">sip:annc@cl1.oms.ser.v0.pftest.net;play=http://1xx.1xx.1xx.1xx:8080/errfile/err.wav;repeat=forever</a><o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>But the parsing done by Kamailio of $ru is trunked to<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre><a href="sip:annc@cl1.oms.ser.v0.pftest.net;play=http">sip:annc@cl1.oms.ser.v0.pftest.net;play=http</a><o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre> <o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Could you confirm if Kamailio supports Netann protocol ?<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If not, how to route the INVITE with the correct R-URI format ?<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre> <o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Thanks in advance.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre> <o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>PatriceB<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre> <o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre> <o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>_________________________________________________________________________________________________________________________<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc<o:p></o:p></pre>
<pre>pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler<o:p></o:p></pre>
<pre>a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,<o:p></o:p></pre>
<pre>France Telecom - Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>This message and its attachments may contain confidential or privileged information that may be protected by law;<o:p></o:p></pre>
<pre>they should not be distributed, used or copied without authorisation.<o:p></o:p></pre>
<pre>If you have received this email in error, please notify the sender and delete this message and its attachments.<o:p></o:p></pre>
<pre>As emails may be altered, France Telecom - Orange is not liable for messages that have been modified, changed or falsified.<o:p></o:p></pre>
<pre>Thank you.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<o:p></o:p></pre>
<pre><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><o:p></o:p></pre>
<pre><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></pre>
</blockquote>
<pre><o:p>&nbsp;</o:p></pre>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<o:p></o:p></pre>
<pre><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><o:p></o:p></pre>
<pre><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<pre>-- <o:p></o:p></pre>
<pre>Daniel-Constantin Mierla - <a href="http://www.asipto.com">http://www.asipto.com</a><o:p></o:p></pre>
<pre><a href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a><o:p></o:p></pre>
<pre>Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - <a href="http://asipto.com/u/katu">http://asipto.com/u/katu</a><o:p></o:p></pre>
<pre>Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - <a href="http://asipto.com/u/kpw">http://asipto.com/u/kpw</a><o:p></o:p></pre>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p>&nbsp;</o:p></p>
</div>
<PRE>_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
France Telecom - Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, France Telecom - Orange is not liable for messages that have been modified, changed or falsified.
Thank you.
</PRE></body>
</html>