In my SIPp 3.3, the response code simply cannot be a variable, 
regardless whether a local one or taken from the csv, and regardless 
whether the local one is a numeric or string one.

So currently, the only workaround available is the following:

<nop>
   <action>
     <assignstr assign_to="rsp_code" value="[field0]"/>
     <ereg regexp="486" search_in="var" variable="rsp_code" 
assign_to="rsp_486"/>
     <ereg regexp="606" search_in="var" variable="rsp_code" 
assign_to="rsp_606"/>
     <ereg regexp="603" search_in="var" variable="rsp_code" 
assign_to="rsp_603"/>
     ...
   </action>
</nop>

<send condexec="rsp_486">
   <![CDATA[

     SIP/2.0 486 [field1]
     ...

   ]]>
</send>

<send condexec="rsp_606">
   <![CDATA[

     SIP/2.0 606 [field1]
     ...

   ]]>
</send>

<send condexec="rsp_603">
   <![CDATA[

     SIP/2.0 603 [field1]
     ...

   ]]>
</send>

...


P.



------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to