[Devel] how to search through "Supported" header values
Andreas Granig
andreas.granig at inode.info
Wed Feb 8 16:05:46 CET 2006
Hi,
Daniel Hsueh wrote:
> Can anyone offer ideas on how I can programmatically search through the
> Supported header items looking for a certain value? I'd like to do it
> via the post-parsed sip message APIs rather than search through the raw
> header text as a string.
The Supported-Parser (in CVS-HEAD) is currently rather rudimentary and
only supports "path" and "rel100". You can pass an integer to
parse_supported(...) and then check the elements using the currently
available flags F_SUPPORTED_PATH and F_SUPPORTED_REL100.
See parser/parse_supported.c/h, if you'd like to extend it...
Bye,
Andy
More information about the Devel
mailing list