Module: sems
Branch: master
Commit: 486aaeb11d47e4c35139ae664af5bd09fff73f80
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=486aaeb11d47e4c35139ae664af5bd09fff73f80

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Sat Mar 30 12:26:34 2013 +0800

core:b2b: use b2b 2nd leg Call-ID if already set in newCalleeSession

---

 core/AmB2BSession.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/core/AmB2BSession.cpp b/core/AmB2BSession.cpp
index 2279c9a..d78dd52 100644
--- a/core/AmB2BSession.cpp
+++ b/core/AmB2BSession.cpp
@@ -1095,7 +1095,8 @@ void AmB2BCallerSession::createCalleeSession() {
   setOtherId(AmSession::getNewId());
   
   callee_dlg->setLocalTag(getOtherId());
-  callee_dlg->setCallid(AmSession::getNewId());
+  if (callee_dlg->getCallid().empty())
+    callee_dlg->setCallid(AmSession::getNewId());
 
   callee_dlg->setLocalParty(dlg->getRemoteParty());
   callee_dlg->setRemoteParty(dlg->getLocalParty());

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to