I'm trying to use sipp to either pass or fail a SIP de-registration test, based
on whether or not the 200 OK reply to a REGISTER request contains a Contact:
header. If I send a REGISTER w/ a expires=0 parameter in the Contact: header,
then a properly operating proxy/registrar should respond w/ 200 OK and NO
Contact: header. However, I'm not understanding how to get sipp to pass the
test if the Contact: header does not exist, but fail it if it does. I can't
use the "check_it" action in my regexp because its logic is reversed from what
I want to do.
I can easily do the reverse scenario: pass or fail a registration renewal
(REGISTER w/ expires=3600). In that case, the "check_it" action does what I
want: fail the test if the Contact: header in the 200 OK reply is not existant,
and then move on to test if the expires param that I get back matches what I
expect (in my case, I expect 60). Here is my *working* scenario:
<scenario name="register_clients_sideA.xml">
<send>
<![CDATA[
REGISTER sip:[field1] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: <sip:[EMAIL PROTECTED]>;tag=[call_number]
To: <sip:[EMAIL PROTECTED]>
Call-ID: [call_id]
CSeq: [cseq] REGISTER
Contact: sip:[EMAIL PROTECTED]:[local_port]
Event: message-summary
Max-Forwards: 70
Expires: 3600
User-Agent: SIPp/Linux
Content-Length: 0
]]>
</send>
<recv response="200">
<action>
<ereg regexp=".*" search_in="hdr" header="Contact:" check_it="true"
assign_to="1"/>
<ereg regexp="\bexpires=60\b" search_in="hdr" header="Contact:"
check_it="true" assign_to="1"/>
</action>
</recv>
</scenario>
Could someone please help me in implementing a de-regisatrion scenario that
checks that the 200 OK does NOT have a Contact: header?
Thank,
Jeffrey Wright
System Test Engineering Manager
Aztek Networks, Inc.
-------------------------------------------------------------------------
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