2009/1/15 Zahid Mehmood <[email protected]>:
> Hi,
>   any particular reason why scripts for testing like this can not be shared
> on the wiki?  I think we all can benefit from having standard tests and some
> benchmarks to compare against.
>
> If for some reason this script can not put placed on the wiki, can I request
> a copy?

I attach them:

"create_users.sh" is a script that generates users for being used in
SIPp, and also creates those users in Asterisk and OpenSIPS. You must
set some parameters in this file.
Both files are explained.

PD: Make sure you have SIPp v3.1 installed (probably from sources).


-- 
Iñaki Baz Castillo
<[email protected]>

Attachment: create_users.sh
Description: Bourne shell script

<?xml version="1.0" encoding="ISO-8859-1" ?>

<!--

### USAGE:

~# sipp -sn uac server:port -sf script1.xml -inf csv_file -m 5000 -r 100 -rp 1000 -auth_uri server:port -trace_err

-->


<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:[fiel...@[field1]>;tag=[call_number]
      To: <sip:[fiel...@[field1]>
      Call-ID: [call_id]
      CSeq: 1 REGISTER
      Contact: sip:[field0]_[bran...@[local_ip]:[local_port]
      Max-Forwards: 5
      Expires: 3600
      User-Agent: SIPp/Linux
      Content-Length: 0
    ]]>
  </send>

<recv response="100" optional="true">
  </recv>

  <recv response="401" auth="true">
  </recv>

  <send retrans="500">
    <![CDATA[
      REGISTER sip:[field1] SIP/2.0
      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
      From: <sip:[fiel...@[field1]>;tag=[call_number]
      To: <sip:[fiel...@[field1]>
      Call-ID: [call_id]
      CSeq: 2 REGISTER
	Contact: sip:[field0]_[bran...@[local_ip]:[local_port]
      [field2]
      Supported: path
      Max-Forwards: 5
      Expires: 3600
      User-Agent: SIPp/Linux
      Content-Length: 0

    ]]>
  </send>

<recv response="100" optional="true">
  </recv>


  <recv response="200">
  </recv>

</scenario>
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to