From 3440914e38357a6b364afff7e2317b1cdf5cb0aa Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Thu, 13 Mar 2008 16:35:22 +0000 Subject: [PATCH] taking contact from correct field (sipctrl only?) git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@790 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- apps/registrar_client/SIPRegistrarClient.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/registrar_client/SIPRegistrarClient.cpp b/apps/registrar_client/SIPRegistrarClient.cpp index 2254ecff..e5d0d0b1 100644 --- a/apps/registrar_client/SIPRegistrarClient.cpp +++ b/apps/registrar_client/SIPRegistrarClient.cpp @@ -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()) {