taking contact from correct field (sipctrl only?)

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@790 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 19 years ago
parent 9c0e638fdd
commit 3440914e38

@ -340,7 +340,9 @@ void SIPRegistration::onSipReply(AmSipReply& reply) {
local_contact.parse_contact(local_contact_hdr, (size_t)0, end);
local_contact.dump();
string contacts = getHeader(reply.hdrs, "Contact", "m");
string contacts = reply.contact;
if (contacts.empty())
contacts = getHeader(reply.hdrs, "Contact", "m");
bool found = false;
if (!contacts.length()) {

Loading…
Cancel
Save