< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

[reSIProcate-users] Accessing Contact header info


How do you access the contact header of a 180 response, and in particular, 
check if the phone is using tcp or udp.

I was thinking

resip::NameAddr contact = msg->header(resip::h_Contact);
std::string trans(contact.uri().param(resip::p_transport).c_str());

Am I nearly right, apart from the first line?

Thanks