Hugh Waite writes:
> We've used this to detect a Supported keyword:
>
> if ((is_present_hf("Supported")) && in_list("timer", "$hdr(Supported)",
> "," )) {
thanks for remaining me about in_list() that i wrote myself.
-- juha
___
SIP Express Router (S
I am not sure if Supported can appear many times in a message, that
might require using the [*] index as Juha pointed.
For sake of completion, the search_hf() could be an alternative for now,
getting a flag to walk through all headers matching the name:
- http://kamailio.org/docs/modules/stab
We've used this to detect a Supported keyword:
if ((is_present_hf("Supported")) && in_list("timer", "$hdr(Supported)",
"," )) {
...
}
Hugh
On 14/03/2013 03:27, Juha Heinanen wrote:
is there currently a proper way to test if a particular keyword appears
in Supported or Require header or is a
is there currently a proper way to test if a particular keyword appears
in Supported or Require header or is a regex test on $hdr(X)[*] the
only possibility?
-- juha
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@li