<div class="gmail_quote">Hello,<br><br>I'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'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 --------> <br> <------- 100 Trying<br> <------- 302 Moved Temporary<br>ACK ---------><br><br><br><br>I use a dummy dialplan for that. All custom functions i've build are disabled and i'm not using it here. Also custom modules are not loaded as well.<br>
<br><br> <extension name="ServiceLookup"><br> <condition field="destination_number" expression="(^300030)(.*)"><br> <!--action application="lookup_service_destination" data="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"/--><br> <action application="log" data="INFO ######################## ServiceLookup ########################\n"/><br>
<action application="log" data="INFO ######################## contact = '${red_contact}' ##############\n"/><br> <action application="log" data="INFO ######################## CallerNum = '${caller_id_number:6:16}' ##########\n"/><br>
<action application="log" data="INFO ######################## RADIUS auth = '${authResult}' ##########\n"/><br> <action application="execute_extension" data="doRedirect XML public"/><br>
</condition><br> </extension><br><br><br> <extension name="doRedirect"><br> <condition field="destination_number" expression="^doRedirect$"/><br> <condition field="${authResult}" expression="^0$|^60$"><br>
<action application="log" data="INFO ######################## RADIUS auth OK!!!' ##########\n"/><br> <!--action application="redirect" data="sip:${red_contact}"/--><br>
<!--action application="answer"/--><br> <action application="redirect" data="<a href="http://sip:12345616094191500@pgw01.ot.hr:5060" target="_blank">sip:12345616094191500@pgw01.ot.hr:5060</a>"/><br>
<!--anti-action application="answer"/--><br> <!--anti-action application="sleep" data="2000"/--><br> <action application="hangup" data="USER_BUSY"/><br>
<anti-action application="redirect" data="<a href="http://sip:12345616094191500@pgw01.ot.hr:5060" target="_blank">sip:12345616094191500@pgw01.ot.hr:5060</a>"/><br> <anti-action application="log" data="INFO ######################## RADIUS auth NOK!! ##########\n"/><br>
<!--anti-action application="respond" data="403 Forbidden"/--><br> <anti-action application="hangup" data="USER_BUSY"/><br> </condition><br>
</extension><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'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> 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: <<a href="mailto:sip%3A22222238515000403@10.4.4.252" target="_blank">sip:22222238515000403@10.4.4.252</a>><br> To: "30003016094191500"<<a href="mailto:sip%3A30003016094191500@10.4.4.251" target="_blank">sip:30003016094191500@10.4.4.251</a>><br>
From: "22222238515000403"<<a href="mailto:sip%3A22222238515000403@10.4.4.251" target="_blank">sip:22222238515000403@10.4.4.251</a>>;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: "22222238515000403"<<a href="mailto:sip%3A22222238515000403@10.4.4.251" target="_blank">sip:22222238515000403@10.4.4.251</a>>;tag=1<br>
To: "30003016094191500"<<a href="mailto:sip%3A30003016094191500@10.4.4.251" target="_blank">sip:30003016094191500@10.4.4.251</a>><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: "22222238515000403"<<a href="mailto:sip%3A22222238515000403@10.4.4.251" target="_blank">sip:22222238515000403@10.4.4.251</a>>;tag=1<br>
To: "30003016094191500" <<a href="mailto:sip%3A30003016094191500@10.4.4.251" target="_blank">sip:30003016094191500@10.4.4.251</a>>;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: <<a href="http://sip:12345616094191500@pgw01.ot.hr:5060" target="_blank">sip:12345616094191500@pgw01.ot.hr:5060</a>><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: "30003016094191500"<<a href="mailto:sip%3A30003016094191500@10.4.4.251" target="_blank">sip:30003016094191500@10.4.4.251</a>><br>
From: "22222238515000403"<<a href="mailto:sip%3A22222238515000403@10.4.4.251" target="_blank">sip:22222238515000403@10.4.4.251</a>>;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: "22222238515000403"<<a href="mailto:sip%3A22222238515000403@10.4.4.251" target="_blank">sip:22222238515000403@10.4.4.251</a>>;tag=1<br> To: "30003016094191500" <<a href="mailto:sip%3A30003016094191500@10.4.4.251" target="_blank">sip:30003016094191500@10.4.4.251</a>>;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: <<a href="http://sip:12345616094191500@pgw01.ot.hr:5060" target="_blank">sip:12345616094191500@pgw01.ot.hr:5060</a>><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: "22222238515000403"<<a href="mailto:sip%3A22222238515000403@10.4.4.251" target="_blank">sip:22222238515000403@10.4.4.251</a>>;tag=1<br>
To: "30003016094191500" <<a href="mailto:sip%3A30003016094191500@10.4.4.251" target="_blank">sip:30003016094191500@10.4.4.251</a>>;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: <<a href="http://sip:12345616094191500@pgw01.ot.hr:5060" target="_blank">sip:12345616094191500@pgw01.ot.hr:5060</a>><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>