[SR-Users] testing Supported and Require keywords

Hugh Waite hugh.waite at crocodile-rcs.com
Thu Mar 14 11:05:26 CET 2013


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 regex test on $hdr(X)[*] the
> only possibility?
>
> -- juha
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


-- 
Hugh Waite
Principal Design Engineer
Crocodile RCS Ltd.




More information about the sr-users mailing list