While not used for parsing a INVITE request *received*
you might find this useful to learn from.
<!-- Contact header contains URI of the ad hoc conference to move to -->
<recv response="302" rtd="true">
<action>
<ereg regexp="\<([a-za-z...@.=;]+)[^>]+"
search_in="hdr"
header="Contact: "
assign_to="1"/>
<log message="INFO: 302 Contact Header: [$1]" />
<exec command="echo [$1] >> ./302ContactHeader.txt" />
</action>
</recv>
________________________________
From: Evgeny Miloslavsky [mailto:[email protected]]
Sent: 26 March 2009 09:36
To: [email protected]
Subject: [Sipp-users] HowTo test header value
Hi All
I would like to know, how do I validate that a given header has en
defined value?
For example, I would like to validate that INVITE request received with
Max-Forwards header field value 10. And if it doesn't I want this call
to be signed as "failed".
Thanks in advance
Regards,
Evgeny Miloslavsky
Systest Engineer
Juniper Networks Solutions Israel LTD.
Office: 972-9-9717320/2355
------------------------------------------------------------------------------
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users