The following approach works, the unknown header (header: value) is actually in 
the INVITE message:

1.
nua_handle(nua, NULL, SIPTAG_TO(blah), SIPTAG_UNKNOWN_STR("unknown: value"), 
TAG_END());
nua_invite(handle, SOATAG_USER_SDP_STR(sdp), TAG_END());

2. 
nua_handle(nua, NULL, SIPTAG_TO(blah), TAG_END());
nua_invite(handle, ), SOATAG_USER_SDP_STR(sdp), SIPTAG_UNKNOWN_STR("unknown: 
value"), TAG_END());

But setting unknown header with nua_set_hparams() doesn't seem to be working. 
The INVITE message was sent without the header:

nua_handle(nua, NULL, SIPTAG_TO(blah), TAG_END());
nua_set_hparams(handle, SIPTAG_UNKNOWN_STR("unknown: value"), TAG_END());
nua_invite(handle, SOATAG_USER_SDP_STR(sdp), TAG_END());

Is this behavior intended? If it is, I need to set multiple unknown headers in 
runt time so  is there another way to do it?

I am using version version 1.12.11 on Windows 7 64 bit.

Regards,
Kun-Yao Huang

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to