<div dir="ltr"><div><div><div>Hi,<br><br></div>Issue is solved. :)<br><br></div>Problem
 was in my dialplan. Basically there was empty dialplan and when call 
hit Freeswitch, Freeswitch immediately hanged up a call, cause there was
 nothing to do, that why I got that extra bye message. In other cases 
sipp hanged up a call before Freeswitch and this was that 90%-95%.<br><br></div>To fix this I just needed to add sleep dialplan tool to my dialplan.</div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-09 11:49 GMT+03:00 Jurijs Ivolga <span dir="ltr">&lt;<a href="mailto:jurij.ivo@gmail.com" target="_blank">jurij.ivo@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi!<br><br></div>I started to run some performance tests against Freeswitch and in 5-10% tests are failing because of Freeswitch sending extra bye message. I would like to add that I got such messages on very low load, 1 new call in 5 seconds and first fail was after 9th call.<br><br></div>Here how call looks like in 90-95% of time:<br><br><pre>SIPp UAC            Freeswitch
    |(1) INVITE         |
    |------------------&gt;|
    |(2) 100 (optional) |
    |&lt;------------------|
    |(3) 200            |
    |&lt;------------------|
    |(4) ACK            |
    |------------------&gt;|
    |(5) BYE            |
    |------------------&gt;|
    |(6) 200            |
    |&lt;------------------|</pre><br></div>Below you can see how call looks like in 5-10% of time.<br><div><div>Somehow Freeswitch replies on bye message from Sipp with extra bye(around 5-10% of all calls) and it creates a mess:<br><br><pre>SIPp UAC            Freeswitch
    |(1) INVITE         |
    |------------------&gt;|
    |(2) 100 (optional) |
    |&lt;------------------|
    |(3) 200            |
    |&lt;------------------|
    |(4) ACK            |
    |------------------&gt;|
    |(5) BYE            |
    |------------------&gt;|<br>    |(6) BYE            |
    |&lt;------------------|<br>    |(7) 200            |
    |------------------&gt;|<br>    |(8) 200            |
    |&lt;------------------|<br></pre>I&#39;m not sure, but I think such behavior is not expected. Maybe somebody can let me know if it is proper Freeswitch behavior and if it is, why such behavior only happens with 5-10% of calls. Below you can find full sip trace, for a call with extra bye message.<br></div><div><br><br>U 2015/07/09 11:07:07.269998 sippserver:5060 -&gt; freeswitchserver:5060<br>INVITE sip:service@freeswitchserver:5060 SIP/2.0.<br>Via: SIP/2.0/UDP sippserver:5060;branch=z9hG4bK-11560-9-0.<br>From: sipp &lt;sip:sipp@sippserver:5060&gt;;tag=11560SIPpTag009.<br>To: service &lt;sip:service@freeswitchserver:5060&gt;.<br>Call-ID: 9-11560@sippserver.<br>CSeq: 1 INVITE.<br>Contact: sip:sipp@sippserver:5060.<br>Max-Forwards: 70.<br>Subject: Performance Test.<br>Content-Type: application/sdp.<br>Content-Length:   139.<br>.<br>v=0.<br>o=user1 53655765 2353687637 IN IP4 sippserver.<br>s=-.<br>c=IN IP4 sippserver.<br>t=0 0.<br>m=audio 6000 RTP/AVP 0.<br>a=rtpmap:0 PCMU/8000.<br><br>#<br>U 2015/07/09 11:07:07.271005 freeswitchserver:5060 -&gt; sippserver:5060<br>SIP/2.0 100 Trying.<br>Via: SIP/2.0/UDP sippserver:5060;branch=z9hG4bK-11560-9-0.<br>From: sipp &lt;sip:sipp@sippserver:5060&gt;;tag=11560SIPpTag009.<br>To: service &lt;sip:service@freeswitchserver:5060&gt;.<br>Call-ID: 9-11560@sippserver.<br>CSeq: 1 INVITE.<br>User-Agent: FreeSWITCH-mod_sofia/1.4.18~64bit.<br>Content-Length: 0.<br>.<br><br>#<br>U 2015/07/09 11:07:07.276784 freeswitchserver:5060 -&gt; sippserver:5060<br>SIP/2.0 200 OK.<br>Via: SIP/2.0/UDP sippserver:5060;branch=z9hG4bK-11560-9-0.<br>From: sipp &lt;sip:sipp@sippserver:5060&gt;;tag=11560SIPpTag009.<br>To: service &lt;sip:service@freeswitchserver:5060&gt;;tag=S3Kvy09a3BrtS.<br>Call-ID: 9-11560@sippserver.<br>CSeq: 1 INVITE.<br>Contact: &lt;sip:service@freeswitchserver:5060;transport=udp&gt;.<br>User-Agent: FreeSWITCH-mod_sofia/1.4.18~64bit.<br>Accept: application/sdp.<br>Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY.<br>Supported: timer, path, replaces.<br>Allow-Events: talk, hold, conference, refer.<br>Content-Type: application/sdp.<br>Content-Disposition: session.<br>Content-Length: 168.<br>Remote-Party-ID: &quot;service&quot; &lt;sip:service@freeswitchserver&gt;;party=calling;privacy=off;screen=no.<br>.<br>v=0.<br>o=FreeSWITCH 1436408221 1436408222 IN IP4 freeswitchserver.<br>s=FreeSWITCH.<br>c=IN IP4 freeswitchserver.<br>t=0 0.<br>m=audio 21006 RTP/AVP 0.<br>a=rtpmap:0 PCMU/8000.<br>a=ptime:20.<br><br>#<br>U 2015/07/09 11:07:07.277349 sippserver:5060 -&gt; freeswitchserver:5060<br>ACK sip:service@freeswitchserver:5060 SIP/2.0.<br>Via: SIP/2.0/UDP sippserver:5060;branch=z9hG4bK-11560-9-5.<br>From: sipp &lt;sip:sipp@sippserver:5060&gt;;tag=11560SIPpTag009.<br>To: service &lt;sip:service@freeswitchserver:5060&gt;;tag=S3Kvy09a3BrtS.<br>Call-ID: 9-11560@sippserver.<br>CSeq: 1 ACK.<br>Contact: sip:sipp@sippserver:5060.<br>Max-Forwards: 70.<br>Subject: Performance Test.<br>Content-Length: 0.<br>.<br><br>#<br>U 2015/07/09 11:07:07.278861 sippserver:5060 -&gt; freeswitchserver:5060<br>BYE sip:service@freeswitchserver:5060 SIP/2.0.<br>Via: SIP/2.0/UDP sippserver:5060;branch=z9hG4bK-11560-9-7.<br>From: sipp &lt;sip:sipp@sippserver:5060&gt;;tag=11560SIPpTag009.<br>To: service &lt;sip:service@freeswitchserver:5060&gt;;tag=S3Kvy09a3BrtS.<br>Call-ID: 9-11560@sippserver.<br>CSeq: 2 BYE.<br>Contact: sip:sipp@sippserver:5060.<br>Max-Forwards: 70.<br>Subject: Performance Test.<br>Content-Length: 0.<br>.<br><br>#<br>U 2015/07/09 11:07:07.278931 freeswitchserver:5060 -&gt; sippserver:5060<br>BYE sip:sipp@sippserver:5060 SIP/2.0.<br>Via: SIP/2.0/UDP freeswitchserver;rport;branch=z9hG4bKF5jjXD7vrF3Qp.<br>Max-Forwards: 70.<br>From: service &lt;sip:service@freeswitchserver:5060&gt;;tag=S3Kvy09a3BrtS.<br>To: sipp &lt;sip:sipp@sippserver:5060&gt;;tag=11560SIPpTag009.<br>Call-ID: 9-11560@sippserver.<br>CSeq: 77878549 BYE.<br>User-Agent: FreeSWITCH-mod_sofia/1.4.18~64bit.<br>Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY.<br>Supported: timer, path, replaces.<br>Reason: Q.850;cause=16;text=&quot;NORMAL_CLEARING&quot;.<br>Content-Length: 0.<br>.<br><br>#<br>U 2015/07/09 11:07:07.279599 sippserver:5060 -&gt; freeswitchserver:5060<br>SIP/2.0 200 OK.<br>Via: SIP/2.0/UDP freeswitchserver;rport;branch=z9hG4bKF5jjXD7vrF3Qp.<br>From: service &lt;sip:service@freeswitchserver:5060&gt;;tag=S3Kvy09a3BrtS.<br>To: sipp &lt;sip:sipp@sippserver:5060&gt;;tag=11560SIPpTag009.<br>Call-ID: 9-11560@sippserver.<br>CSeq: 77878549 BYE.<br>Contact: &lt;sip:sippserver:5060;transport=UDP&gt;.<br>Content-Length: 0.<br>.<br><br>#<br>U 2015/07/09 11:07:07.280338 freeswitchserver:5060 -&gt; sippserver:5060<br>SIP/2.0 200 OK.<br>Via: SIP/2.0/UDP sippserver:5060;branch=z9hG4bK-11560-9-7.<br>From: sipp &lt;sip:sipp@sippserver:5060&gt;;tag=11560SIPpTag009.<br>To: service &lt;sip:service@freeswitchserver:5060&gt;;tag=S3Kvy09a3BrtS.<br>Call-ID: 9-11560@sippserver.<br>CSeq: 2 BYE.<br>Content-Length: 0.<br>.<br><br></div><div>I will appreciate any help!<br></div><div><br></div><div>Thank you!<br></div><div><br><br><br></div></div></div>
</blockquote></div><br></div>