On Thu, Mar 26, 2009 at 6:36 PM, Evgeny Miloslavsky <[email protected]> wrote: > 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”.
As the doc says, just set the parameter check_it to "true" in the ereg action when inspecting the header: "if set to true, the call is marked as failed if the regexp doesn't match" Then you can send some 4XX response, maybe wait for ACK (some UAs don't send this) and jump to the end of the scenario. regards, takeshi ------------------------------------------------------------------------------ _______________________________________________ Sipp-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sipp-users
