Re: [SR-Users] testing Supported and Require keywords

2013-03-14 Thread Juha Heinanen
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

Re: [SR-Users] testing Supported and Require keywords

2013-03-14 Thread Daniel-Constantin Mierla
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

Re: [SR-Users] testing Supported and Require keywords

2013-03-14 Thread Hugh Waite
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

[SR-Users] testing Supported and Require keywords

2013-03-13 Thread Juha Heinanen
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