Hi there!

I'm using IMS Bench with some custom scenarios loading my users from a
CSV file with the command "-user_inf" and everything works fine.
My problem is that I can't load some other values from a second CSV
file with the command "-inf" specifying fields like this [field0
file="10location.csv"], I can get only values from the user_inf file,
in my case from pool="2". Any idea of how to inject values from
different files?

this is my sipp command:
../sipp 127.0.0.1:4060 -id 1 -i 127.0.0.1 -user_inf ./10user -inf
./10location.csv -rmctrl 127.0.0.1:5000 -trace_msg -trace_err
-trace_cpumem -trace_scen -trace_retrans -aa

this is the scenario:
...
 <!-- *** STEP 1 *** -->
 <!-- This is a scenario preparation step. It involves:
        -->
 <!-- * Selecting a local user from a suitable pool
        -->
  <nop>
    <action>
      <assign_user pool="2" scheme="rand_uni"/>  <!-- Select user from
'Registered' pool -->
    </action>
  </nop>

<!-- *** STEP 2 *** -->
 <!-- Now that our preparation steps are done, we wait for the time
when the call must  -->
 <!-- actually start, according to the scenario arrival distribution.
                 -->
  <sync crlf="true">
    <action>
      <exec int_cmd="set_start_time"/>  <!-- We remember our actual
start time -->
    </action>
  </sync>

<!-- *** STEP 3 *** -->
 <!-- Now the SIP scenario really starts -->
<!-- pubblico un'altra presenza -->

  <send retrans="500" start_rtd="1" clen_random="uniform:0,140">
    <![CDATA[

      PUBLISH sip:[fiel...@[field1] SIP/2.0
      Via: SIP/2.0/[transport] [local_ip]:[local_port];rport;branch=[branch]
      Route: [$u1]
      To: "[field0]" <sip:[fiel...@[field1]>
      From: <sip:[fiel...@[field1]>;tag=[call_number]
      Call-ID: [call_id]
      CSeq: 20 PUBLISH
      Max-Forwards: 70
      User-Agent: messaggioloc
      Content-Disposition: render;handling=required
      Expires: 3600
      Event: presence
      Content-Type: application/pidf+xml
      Content-Length: 466

      <?xml version="1.0" encoding="UTF-8"?><presence
xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:im="urn:ietf:params:xml:ns:pidf:im"
entity="sip:[fiel...@[field1]"><tuple
id="messaggioloc"><status><basic>open</basic></status><note>Available</note></tuple><device
id="[field0]"><timestamp>101010</timestamp><captured>9</captured><status>On</status><deviceID>[field0]</deviceID><nord>[field0
file="10location.csv"]</nord><est>[field1
file="10location.csv"]</est></device></presence>

    ]]>
  </send>
...

Thanks,
Francesco

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to