Hi, I have problems when I invoke multiple sipp instance simultaniously. If somebody knows the resolution, please help me.
[What I want to achieve by using sipp] I want to emulate multiple(one hundred or more) sip terminal in one PC. When I try to invoke one user scenario, sipp runs normally, however when I try to invoke multiple user scenario, error message "Address already in use errno=98" appears. I am trying to use each sipp instance as following scenario. 1.Register with the sip proxy(with md5 digest authentication) 2.Receive 200 OK response from the proxy. 3.Publish the presence state to the proxy 4.Receive 200 OK response from the proxy. 5.Receive SIP MESSAGE from another sip entity via proxy. 6.Send 200 OK response to the proxy. Each sipp instance has different sip address and use different local port. [About Attached Files] I created Linux bash shell script named reg_bob.sh. In the shell script register and publish are invoked at first.(register_client.xml) After that shell script sipp wait for receiving SIP Message.(message_receiver.xml) Those two scenario is invoked with common user data(registration.csv.bob) [How I invoked shell script simultaniously] To emulate one hundred terminal,I created one hundred set of shell scripts(reg_xxx.sh) and user data.(registaration.csv.xxx) In the shell script different local port is specified to avoid port conflict. I created Java thread program which invokes shell scripts(reg_xxx.sh) in pararell. [Platform Information] Fedora Core 4 x86_64 sipp-2.0.1 Is it possible to launch multiple sipp instance on one PC or some restriction exists when using sipp? Any advise or suggestion is very helpful. Thanks and Best Regards, Hideyuki
<?xml version="1.0" encoding="ISO-8859-1" ?>
<scenario name="message_receiver">
<recv request="MESSAGE">
<action>
<ereg regexp="(Via.*)([[:cntrl:]][[:cntrl:]]Via:[^[:cntrl:]]*)" search_in="msg" check_it="true" assign_to="1" />
</action>
</recv>
<send retrans="500">
<![CDATA[
SIP/2.0 200 OK
[$1]
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_CSeq:]
Contact: sip:[EMAIL PROTECTED]:[local_port]
User-Agent: SIPp/Linux
Content-Length:0
]]>
</send>
</scenario>
<?xml version="1.0" encoding="ISO-8859-1" ?>
<scenario name="register_client">
<send retrans="500">
<![CDATA[
REGISTER sip:[field1] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: <sip:[EMAIL PROTECTED]>;tag=[call_number]
To: <sip:[EMAIL PROTECTED]>
Call-ID: reg///[call_id]
CSeq: 1 REGISTER
Contact: sip:[EMAIL PROTECTED]:[local_port]
Max-Forwards: 20
Expires: 1800
User-Agent: SIPp/Linux
Content-Length: 0
Supported:path
]]>
</send>
<recv response="401" auth="true">
<action>
<ereg regexp=".*" search_in="hdr" header="Service-Route" assign_to="1"/>
<ereg regexp=".*" search_in="hdr" header="Path" assign_to="2"/>
</action>
</recv>
<send retrans="500">
<![CDATA[
REGISTER sip:[field1] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
Route:[$2],[$1]
From: <sip:[EMAIL PROTECTED]>;tag=[call_number]
To: <sip:[EMAIL PROTECTED]>
Call-ID: reg///[call_id]
CSeq: 2 REGISTER
Contact: sip:[EMAIL PROTECTED]:[local_port]
Max-Forwards: 20
Expires: 1800
User-Agent: SIPp/Linux
Content-Length: 0
Supported:path
[field2]
]]>
</send>
<recv response="200">
</recv>
<send retrans="500">
<![CDATA[
PUBLISH sip:[EMAIL PROTECTED] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
Route:[$2],[$1]
From: <sip:[EMAIL PROTECTED]>;tag=[call_number]
To: <sip:[EMAIL PROTECTED]>
Call-ID: pub///[call_id]
CSeq: 1 PUBLISH
Contact: sip:[EMAIL PROTECTED]:[local_port]
Max-Forwards: 20
Expires: 300
User-Agent: SIPp/Linux
Content-Length:[len]
Supported:path
Event:presence
Content-Type:application/pidf+xml
<?xml version='1.0' encoding='UTF-8'?><presence xmlns='urn:ietf:params:xml:ns:pidf' xmlns:dm='urn:ietf:params:xml:ns:pidf:data-model' xmlns:rpid='urn:ietf:params:xml:ns:pidf:rpid' xmlns:c='urn:ietf:params:xml:ns:pidf:cipid' entity='pres:[EMAIL PROTECTED]'><tuple id='t1b6e133a'><status><basic>open</basic></status></tuple><dm:person id='pc71f4d4f'><rpid:activities><rpid:unknown/></rpid:activities><dm:note>aaaaa</dm:note></dm:person></presence>
]]>
</send>
<recv response="200">
</recv>
</scenario>
registration.csv.bob
Description: Binary data
reg_bob.sh
Description: Bourne shell script
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Sipp-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sipp-users
