Re: [reSIProcate] How to extract parameters from Contact Header?
> Contact: <sip:1000@xxxxxxxxxxx: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?
>
NameAddr contact;
ExtensionParameter p_video("video");
assert (contact.exists(p_video));
Hope that helps.
Jason