On date Friday 2009-05-22 17:02:13 +0200, Stefano Sabatini phoned this: > Hi all, > > I'd like to add to an application the management of a non standard > header, say for example X-Fruit-Of-The-Week. > > In sofia-sip/libsofia-sip-ua/sip/ADD-A-HEADER there is a terse > description of the procedure to follow. Problem is that it implies the > creation of a separate library, and the execution of the > msg_parser.awk script on it, which looks a little... overkill. > > Are you aware of a simpler solution? Running the awk script on a > source .c.in file may be fine, but possibly I would like to avoid the > need to create an autoconf/mess project just for adding an > X-Fruit-Of-The-Week header management to sofia. > > Have anyone never tried it and/or have a working example?
No need to extend the parser for just that. I discovered the SIPTAG_HEADER_STR() which is just perfect for this task: nua_invite(h, SIPTAG_HEADER_STR("X-Fruit-Of-The-Week: apple"), NUTAG_MEDIA_ENABLE(1), TAG_END()); Regards. ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://www.creativitycat.com _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel