< Previous by Date | Date Index | Next by Date > |
Thread Index | Next in Thread > |
SIP is an open specification. Elements may add headers that are not generally known. Extension headers are always of type StringCategory and are multiple valued but not comma separated. Extension headers may have parameters, however, not all stacks will consider semi-colons in extension headers significant, so extension header parameters may cause interop problems.
Extension headers are declared, for example:
static const resip::ExtensionHeader h_XFoos("X-Foo");
They are used similarly to built-in headers; the h_XFoos declared above is a header access token.
msg->header(h_XFoos).push_back(StringCategory("value"));
Thanks