On Fri, Nov 18, 2011 at 2:45 AM, Ingemar Nilsson
<ingemar.nils...@confy.se>wrote:

> Hi,
>
> I'm trying to execute an action depending on a value from an injection
> file, but I can't make it work. I have the following working code (using
> the DTMF patch from Dimitry Kunilov):
>
> <nop>
> <action>
> <exec play_dtmf="[field4]#" />
> </action>
> </nop>
>
> I want to only execute this action if a field from the injection file is
> 0, so I tried the following:
>
> <nop>
> <action>
> <assignstr assign_to="1" value="[field2]" />
> <todouble assign_to="2" variable="1" />
> <test assign_to="3" variable="2" compare="not_equal" value="0" />
> <action>
> </nop>
>
> <nop next="1" test="3">
> <action>
> <exec play_dtmf="[field4]#" />
> </action>
> </nop>
>
> <label id="1"/>
>
> But it doesn't work. SIPp gives the following complaint:
>
> 2011-11-17    18:35:39:880    1321551339.880024: Unknown action: action.
>
> Any ideas?
>

Your xml is malformed. You forgot to close the action tag. It should be:

<nop>
<action>
<assignstr assign_to="1" value="[field2]" />
<todouble assign_to="2" variable="1" />
<test assign_to="3" variable="2" compare="not_equal" value="0" />
</action>
</nop>

regards,
takeshi


>
> By the way, the code above seems overly complicated just to express
> "execute this action if field2 is 0". Is there any better way to express
> this?
>
> I'm using SIPp 3.1.9 patched with the DTMF patch mentioned above on
> CentOS 5.
>
> Regards
> Ingemar
>
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> _______________________________________________
> Sipp-users mailing list
> Sipp-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sipp-users
>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to