alternatively, from the sipp documentation I can match a string and set a 
variable to true/false based on the match

<nop>
     <action>
         <!-- Compare the value of $strvar to "Hello" and assign it to 
$result.. -->
         <strcmp assign_to="result" variable="strvar" value="Hello" />
     </action>
</nop>

but can I use this value to pass/fail a call, in the same way that regexp 
"check_it" works?

-----Original Message-----
From: David White [mailto:[email protected]]
Sent: Wed 5/5/2010 7:38 PM
To: [email protected]
Subject: [Sipp-users] regexp negate match
 

does anyone know if sipp regexp supports match negating?  I want to make sure a 
string *doesn't" appear in a SIP body (eg I want the value to be empty).

<action>
  <ereg regexp="a=bad_field" search_in="body" check_it="true"/>
<action>

this results in a "pass" if the bad field exists, but I want a "fail"

alternatively, 

<action>
  <ereg regexp="!a=bad_field" search_in="body" check_it="true"/>
<!-- or -->
  <ereg regexp="!/a=bad_field/" search_in="body" check_it="true"/>
<action>

don't seem to cut it either.  any ideas? 


------------------------------------------------------------------------------
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to