Hi Praveen,
Sorry for my late reply.Try following, I test at my place, it is working.
Please let us know if have query or issue.
Command: with following command Sipp UAS will receive 100 message and send 200
OK response to all of them. to increase the number simply change "-m" to the
number you want.
sipp -sn uas -sf msg.xml -p 5060 -i 10.54.80.7 10.70.54.134 -m 100 -l 1
Scenario:-
<?xml version="1.0" encoding="ISO-8859-1" ?><!DOCTYPE scenario SYSTEM
"sipp.dtd">
<!-- This program is free software; you can redistribute it and/or --><!--
modify it under the terms of the GNU General Public License as --><!--
published by the Free Software Foundation; either version 2 of the --><!--
License, or (at your option) any later version. --><!--
--><!-- This
program is distributed in the hope that it will be useful, --><!-- but
WITHOUT ANY WARRANTY; without even the implied warranty of --><!--
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --><!-- GNU
General Public License for more details. --><!--
--><!-- You should
have received a copy of the GNU General Public License --><!-- along with this
program; if not, write to the --><!-- Free Software
Foundation, Inc., --><!-- 59 Temple Place,
Suite 330, Boston, MA 02111-1307 USA --><!--
--><!-- Sipp
default 'uac' scenario. --><!--
-->
<scenario name="Basic Sipstone UAC">
<recv request="MESSAGE" optional="true" next="handle_MESSAGE"/>
<recv request="MESSAGE" />
<send> <![CDATA[ SIP/2.0 200 OK [last_To:] [last_Via:]
[last_CSeq:] [last_Call-ID:] [last_From:] Contact:
sip:sipp@[local_ip]:[local_port] Content-Length: 0 ]]> </send>
<nop next="finished"/>
<label id="handle_MESSAGE"/>
<send> <![CDATA[ SIP/2.0 200 OK [last_To:] [last_Via:]
[last_CSeq:] [last_Call-ID:] [last_From:] Contact:
sip:sipp@[local_ip]:[local_port] Content-Length: 0 ]]> </send>
<label id="finished"/>
</scenario>
Best Regards,Sakharam Thorat.
Date: Fri, 27 Jun 2014 14:06:04 -0700
From: pband...@corp.acesse.com
To: sipp-users@lists.sourceforge.net
Subject: [Sipp-users] Running UAS in loop
Hi All,
I am new to SIPp and working on developing UAC and UAS for my chat application
which uses SIP. I would like to run the UAS in the loop so that it accepts the
messages indefinitely and sends response back to the server.
Here is my code. Can any one of you help me in this regard.
<scenario name="Basic UAS responder"> <!-- In client mode (sipp placing
calls), the Call-ID MUST be -->
<!-- generated by sipp. To do so, use [call_id] keyword. -->
<recv request="MESSAGE" crlf="true" timeout="10000000"> </recv>
<send> <![CDATA[ SIP/2.0 200 OK [last_To:] [last_Via:]
[last_CSeq:] [last_Call-ID:] [last_From:]
Contact:
sip:[field0]@[local_ip]:[local_port];transport=[transport];registering_acc=lpt-youchat_acesse_com>
User-Agent: Jitsi2.4.4997Windows 8 Content-Length: 0 ]]>
</send>
<!-- <nop hide="true" test="authvalid" next="goodauth" /> -->
<recv request="MESSAGE" crlf="true" timeout="10000000" optional="true">
</recv>
<recv request="MESSAGE" crlf="true" timeout="10000000" optional="true">
</recv>
<send> <![CDATA[ SIP/2.0 200 OK [last_To:] [last_Via:]
[last_CSeq:] [last_Call-ID:]
[last_From:] Contact:
sip:[field0]@[local_ip]:[local_port];transport=[transport];registering_acc=lpt-youchat_acesse_com>
User-Agent: Jitsi2.4.4997Windows 8 Content-Length: 0
]]> </send>
<recv request="MESSAGE" crlf="true" timeout="10000000"> </recv>
<send> <![CDATA[ SIP/2.0 200 OK [last_To:] [last_Via:]
[last_CSeq:] [last_Call-ID:] [last_From:] Contact:
sip:[field0]@[local_ip]:[local_port];transport=[transport];registering_acc=lpt-youchat_acesse_com>
User-Agent: Jitsi2.4.4997Windows 8
Content-Length: 0 ]]> </send>
<recv request="MESSAGE" crlf="true" timeout="10000000"> </recv>
<send> <![CDATA[ SIP/2.0 200 OK [last_To:] [last_Via:]
[last_CSeq:] [last_Call-ID:] [last_From:]
Contact:
sip:[field0]@[local_ip]:[local_port];transport=[transport];registering_acc=lpt-youchat_acesse_com>
User-Agent: Jitsi2.4.4997Windows 8 Content-Length: 0 ]]>
</send></scenario>
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users