Hi Takeshi.
Thanks a lot for your help.
I tried the suggested but it doesn't work. I have a following action at
SIPp-UAS.xml:
<recv request="INVITE">
<action>
<ereg regexp=";tag=JuniperBSG[0-9]+" search_in="hdr"
header="From:" assign_to="2" check_it_inverse="true"/>
</action>
</recv>
According to Wireshark UAS receives INVITE request having following From
header:
From: SIPp-UAC
<sip:[email protected]>;tag=JuniperBSG97+1000002+11c0000+3065ca75
That is call supposed to be counted as failed at statistic screen. But I
see it as succeeded.
What am I doing wrong? Is check_it_inverse supported for SIPp-3.0?
Regards,
Evgeny Miloslavsky
Systest Engineer
Juniper Networks Solutions Israel LTD.
Office: 972-9-9717320/2355
-----Original Message-----
From: mayamatakeshi [mailto:[email protected]]
Sent: Thursday, July 16, 2009 1:07 PM
To: Evgeny Miloslavsky
Subject: Re: [Sipp-users] Validate "Not present" character in response
On Thu, Jul 16, 2009 at 5:15 PM, Evgeny
Miloslavsky<[email protected]> wrote:
> Hi Takeshi!
> How are you? I hope all is fine!
Hello, Evgeny.
Everything is fine here. Hope all is good with you too.
> How do I validate that there is no "SIP123" string at my From-Tag?
You can use the undocumented check_it_inverse. This marks the call as
failed if the regexp matches. Ex:
<recv request="INVITE" crlf="true">
<action>
<ereg regexp="SIP123" search_in="hdr" header="From"
assign_to="match" check_it_inverse="true"/>
</action>
</recv>
<nop test="match" next="ERROR"/>
...Normal processing goes here...
<label id="ERROR" />
<send>
<![CDATA[
SIP/2.0 400 Bad Request
[last_Via:]
[last_From:]
[last_To:];tag=[pid]SIPpTag01[call_number]
[last_Call-ID:]
[last_CSeq:]
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
Content-Length: 0
]]>
</send>
<recv request="ACK"/>
regards,
takeshi
>
> Regards,
> Evgeny Miloslavsky
> Systest Engineer
> Juniper Networks Solutions Israel LTD.
> Office: 972-9-9717320/2355
>
> -----Original Message-----
> From: mayamatakeshi [mailto:[email protected]]
> Sent: Wednesday, July 15, 2009 12:41 PM
> To: Sumeet Bhardwaj
> Cc: [email protected]
> Subject: Re: [Sipp-users] Validate "Not present" character in response
>
> On Wed, Jul 15, 2009 at 6:14 PM, Sumeet
> Bhardwaj<[email protected]> wrote:
>> Thanks for your reply.
>>
>>
>>
>> But how we can use regular expression? I know how to validate
presence
> of
>> any parameter in the header or entire message of response. But I want
> to
>> validate "Not present" character.
>>
>> Can you please provide me exact regular expression using From header
> field
>> as per the example given below?
>
> You can specify that the exact content of the header should be
> "sip:[email protected];tag=5ghjygh68".
>
> For this you use anchors:
>
> <ereg regexp="^sip:9860545...@exmaple\.com;tag=5ghjygh68$"
> search_in="hdr" header="From" check_it="true" assign_to="1" />
>
> If there is anything else around the expected value, the match is
> supposed to fail.
>
> regards,
> takeshi
>
>
------------------------------------------------------------------------
> ------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited
time,
>
> vendors submitting new applications to BlackBerry App World(TM) will
> have
> the opportunity to enter the BlackBerry Developer Challenge. See full
> prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> Sipp-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sipp-users
>
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users