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

Author: Raphael Coeffic <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Tue Jul 15 13:29:04 2014 +0200

core: b/f: session in b relay-stream would never be changed

---

 core/AmB2BMedia.cpp |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/core/AmB2BMedia.cpp b/core/AmB2BMedia.cpp
index 94af7e5..b83d5aa 100644
--- a/core/AmB2BMedia.cpp
+++ b/core/AmB2BMedia.cpp
@@ -585,12 +585,13 @@ void AmB2BMedia::changeSessionUnsafe(bool a_leg, 
AmB2BSession *new_session)
 
   for (RelayStreamIterator j = relay_streams.begin(); j != 
relay_streams.end(); ++j) {
     AmRtpStream &a = (*j)->a;
-    AmRtpStream &b = (*j)->a;
+    AmRtpStream &b = (*j)->b;
 
     // FIXME: is stop & resume receiving needed here?
-    a.changeSession(new_session);
-    b.changeSession(new_session);
-
+    if (a_leg)
+      a.changeSession(new_session);
+    else
+      b.changeSession(new_session);
   }
 
   if (needs_processing) {

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

Reply via email to