<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
try to do record_route() for all SUBSCRIBE, PUBLISH and NOTIFY
requests, it might work for your UA.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 11/06/14 12:48, DURECU, OLIVIER
(OLIVIER) wrote:<br>
</div>
<blockquote
cite="mid:10F8D61BDA174943A50091439385E1DD01E7483B@FR712WXCHMBA12.zeu.alcatel-lucent.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
<font face="Trebuchet MS" size="2"><span style="font-size:10pt;">
<div>Hello all,</div>
<div> </div>
<div>There is something I can’t understand using Kamailio as
proxy to route SUBSCRIBE/NOTIFY dialogs between a client and
a server</div>
<div> </div>
<div>I do record_route() on the first SUBSCRIBE received by
Kamailio</div>
<div>The next SUBSCRIBE is well handled by Kamailio in the
[WITHIN_DIALOG] bloc but the 200/OK no more contains
record-route header</div>
<div>So the 3<font size="1"><span style="font-size:6.65pt;"><sup>rd</sup></span></font>
SUBSCRIBE no more sets a relevant route and Kamailio rejets
it with a 404 ?</div>
<div><font face="Calibri" size="2"><span
style="font-size:11pt;"> </span></font></div>
<div>How to proceed so that 200/Ok within dialog still
contains Record-route header ?</div>
<div> </div>
<div><font face="Calibri" size="2"><span
style="font-size:11pt;"> </span></font></div>
<div>Here are the piece of routing logic involved</div>
<div><font face="Calibri" size="2"><span
style="font-size:11pt;"> </span></font></div>
<div> if (is_method("PUBLISH|SUBSCRIBE")) {</div>
<div> record_route();</div>
<div style="text-indent:35.4pt;"> $ru =
<a class="moz-txt-link-rfc2396E" href="sip:192.168.0.250:6070">"sip:192.168.0.250:6070"</a>;</div>
<div style="text-indent:35.4pt;"> route(RELAY);</div>
<div style="text-indent:35.4pt;"> exit;</div>
<div> }</div>
<div><font face="Calibri" size="2"><span
style="font-size:11pt;"> </span></font></div>
<div>And the as-is route[WITHINDLG] function</div>
<div><font face="Calibri" size="2"><span
style="font-size:11pt;"> </span></font></div>
<div>route[WITHINDLG] {</div>
<div> if (has_totag()) {</div>
<div> # sequential request withing a dialog
should</div>
<div> # take the path determined by
record-routing</div>
<div> if (loose_route()) {</div>
<div>#!ifdef WITH_WEBSOCKETS</div>
<div> if ($du == "") {</div>
<div> if (!handle_ruri_alias())
{</div>
<div> xlog("L_ERR",
"Bad alias <$ru>\n");</div>
<div>
sl_send_reply("400", "Bad Request");</div>
<div> exit;</div>
<div> }</div>
<div> }</div>
<div>#!endif</div>
<div> route(RELAY);</div>
<div> }</div>
<div><font face="Calibri" size="2"><span
style="font-size:11pt;"> </span></font></div>
<div>Thanks for your help</div>
<div><font face="Calibri" size="2"><span
style="font-size:11pt;"> </span></font></div>
<div>Olivier </div>
<div><font face="Calibri" size="2"><span
style="font-size:11pt;"> </span></font></div>
<div><font face="Calibri" size="2"><span
style="font-size:11pt;"> </span></font></div>
</span></font>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
</body>
</html>