Results 1 to 2 of 2
Hi all, I m writing a XML script for SIP(Session Initiation Protocol) messages. I browsed through the XML schemas used for SIPP tool from sourceforge.net . To search for an ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-12-2007 #1
- Join Date
- Sep 2007
Regular Expressions and Injecting file datas in XML using SIPP tool
I m writing a XML script for SIP(Session Initiation Protocol) messages. I browsed through the XML schemas used for SIPP tool from sourceforge.net .
To search for an pattern in the 200 OK recieved message , ereg tag is used ...
I used this tag within the <action> ... </action> as follows ..
<ereg regexp="[.invalidConnectionState.]" search_in="msg" check_it="true" assign_to="1" test="1" next="5">
<log message="the value in 1 is [$1]" />
The first statement searches for the exact pattern invalidConnectionState the message part and assigns that to variable $1 . if it is assigned test will be true and the control will jump to label 5.
the next message will log a message in the a log file that prints the value stored in $1.
But here the problem is neither of these two statements are not working ..
Anyone who is working on linux and using SIPP tool might be knowing this ...
Can anyone tell me what is the problem with this ???
Also , if we try to use the file names in the script to inject the data from that file dynamically .. It does not take the values from the file .. This is the second problem ...
Please try and suggest something on this ..
Thanks and regards,
- 09-14-2007 #2
- Join Date
- May 2004
- arch linux
Welcome to the forums, nazaiha!
Your duplicate thread has been deleted because it is against the forums rules to post them:
Please continue your discussion here.