fixed overwriting remote uri with empty value

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1023 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 18 years ago
parent dda9d337aa
commit f217955caf

@ -72,7 +72,9 @@ void AmSipDialog::updateStatus(const AmSipRequest& req)
if(uas_trans.find(req.cseq) == uas_trans.end())
uas_trans[req.cseq] = AmSipTransaction(req.method,req.cseq);
remote_uri = req.from_uri;
if (req.from_uri.length())
remote_uri = req.from_uri;
sip_ip = req.dstip;
sip_port = req.port;
@ -96,7 +98,9 @@ void AmSipDialog::updateStatus(const AmSipRequest& req)
*/
void AmSipDialog::updateStatusFromLocalRequest(const AmSipRequest& req)
{
remote_uri = req.r_uri;
if (req.r_uri.length())
remote_uri = req.r_uri;
if(callid.empty()){
DBG("dialog callid is empty, updating from UACRequest\n");
callid = req.callid;

Loading…
Cancel
Save