[prev in list] [next in list] [prev in thread] [next in thread]
List: semsdev
Subject: [Semsdev] git:master: b/f: fixes previous commit on SUB/NOT race condition.
From: Raphael Coeffic <rco () iptel ! org>
Date: 2013-06-12 13:43:47
Message-ID: 20130612134347.8E268EF8076 () rimmer ! ryngle ! com
[Download RAW message or body]
Module: sems
Branch: master
Commit: 723ead73eb803eeca4fe04fb7395e02a31984772
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=723ead73eb803eeca4fe04fb7395e02a31984772
Author: Raphael Coeffic <rco@iptel.org>
Committer: Raphael Coeffic <rco@iptel.org>
Date: Wed Jun 12 15:37:58 2013 +0200
b/f: fixes previous commit on SUB/NOT race condition.
---
core/AmSipSubscription.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/core/AmSipSubscription.cpp b/core/AmSipSubscription.cpp
index a9febc3..458257b 100644
--- a/core/AmSipSubscription.cpp
+++ b/core/AmSipSubscription.cpp
@@ -495,7 +495,7 @@ AmSipSubscription::createSubscription(const AmSipRequest& req, \
bool uac) AmSipSubscription::Subscriptions::iterator
AmSipSubscription::matchSubscription(const AmSipRequest& req, bool uac)
{
- if(req.to_tag.empty()
+ if((!uac && req.to_tag.empty()) || (uac && dlg->getRemoteTag().empty())
|| (req.method == SIP_METH_REFER) || subs.empty()) {
DBG("no to-tag, REFER or subs empty: create new subscription\n");
_______________________________________________
Semsdev mailing list
Semsdev@lists.iptel.org
http://lists.iptel.org/mailman/listinfo/semsdev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic