Re: [reSIProcate-users] How to handle random headers in SIP message
On 08/07/15 22:54, Scott Godin wrote:
> Yup - you can use ExtensionHeaders:
> https://www.resiprocate.org/Use_Overview#Extension_Header
The ExtensionHeaders are useful for "X-" headers
If you use this for a header that later becomes an officially supported
header then you will encounter an exception when using future versions
of reSIProcate that recognize the header name in question:
https://github.com/resiprocate/resiprocate/blob/master/resip/stack/ExtensionHeader.cxx#L26
Should we make this more flexible/less fragile? I had to use this once
with a header name that was in an IETF draft. The draft still isn't an
RFC so the header name isn't known in the stack.
Regards,
Daniel