Hello everyone,

this is my first post, and fairly new to sipp. what im trying to do in summary 
is combine the execution of 2 sipp scenarios into 1.


First, i would like to register a set of users (for example 5) users from a csv 
file; example:

SEQUENTIAL
sipphone1000000;test.lab;[authentication username=sipphone1000...@test.lab 
password=IP30];sipphone1001000
sipphone1000001;test.lab;[authentication username=sipphone1000...@test.lab 
password=IP30];sipphone1001001
sipphone1000002;test.lab;[authentication username=sipphone1000...@test.lab 
password=IP30];sipphone1001002
sipphone1000003;test.lab;[authentication username=sipphone1000...@test.lab 
password=IP30];sipphone1001003
sipphone1000004;test.lab;[authentication username=sipphone1000...@test.lab 
password=IP30];sipphone1001004

Once the users are registered, then we make calls for those users for limited 
time, then we re-register those users again, and make calls again, and keeps on 
going.

This is how the scenario looks like:

Remote              SIPp UAS

    |(1) REGISTER U1      |  Register with Expiry Timer set to 2Hrs
    |-------------------->|
    |(2) 200              |
    |<--------------------|
    |         .           |
    |         .           |
    |         .           |
    |(3) REGISTER U5      |
    |-------------------->|
    |(4) 200              |
    |<--------------------|
    |                     |  set Timer 2Hrs
    |(5) INVITE U1        |  -----+
    |-------------------->|       |
    |(6) 180              |       |
    |<--------------------|     |
    |         .           |       |
    |         .           |       |
    |         .           |   |
    |(7) INVITE U5        |       |
    |-------------------->|       +---- Loop until a timer expires (example 
2Hrs)
    |(8) 180              |       |
    |<--------------------|       |
    |(9) 200              |       |
    |<--------------------|       |
    |(10) ACK             |       |
    |-------------------->|       |
    |(11) BYE             |       |
    |-------------------->|       |
    |(12) 200             |       |
    |<--------------------|  -----+
    |                     | After 2 Hrs - Re-Register same users again
    |(13) RE-REGISTER U1  |
    |-------------------->|
    |(14) 200             |
    |<--------------------|
    |         .           |
    |         .           |
    |         .           |
    |(15) RE-REGISTER U5  |
    |-------------------->|
    |(16) 200             |
    |<--------------------|
    |                     |  set Timer 2Hrs
    |(17) INVITE U1       |  -----+
    |-------------------->|       |
    |(18) 180             |       |
    |<--------------------|     |
    |         .           |       |
    |         .           |       +---- Loop until a timer expires (example 
2Hrs)

And so on...


this is what i was able to do so far:


<scenario name="User A Registration + INVITE">

 <nop>
   <action>
      <assign assign_to="counter" value="0"/>
  </action>
 </nop>

 <label id="start_of_loop" />

<send retrans="500">
  <![CDATA[
    REGISTER sip:[field1] SIP/2.0
    ...
  ]]>
</send>

<!-- Begining of no authentication scenario -->
<label id="1"/>

<!-- <recv response="200" next="2"></recv> -->
<recv response="200"></recv>

  <nop>
    <action>
      <add assign_to="counter" value="1"/>
      <test assign_to="flag_limit" variable="counter" 
compare="greater_than_equal" value="5"/>
    </action>
  </nop>

  <nop next="2" test="flag_limit"/>

  <nop next="start_of_loop"/>

<!-- No Authentication scenario is completed - Jump to scenario INVITE, i.e. 
label 2 -->

<label id="2" />

<!-- Begining of the INVITE scenario -->
  <send retrans="500">
    <![CDATA[
      INVITE sip:[field3]@[field1] SIP/2.0
      ...
    ]]>
  </send>
...
to end of file


however, when i run this scenario, it registers the same user (sipphone1000000) 
5 times, then it send the 1st INVITE. What im trying to do is to register all 5 
users in the csv file before it sends the 1st INVITE. would it be possible to 
perform such flow with sipp?


Thanks alot for any suggestion.

Rami D.



------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to