<div dir="ltr">Hi Daniel<div><br></div><div>SIPP is a litte tricky to work with proxies, you need to double check routes and Via headers.</div><div><br></div><div>Here is what I&#39;m using on BYE:</div><div><br></div><div><div>      BYE [next_url] SIP/2.0</div><div>      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]</div><div>      [routes]</div><div>      From: &lt;sip:[$1]@[$2]:[local_port]&gt;;tag=[pid]SIPpTag00[call_number]</div><div>      To: &lt;sip:[field0]@[$2]:[remote_port]&gt;[peer_tag_param]</div><div>      Call-ID: [call_id]</div><div>      CSeq: 2 BYE</div><div>      Contact: sip:sipp@[local_ip]:[local_port]</div><div>      Max-Forwards: 70</div><div>      Subject: Performance Test</div><div>      Content-Length: 0</div></div><div><br></div><div>Using these vars:</div><div><div>      &lt;assignstr assign_to=&quot;1&quot; value=&quot;fromuser&quot; /&gt;<br></div><div>      &lt;assignstr assign_to=&quot;2&quot; value=&quot;fromdomain&quot; /&gt;</div></div><div><br></div><div>About Opensips, you can manipulate the BYE on loose_route and send anything you want, but you have to make sure you don&#39;t break something else. Like this:</div><div><br></div><div><div>if(loose_route())</div><div>{</div><div>        ...</div><div><span class="" style="white-space:pre">        </span>if (is_method(&quot;BYE&quot;))</div><div><span class="" style="white-space:pre">        </span>{</div><div><span class="" style="white-space:pre">                        </span>xlog(&quot;L_NOTICE&quot;, &quot;LOG BYE -&gt; SEND 200 OK&quot;);</div><div><span class="" style="white-space:pre">                        </span>sl_send_reply(&quot;200&quot;, &quot;OK&quot;);</div><div><span class="" style="white-space:pre">        </span>}</div><div>        ...</div><div>}</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 17, 2016 at 10:35 AM, Daniel Moreira Yokoyama <span dir="ltr">&lt;<a href="mailto:moreira.yokoyama@gmail.com" target="_blank">moreira.yokoyama@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi.<div><br></div><div>During stress tests (using SIPP as UAC and UAS) Opensips receives a BYE request from UAC and relays it to UAS.</div><div><br></div><div>The problem is, when the UAS responds 200 to it, Opensips seems to be ignore it (may it be because of it misses it among the thousands of other messages being exchanged, may it be for any other reason I can&#39;t figure out).</div><div><br></div><div>The RFC says that on BYE, in case of a 4xx or a timeout, the dialog should be considered terminated... but what opensips does in this scenario is to retry the BYE a couple of times (and SIPP seems to ignore it, once it consider the dialog finished, i guess) and finally opensips sends a 408 to the UAC.</div><div><br></div><div>The way I see it, unless I&#39;m missing something, I should be able to react to a BYE by immediately send a 200 to the UAC despite of what happens between opensips and UAS (accodingly to what I learn from the RFC). And, concerning to the UAS, Opensips also should send the BYE and consider the dialog finished regardless of receiving the 200 or not (it should not try to send the BYE again).</div><div><br></div><div>If I&#39;m right, how should I set opensips to behave this way?</div><div><br></div><div>If I&#39;m wrong, what should be the way to handle this scenario?</div><div><div><div><div dir="ltr"><div><div dir="ltr"><div><br></div><div><div style="font-size:small">Atenciosamente,<br><br>Daniel Moreira Yokoyama.</div><div style="font-size:small">@dmyoko</div><div style="font-size:small"><a href="http://twitter.com/dmyoko" style="color:rgb(17,85,204)" target="_blank">http://twitter.com/dmyoko</a></div><div style="font-size:small"> </div><div style="font-size:small">TrafficTalks<br>Um podcast sobre cinema feito a partir de conversas de trânsito.</div><div style="font-size:small"><a href="http://traffictalks.com.br" target="_blank">http://traffictalks.com.br</a></div></div><div><br></div></div></div></div></div></div>
</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" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>