Dear All,

        Is anybody successfully use the variable manipulation tags in 
scenario ?
        Here is my scenarion....
......
  <recv response="200" rtd="true" crlf="true">
    <action>
      <ereg regexp="m=audio ([[:digit:]]+) RTP/AVP ([0-9]+)"
       assign_to="2,3,4"/>
      <log message="$4:[$4]"/>
      <log message="$2:[$2]"/>
    </action>
  </recv>


  <nop>
    <action next="18" test="5">
      <assign assign_to="5" value="1" />
      <add assign_to="5" value="2" />
      <test assign_to="6" variable="4" compare="equal" value="0" />
      <add assign_to="4" value="3" />
      <log message="$5:[$5]" />
      <log message="$4:[$4]" />
      <log message="$6:[$6]" />
    </action>
  </nop>

......

  <label id="18"/>
    <nop>
      <action>
        <exec int_cmd="stop_gracefully"/>
        <log message="stop!!"/>
     </action>
   </nop>
......

This is from log file...
*************************************************************************************
$4:0

$2:m=audio 26300 RTP/AVP 0

$5:

$4:0

$6:
*************************************************************************************


Some questions:
1. I add $4 by 3, but in log it is still 0.
2. I assign $5 to 1, and add by 2, but in log, the variable seems no value 
at all.
3. I assign the test result to $6, but the variable seems no value at all.
4. BTW, from the document, the variables are floating point values, but in 
what data type the result from regular expression is stored since the 
result may be a string.

Thanks in advance.


Leo Hu
--------------------------------------------------------------------------------------------
MediaTek Inc. WCP / Software Engineering Div.1
Taipei, Taiwan
胡晉華 Leo Hu
E-mail: [EMAIL PROTECTED]
Tel: +886-2-26598088 ext 6202


************* Email Confidentiality Notice ********************
The information contained in this e-mail message (including any attachments) 
may be confidential, proprietary, privileged, or otherwise exempt from 
disclosure under applicable laws. It is intended to be conveyed only to the 
designated recipient(s).  Any use, dissemination, distribution, printing, 
retaining or copying of this e-mail (including its attachments) by unintended 
recipient(s) is strictly prohibited and may be unlawful. If you are not an 
intended recipient of this e-mail, or believe that you have received this 
e-mail in error, please notify the sender immediately (by replying to this 
e-mail), delete any and all copies of this e-mail (including any attachments) 
from your system, and do not disclose the content of this e-mail to any other 
person.   Thank you!

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to