<div class="gmail_quote">Hello,<br><br>I&#39;ve been with freeswittch for a while now.. and i can say it is worth developing it.<br><br>anyhow i got into a strange issue... I&#39;m tryng to see what load FS on my server can take. The Call flow is like this:<br>

<br>SIPp                   FS<br><br>INVITE --------&gt; <br>           &lt;------- 100 Trying<br>           &lt;------- 302 Moved Temporary<br>ACK    ---------&gt;<br><br><br><br>I use a dummy dialplan for that. All custom functions i&#39;ve build are disabled and i&#39;m not using it here. Also custom modules are not loaded as well.<br>

<br><br>   &lt;extension name=&quot;ServiceLookup&quot;&gt;<br>      &lt;condition field=&quot;destination_number&quot; expression=&quot;(^300030)(.*)&quot;&gt;<br>         &lt;!--action application=&quot;lookup_service_destination&quot; data=&quot;in ${caller_id_number:6:16}, in ${caller_id_number:0:6}, in $2, i<br>

n $1, in <a href="http://pgw01.ot.hr:5060" target="_blank">pgw01.ot.hr:5060</a>, out red_contact, out authResult&quot;/--&gt;<br>         &lt;action application=&quot;log&quot; data=&quot;INFO ######################## ServiceLookup ########################\n&quot;/&gt;<br>

         &lt;action application=&quot;log&quot; data=&quot;INFO ######################## contact = &#39;${red_contact}&#39; ##############\n&quot;/&gt;<br>         &lt;action application=&quot;log&quot; data=&quot;INFO ######################## CallerNum = &#39;${caller_id_number:6:16}&#39; ##########\n&quot;/&gt;<br>

         &lt;action application=&quot;log&quot; data=&quot;INFO ######################## RADIUS auth = &#39;${authResult}&#39; ##########\n&quot;/&gt;<br>         &lt;action application=&quot;execute_extension&quot; data=&quot;doRedirect XML public&quot;/&gt;<br>

        &lt;/condition&gt;<br>   &lt;/extension&gt;<br><br><br>   &lt;extension name=&quot;doRedirect&quot;&gt;<br>      &lt;condition field=&quot;destination_number&quot; expression=&quot;^doRedirect$&quot;/&gt;<br>      &lt;condition field=&quot;${authResult}&quot; expression=&quot;^0$|^60$&quot;&gt;<br>

         &lt;action application=&quot;log&quot; data=&quot;INFO ######################## RADIUS auth OK!!!&#39; ##########\n&quot;/&gt;<br>         &lt;!--action application=&quot;redirect&quot; data=&quot;sip:${red_contact}&quot;/--&gt;<br>

         &lt;!--action application=&quot;answer&quot;/--&gt;<br>         &lt;action application=&quot;redirect&quot; data=&quot;<a href="http://sip:12345616094191500@pgw01.ot.hr:5060" target="_blank">sip:12345616094191500@pgw01.ot.hr:5060</a>&quot;/&gt;<br>

         &lt;!--anti-action application=&quot;answer&quot;/--&gt;<br>         &lt;!--anti-action application=&quot;sleep&quot; data=&quot;2000&quot;/--&gt;<br>         &lt;action application=&quot;hangup&quot; data=&quot;USER_BUSY&quot;/&gt;<br>

         &lt;anti-action application=&quot;redirect&quot; data=&quot;<a href="http://sip:12345616094191500@pgw01.ot.hr:5060" target="_blank">sip:12345616094191500@pgw01.ot.hr:5060</a>&quot;/&gt;<br>         &lt;anti-action application=&quot;log&quot; data=&quot;INFO ######################## RADIUS auth NOK!! ##########\n&quot;/&gt;<br>

         &lt;!--anti-action application=&quot;respond&quot; data=&quot;403 Forbidden&quot;/--&gt;<br>         &lt;anti-action application=&quot;hangup&quot; data=&quot;USER_BUSY&quot;/&gt;<br>      &lt;/condition&gt;<br>
   &lt;/extension&gt;<br>
<br><br>When i place a call from x-lite everything works fine ... x-lite sends an invite, gets SIP 302 and ACKs it correctly... FS is happy.<br><br>When i place a call from SIPp i have the same scenario except FS seems not understand ACK message from SIPp and re-sends SIP 302 multiple times untill it gives up.<br>

<br><br>I beleive this is due to 302 resend issue but; when i load FS with 100 CPS, i can see high CPU usage (just
one thread taking most load... the rest does almost nothing) on FS.
Also, starting from 40 CPS there is a big delay in receiving SIP 302
messages meaning i&#39;ve sent 6000 calls and so far only for half of them got 302 response.<br><br><br>Does anybody have a clue ?<br><br><br><br><br><br>Here is a trace taken on FS for calls originated from SIPp (sipp -sn uac 10.4.4.251 -sf uac_redirect.xml -s 30003016094191500 -trace_err -r 1 -rp 100 -trace_msg -inf test.txt -m 1 -l 4000):<br>

<br>freeswitch@l01sipindir1&gt; recv 573 bytes from udp/[10.4.4.252]:5060 at 16:44:26.527236:<br>   ------------------------------------------------------------------------<br>   INVITE <a href="mailto:sip%3A30003016094191500@10.4.4.251" target="_blank">sip:30003016094191500@10.4.4.251</a> SIP/2.0<br>

   Via: SIP/2.0/UDP 10.4.4.252;branch=z9hG4bK-6962-1-0;rport<br>   Max-Forwards: 70<br>   Contact: &lt;<a href="mailto:sip%3A22222238515000403@10.4.4.252" target="_blank">sip:22222238515000403@10.4.4.252</a>&gt;<br>   To: &quot;30003016094191500&quot;&lt;<a href="mailto:sip%3A30003016094191500@10.4.4.251" target="_blank">sip:30003016094191500@10.4.4.251</a>&gt;<br>

   From: &quot;22222238515000403&quot;&lt;<a href="mailto:sip%3A22222238515000403@10.4.4.251" target="_blank">sip:22222238515000403@10.4.4.251</a>&gt;;tag=1<br>   Call-ID: <a href="mailto:1-6962@10.4.4.252" target="_blank">1-6962@10.4.4.252</a><br>
   CSeq: 1 INVITE<br>
   Max-Forwards: 70<br>   Subject: Performance Test<br>   Content-Type: application/sdp<br>   Content-Length:   131<br>   <br>   v=0<br>   o=user1 53655765 2353687637 IN IP4 10.4.4.252<br>   s=-<br>   c=IN IP4 10.4.4.252<br>

   t=0 0<br>   m=audio 6000 RTP/AVP 0<br>   a=rtpmap:0 PCMU/8000<br>   ------------------------------------------------------------------------<br>send 328 bytes to udp/[10.4.4.252]:5060 at 16:44:26.527566:<br>   ------------------------------------------------------------------------<br>

   SIP/2.0 100 Trying<br>   Via: SIP/2.0/UDP 10.4.4.252;branch=z9hG4bK-6962-1-0;rport=5060<br>   From: &quot;22222238515000403&quot;&lt;<a href="mailto:sip%3A22222238515000403@10.4.4.251" target="_blank">sip:22222238515000403@10.4.4.251</a>&gt;;tag=1<br>

   To: &quot;30003016094191500&quot;&lt;<a href="mailto:sip%3A30003016094191500@10.4.4.251" target="_blank">sip:30003016094191500@10.4.4.251</a>&gt;<br>   Call-ID: <a href="mailto:1-6962@10.4.4.252" target="_blank">1-6962@10.4.4.252</a><br>
   CSeq: 1 INVITE<br>
   User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-exported<br>   Content-Length: 0<br>   <br>   ------------------------------------------------------------------------<br>send 722 bytes to udp/[10.4.4.252]:5060 at 16:44:26.535582:<br>

   ------------------------------------------------------------------------<br>   SIP/2.0 302 Moved Temporarily<br>   Via: SIP/2.0/UDP 10.4.4.252;branch=z9hG4bK-6962-1-0;rport=5060<br>   From: &quot;22222238515000403&quot;&lt;<a href="mailto:sip%3A22222238515000403@10.4.4.251" target="_blank">sip:22222238515000403@10.4.4.251</a>&gt;;tag=1<br>

   To: &quot;30003016094191500&quot; &lt;<a href="mailto:sip%3A30003016094191500@10.4.4.251" target="_blank">sip:30003016094191500@10.4.4.251</a>&gt;;tag=Hr4mHDUeBSNyH<br>   Call-ID: <a href="mailto:1-6962@10.4.4.252" target="_blank">1-6962@10.4.4.252</a><br>

   CSeq: 1 INVITE<br>   Contact: &lt;<a href="http://sip:12345616094191500@pgw01.ot.hr:5060" target="_blank">sip:12345616094191500@pgw01.ot.hr:5060</a>&gt;<br>   User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-exported<br>   Accept: application/sdp<br>

   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH<br>   Supported: timer, precondition, path, replaces<br>   Allow-Events: talk, presence, dialog, call-info, sla, include-session-description, presence.winfo, message-summary, refer<br>

   Content-Length: 0<br>   <br>   ------------------------------------------------------------------------<br>recv 383 bytes from udp/[10.4.4.252]:5060 at 16:44:26.535809:<br>   ------------------------------------------------------------------------<br>

   ACK <a href="http://sip:30003016094191500@10.4.4.251:5060" target="_blank">sip:30003016094191500@10.4.4.251:5060</a> SIP/2.0<br>   Via: SIP/2.0/UDP 10.4.4.252:5060;branch=z9hG4bK-6962-1-3;rport<br>   To: &quot;30003016094191500&quot;&lt;<a href="mailto:sip%3A30003016094191500@10.4.4.251" target="_blank">sip:30003016094191500@10.4.4.251</a>&gt;<br>

   From: &quot;22222238515000403&quot;&lt;<a href="mailto:sip%3A22222238515000403@10.4.4.251" target="_blank">sip:22222238515000403@10.4.4.251</a>&gt;;tag=1<br>   Call-ID: <a href="mailto:1-6962@10.4.4.252" target="_blank">1-6962@10.4.4.252</a><br>
   CSeq: 1 ACK<br>
   Contact: <a href="http://sip:sipp@10.4.4.252:5060" target="_blank">sip:sipp@10.4.4.252:5060</a><br>   Max-Forwards: 70<br>   Subject: Performance Test<br>   Content-Length: 0<br>   <br>   ------------------------------------------------------------------------<br>

send 722 bytes to udp/[10.4.4.252]:5060 at 16:44:27.037070:<br>   ------------------------------------------------------------------------<br>   SIP/2.0 302 Moved Temporarily<br>   Via: SIP/2.0/UDP 10.4.4.252;branch=z9hG4bK-6962-1-0;rport=5060<br>

   From: &quot;22222238515000403&quot;&lt;<a href="mailto:sip%3A22222238515000403@10.4.4.251" target="_blank">sip:22222238515000403@10.4.4.251</a>&gt;;tag=1<br>   To: &quot;30003016094191500&quot; &lt;<a href="mailto:sip%3A30003016094191500@10.4.4.251" target="_blank">sip:30003016094191500@10.4.4.251</a>&gt;;tag=Hr4mHDUeBSNyH<br>

   Call-ID: <a href="mailto:1-6962@10.4.4.252" target="_blank">1-6962@10.4.4.252</a><br>   CSeq: 1 INVITE<br>   Contact: &lt;<a href="http://sip:12345616094191500@pgw01.ot.hr:5060" target="_blank">sip:12345616094191500@pgw01.ot.hr:5060</a>&gt;<br>
   User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-exported<br>
   Accept: application/sdp<br>   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH<br>   Supported: timer, precondition, path, replaces<br>   Allow-Events: talk, presence, dialog, call-info, sla, include-session-description, presence.winfo, message-summary, refer<br>

   Content-Length: 0<br>   <br>   ------------------------------------------------------------------------<br>send 722 bytes to udp/[10.4.4.252]:5060 at 16:44:28.037063:<br>   ------------------------------------------------------------------------<br>

   SIP/2.0 302 Moved Temporarily<br>   Via: SIP/2.0/UDP 10.4.4.252;branch=z9hG4bK-6962-1-0;rport=5060<br>   From: &quot;22222238515000403&quot;&lt;<a href="mailto:sip%3A22222238515000403@10.4.4.251" target="_blank">sip:22222238515000403@10.4.4.251</a>&gt;;tag=1<br>

   To: &quot;30003016094191500&quot; &lt;<a href="mailto:sip%3A30003016094191500@10.4.4.251" target="_blank">sip:30003016094191500@10.4.4.251</a>&gt;;tag=Hr4mHDUeBSNyH<br>   Call-ID: <a href="mailto:1-6962@10.4.4.252" target="_blank">1-6962@10.4.4.252</a><br>

   CSeq: 1 INVITE<br>   Contact: &lt;<a href="http://sip:12345616094191500@pgw01.ot.hr:5060" target="_blank">sip:12345616094191500@pgw01.ot.hr:5060</a>&gt;<br>   User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-exported<br>   Accept: application/sdp<br>

   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH<br>   Supported: timer, precondition, path, replaces<br>   Allow-Events: talk, presence, dialog, call-info, sla, include-session-description, presence.winfo, message-summary, refer<br>

   Content-Length: 0<br><font color="#888888"><br><br>Tihomir.<br><br><br><br>
</font></div><br>