On Thu, Feb 19, 2009 at 1:51 PM, Sumeet Bhardwaj <
[email protected]> wrote:

>  Hello all,
>
> I want to validate the value of variable using regular expression. But I
> think SIPp doesn't allow to use variable in the regular expression.
>
> For example:
>
> Suppose I want to validate the CSeq value of ACK received. The numeric part
> of Cseq of ACK should be same as that of INVITE.
>
> So, I want to store the value of Cseq from the INVITE and using that value
> I want to validate the Cseq value of ACK.
>
>  Note: I think,  variables cannot be use in a regular expression.
>
>  Is there any way to do this?
>
>  Please help me to resolve this issue.
>
Hello, I don't have a solution but if the values to be compared are numeric,
you could convert them to numeric variables and compare them using the
action <test>:

                <assignstr assign_to="1" value="2500" /> //Well, use a ereg
here
                <assignstr assign_to="2" value="1234" /> //and here

                <todouble assign_to="1" variable="1" />
                <todouble assign_to="2" variable="2" />

                <test assign_to="3" variable="1" compare="equal"
variable2="2" />

But I don't know how to make the test fail after this.

regards,
mayama
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to