Hello,

Try this:

<strcmp assign_to="result" variable="message_type" value="INVITE"/>
<test assign_to="isINVITE" variable="result" compare="equal" value="0"/>
<test assign_to="isNotINVITE" variable="result" compare="equal" value="-1"/>

The strcmp returns 0 if your string matches INVITE and -1 if not. Then you
can use this result value to be able to apply "test"

BR,
Tuan Viet NGUYEN

On Thu, Dec 4, 2008 at 2:06 PM, Felipe Elias <[EMAIL PROTECTED]> wrote:

>  Hi all,
>
>
>
> I'm a Brazilian engineer working with SIP tests. I'm developing some tests
> for validation of SIP equipments according to the ETSI TS 102 027-2
> V4.1.1.
>
> Some tests need to compare one header of the INVITE msg with the same
> header of the response. The problem is that some headers use chars and
> numbers others only chars. I can compare numbers with numbers, but I can't
> compare chars with chars.
>
> I'm trying to use the *test* command but it does not allow to compare one
> variable with another only with values, beside this the *todouble*variable 
> returns an error when I use one header with chars and numbers.
>
>
>
> Does anyone can help me with this problem?
>
>
>
> I appreciate your collaboration, thanks,
>
>
>
> *Felipe Gabriel de Mello Elias*
>
> *CITS - Centro Internacional de Tecnologia de Software** *
> Endereço: Rua Carneiro Lobo, 468 - 10 andar - Batel
>
>                     CEP. 80240-240  Curitiba-PR Brasil
>
> Telefone:    +55  (41)  3527-2785 Ramal: 30 -
>
> Celular:       +55  (41)  91416571
>
> Email:           [EMAIL PROTECTED]
>
>
>
>
>
> * *
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Sipp-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sipp-users
>
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to