* 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
sayer/1.4-spce2.6
Stefan Sayer 19 years ago
parent efcb7213a7
commit 22184f24d7

@ -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:

Loading…
Cancel
Save