<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
<font class="Apple-style-span" face="Tahoma" size="2">Hello Brett,</font><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div><font class="Apple-style-span" face="Tahoma" size="2">The SIPp scenarios are configured to handle the correct flow. If I run the SIPp UAC directly with the SIPp UAS I don't get the errors, it just happend when I use the OpenSIPs as a proxy. And that error doesn't </font><font class="Apple-style-span" face="Tahoma" size="2">occur on every call, is just in some. After I disabled the logging, I'm getting about 200 unexpected messages, out of about 25,000 calls (with a call rate of about 3000 calls per second). But i don' really know why this is happening. Here is the code I use in the UAS side of the scenario: </font></div><div><br></div><div><div><scenario name="Basic UAS responder"></div><div> <!-- By adding rrs="true" (Record Route Sets), the route sets --></div><div> <!-- are saved and used for following messages sent. Useful to test --></div><div> <!-- against stateful SIP proxies/B2BUAs. --></div><div> <recv request="INVITE" crlf="true"></div><div> </recv></div><div><br></div><div> <!-- The '[last_*]' keyword is replaced automatically by the --></div><div> <!-- specified header if it was present in the last message received --></div><div> <!-- (except if it was a retransmission). If the header was not --></div><div> <!-- present or if no message has been received, the '[last_*]' --></div><div> <!-- keyword is discarded, and all bytes until the end of the line --></div><div> <!-- are also discarded. --></div><div> <!-- --></div><div> <!-- If the specified header was present several times in the --></div><div> <!-- message, all occurences are concatenated (CRLF seperated) --></div><div> <!-- to be used in place of the '[last_*]' keyword. --></div><div><br></div><div> <send></div><div> <![CDATA[</div><div><br></div><div> SIP/2.0 180 Ringing</div><div> [last_Via:]</div><div> [last_From:]</div><div> [last_To:];tag=[call_number]</div><div> [last_Call-ID:]</div><div> [last_CSeq:]</div><div> Contact: <sip:[local_ip]:[local_port];transport=[transport]></div><div> Content-Length: 0</div><div><br></div><div> ]]></div><div> </send></div><div><br></div><div> <send retrans="500"></div><div> <![CDATA[</div><div><br></div><div> SIP/2.0 200 OK</div><div> [last_Via:]</div><div> [last_From:]</div><div> [last_To:];tag=[call_number]</div><div> [last_Call-ID:]</div><div> [last_CSeq:]</div><div> Contact: <sip:[local_ip]:[local_port];transport=[transport]></div><div> Content-Type: application/sdp</div><div> Content-Length: [len]</div><div><br></div><div> v=0</div><div> o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]</div><div> s=-</div><div> c=IN IP[media_ip_type] [media_ip]</div><div> t=0 0</div><div> m=audio [media_port] RTP/AVP 0</div><div> a=rtpmap:0 PCMU/8000</div><div><br></div><div> ]]></div><div> </send></div><div><br></div><div> <recv request="ACK"</div><div> optional="true"</div><div> rtd="true"</div><div> crlf="true"></div><div> </recv></div><div><br></div><div> <recv request="BYE"></div><div> </recv></div><div><br></div><div> <send></div><div> <![CDATA[</div><div><br></div><div> SIP/2.0 200 OK</div><div> [last_Via:]</div><div> [last_From:]</div><div> [last_To:]</div><div> [last_Call-ID:]</div><div> [last_CSeq:]</div><div> Contact: <sip:[local_ip]:[local_port];transport=[transport]></div><div> Content-Length: 0</div><div><br></div><div> ]]></div><div> </send></div><br><div style="font-family: Tahoma; font-size: 10pt; ">Luis Morales.</div><br><br><div style="font-family: Tahoma; font-size: 10pt; ">> Date: Mon, 12 Sep 2011 21:58:00 -0500<br>> From: brett@nemeroff.com<br>> To: users@lists.opensips.org<br>> Subject: Re: [OpenSIPS-Users] OpenSIPs Stress test problem<br>> <br>> Luis,<br>> Your scenario isn't setup to properly handle the call flow. The error<br>> message clearly shows that 200 was expected but 180 was received.<br>> <br>> -Brett<br>> On Monday, September 12, 2011, Luis Morales<br>> <luisalfredo_ml31@hotmail.com> wrote:<br>> ><br>> ><br>> ><br>> ><br>> ><br>> > The script is simply forwarding requests and responses in a stateless manner. I've tried the simple stateful configuration in the opensips site, but I've like to try it with the stateless configuration. Here's the script I'm using:<br>> ><br>> ><br>> > ####### Global Parameters #########<br>> > debug=0log_stderror=no<br>> > fork=yeschildren=12<br>> > /* uncomment the next line to disable TCP (default on) */disable_tcp=yes<br>> > #listen=udp:10.0.0.1:5060port=5060<br>> ><br>> ><br>> > ####### Modules Section ########<br>> > #set module pathmpath="/usr/lib/opensips/modules/"<br>> > loadmodule "sl.so"loadmodule "tm.so"<br>> > modparam("tm", "wt_timer", 2)modparam("tm", "restart_fr_on_each_reply", 0)# ----------------- setting module-specific parameters ---------------<br>> ><br>> > ####### Routing Logic ########<br>> ><br>> > # main request routing logic<br>> > route{        forward();}<br>> ><br>> > The errors I'm receiving in sipp are like the following:<br>> > 2011-09-11        19:42:41:161        1315784561.161207: Aborting call on unexpected message for Call-Id '188-8326@::1': while expecting '200' (index 5), received 'SIP/2.0 180 RingingVia: SIP/2.0/UDP [::1]:5062;received=127.0.0.1;branch=z9hG4bK-8326-188-0From: sipp <sip:sipp@[::1]:5062>;tag=8326SIPpTag00188To: sut <sip:service@127.0.0.1:5061>;tag=188Call-ID: 188-8326@::1CSeq: 1 INVITEContact: <sip:[::1]:5061;transport=UDP>Content-Length: 0<br>> > Thanks,<br>> > Luis Morales.<br>> ><br>> > From: brett@nemeroff.com<br>> > Date: Mon, 12 Sep 2011 21:19:22 -0500<br>> > To: users@lists.opensips.org<br>> > Subject: Re: [OpenSIPS-Users] OpenSIPs Stress test problem<br>> ><br>> > Can't really tell without seeing what the errors are and what your script is doing. Are you doing any database lookups??<br>> ><br>> > -Brett<br>> > On Sep 12, 2011, at 9:18 PM, Luis Morales <luisalfredo_ml31@hotmail.com> wrote:<br>> ><br>> ><br>> > Hello Brett,<br>> > You're right, I forgot to check the logging. I disabled it and it's working better. I'm still getting some unexpected messages error, but a lot less than I was getting before. Thanks for your help. Do you know if there's something else I could do so I could stop getting the errors.?<br>> ><br>> ><br>> ><br>> > Thanks,<br>> > Luis Morales.<br>> ><br>> > From: <brett@nemeroff.com>brett@nemeroff.com<br>> > Date: Mon, 12 Sep 2011 10:56:13 -0500<br>> > To: <users@lists.opensips.org>users@lists.opensips.org<br>> > Subject: Re: [OpenSIPS-Users] OpenSIPs Stress test problem<br>> ><br>> ><br>> ><br>> > On Mon, Sep 12, 2011 at 9:15 AM, Luis Alfredo Morales Lora < <luisalfredo_ml31@hotmail.com>luisalfredo_ml31@hotmail.com> wrote:<br>> ><br>> ><br>> ><br>> ><br>> ><br>> ><br>> > I'm using version 3.1 and I've also tried version 3.2 and I have the same problem in both. I used the -trace_err to see what the errors where, and the problem is that while Sipp is expecting a particular response, it receives another, for example, while expecting and acknowledge it receives an OK. I used wireshark to see what was happening, and i saw that the Opensips server introduces a little delay in sending each response, but what I don't understand is why with such a small call rate I'm having this problem.<br>> ><br>> ><br>> ><br>> ><br>> > Luis,<br>> > You didn't answer my logging questions. I've seen bad logging configurations totally disable an opensips server. Specifically a registration server that could handle ONE phone but not TWO. No kidding. Problem was 100% syslog setup. Disabled logging and back up to being able to handle thousands of phones.<br>> ><br>> > This is pretty well documented and has been reported in the past. That may be your issue.<br>> > -Brett<br>> ><br>> ><br>> ><br>> ><br>> > _______________________________________________<br>> > Users mailing list<br>> > Users@lists.opensips.org<br>> > <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>http://lists.opensips.org/cgi-bin/mailman/listinfo/users                                           <br>> ><br>> > _______________________________________________<br>> > Users mailing list<br>> > Users@lists.opensips.org<br>> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br>> ><br>> ><br>> > _______________________________________________<br>> > Users mailing list<br>> > Users@lists.opensips.org<br>> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users                                           <br>> ><br>> <br>> _______________________________________________<br>> Users mailing list<br>> Users@lists.opensips.org<br>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br></div></div>                                            </div></body>
</html>