- don't update dialog status when processing ACK

- only update remote URI on target refresh requests (INV, UPD, SUB, NOT)



git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1545 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 17 years ago
parent d6b071fc0b
commit 04f517d70c

@ -69,10 +69,18 @@ AmSipDialog::~AmSipDialog()
void AmSipDialog::updateStatus(const AmSipRequest& req)
{
if (req.method == "ACK")
return;
if(uas_trans.find(req.cseq) == uas_trans.end())
uas_trans[req.cseq] = AmSipTransaction(req.method,req.cseq);
if (req.from_uri.length())
// target refresh requests
if (req.from_uri.length() &&
(req.method == "INVITE" ||
req.method == "UPDATE" ||
req.method == "SUBSCRIBE" ||
req.method == "NOTIFY"))
remote_uri = req.from_uri;
sip_ip = req.dstip;

Loading…
Cancel
Save