[SR-Users] How to find whether or not certain header exists?

Allen Zhang Allen.Zhang at imgtec.com
Thu Jun 26 06:35:47 CEST 2014


Hi,

If I normally receive a INVITE that has a header 'aaa' with value 'bbb', but it's possible that some INVITEs don't have this header.
How do I determine in the config file if the header exists?
To check the value of the header I do if($hdr(aaa) == "bbb"). But what if the header doesn't exist?

Cheer,
Allen


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140626/93c2adcc/attachment.html>


More information about the sr-users mailing list