[reSIProcate] How to extract parameters from Contact Header?

Chuck Baker (chuckbak) chuckbak at cisco.com
Fri Dec 2 09:56:37 CST 2005


I have the following Contact header:
Contact: <sip:1000 at 10.10.10.10:5060>;video;audio
I need to test whether the "video" and "audio" parameters are present.
How do I do this with resiprocate API?
The Resip Overview document describes how to get the individual contacts
via:
for (NameAddrs::const_iterator i = msg->header(h_Contacts).begin(); i !=
msg->header(h_Contacts.end(); ++i){
    const NameAddr& na = *i;
    ...;
But, how do I get parameters from the Contact line?
TIA!

Chuck

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20051202/1a7c6022/attachment.htm>


More information about the resiprocate-devel mailing list