<div dir="ltr"><div><div><div><div><div><div>Hello Daniel,<br><br></div>Record-route is only used on request route:<br>Â Â Â Â Â Â Â <br># record routing for dialog forming requests (in case they are routed)<br>Â Â Â Â Â Â Â # - remove preloaded route headers<br>Â Â Â Â Â Â Â remove_hf("Route");<br>Â Â Â Â Â Â Â if (is_method("INVITE|SUBSCRIBE"))<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â record_route();<br><br></div>But not after.<br></div>In the next few lines, in route[WITHINDLG], i have: <br><br>if (has_totag()) {<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â # sequential request withing a dialog should<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â # take the path determined by record-routing<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â if (loose_route()) {<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â if (is_method("BYE")) {<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â setflag(FLT_ACC); # do accounting ...<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â setflag(FLT_ACCFAILED); # ... even if the transaction fails<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â }<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â if ( is_method("ACK") ) {<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â # ACK is forwarded statelessy<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â route(NATMANAGE);<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â }<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â route(RELAY);<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â } else {<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â if (is_method("SUBSCRIBE") && uri == myself) {<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â # in-dialog subscribe requests<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â route(PRESENCE);<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â exit;<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â }<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â if ( is_method("ACK") ) {<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â if ( t_check_trans() ) {<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â # no loose-route, but stateful ACK;<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â # must be an ACK after a 487<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â # or e.g. 404 from upstream server<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â t_relay();<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â exit;<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â } else {<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â # ACK without matching transaction ... ignore and discard<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â exit;<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â }<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â }<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â sl_send_reply("404","Not here");<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â }<br>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â exit;<br>Â Â Â Â Â Â Â }<br><br><br></div>But i don't understand why "sl_send_reply("404","Not here");" has been executed, and not the other statement ?<br><br></div>Thanks in advance,<br><br></div>Regards.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-06 8:47 GMT+02:00 Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
you have the config of kamailio doing record_route() and then
expecting Route header in BYE, but your BYE is not having one.<br>
<br>
Cheers,<br>
Daniel<div><div class="h5"><br>
<br>
<div>On 05/07/15 12:05, Loic Chabert wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">
<div>
<div>
<div>
<div>Hello everyone,<br>
<br>
</div>
I'm a newbie in kamailio world and make some tests to
dispatch call over several asterisk instances. This part
works, my call has been distributed over two instances (if
i make a call with jitsi for example).<br>
</div>
Now, i want to test performance of my cluster and use Sipp
to chalenge it.<br>
<br>
</div>
All method is working fine, except the BYE method, where
kamailio send me back a 404 Not here.<br>
<br>
</div>
<div>This is my SIPP scenario:<br>
<br>
...<br>
</div>
<div>
<div>
<div>
<div><br>
 <pause/><br>
<br>
 <!-- The 'crlf' option inserts a blank line in the
statistics report. --><br>
 <send retrans="500"><br>
   <![CDATA[<br>
<br>
     BYE sip:[service]@[remote_ip] SIP/2.0<br>
     Via: SIP/2.0/[transport]
[local_ip]:[local_port];branch=[branch]<br>
     From: sipp <<a href="mailto:sip%3Asipp@loicchabert.fr" target="_blank">sip:sipp@loicchabert.fr</a>>;tag=[pid]SIPpTag00[call_number]<br>
     To: sut
<a><sip:[service]@[remote_ip]:[remote_port]></a>[peer_tag_param]<br>
     Call-ID: [call_id]<br>
     CSeq: 2 BYE<br>
     Contact: <a>sip:sipp@</a>[local_ip]:[local_port]<br>
     Max-Forwards: 70<br>
     Subject: Performance Test<br>
     Content-Length: 0<br>
<br>
   ]]><br>
 </send><br>
...<br>
<br>
</div>
<div>I use the classic file of kamailio, with some
adjustement for dispatching.<br>
<br>
</div>
<div>Any ideas concerning this problem ? This BYE is not
in transaction so he is drop by kamailio ?<br>
<br>
</div>
<div>Thank in advance,<br>
<br>
</div>
<div>Regards.<br>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<pre cols="72">--
Daniel-Constantin Mierla
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></pre>
</font></span></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>