2007/7/4, Saurav SAHU <[EMAIL PROTECTED]>:
> I would know how to add non-standard or proprietary SIP headers in a SIP
> request message such as INVITE or MESSAGE. Which is the tag to be passed as
> a parameter with Sofia-sip API such as the nua_invite()?

SIPTAG_HEADER_STR() is a simple approach, you just include header
name, colon and header value in the tag argument, e.g.,

nua_invite(nh, SIPTAG_HEADER_STR("X-Foo: bar+baz"), ...

When receiving message, the field sip_unknown will contain the list of
unrecognized headers.

Extending the parser is more complicated approach, please see the
sofia-sip-2543 package for an example.

-- 
Pekka.Pessi mail at nokia.com

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to