From 22184f24d7dda82ca70f953820564f862d4fbada Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Thu, 4 Oct 2007 20:05:26 +0000 Subject: [PATCH] * updating contact on reply only if contact present * update next_hop only if present git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@508 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/AmSipDialog.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/core/AmSipDialog.cpp b/core/AmSipDialog.cpp index a1405281..65ba3aae 100644 --- a/core/AmSipDialog.cpp +++ b/core/AmSipDialog.cpp @@ -193,10 +193,15 @@ void AmSipDialog::updateStatus(const AmSipReply& reply) if(!reply.route.empty()) setRoute(reply.route); - next_hop = reply.next_hop; + if (!reply.next_hop.empty()) + next_hop = reply.next_hop; } - remote_uri = reply.next_request_uri; + if (!reply.next_request_uri.empty()) { + DBG("updating remote Contact: %s -> %s\n", + remote_uri.c_str(), reply.next_request_uri.c_str()); + remote_uri = reply.next_request_uri; + } switch(status){ case Disconnecting: