From 2e91a52066059ca7ce677cdc2d247633b7799f5b Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Wed, 24 Nov 2010 00:13:04 +0100 Subject: [PATCH] b2b: constructor for 2nd leg with other_id --- core/AmB2BSession.cpp | 3 +-- core/AmB2BSession.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/core/AmB2BSession.cpp b/core/AmB2BSession.cpp index 5dc926ca..f87e16d3 100644 --- a/core/AmB2BSession.cpp +++ b/core/AmB2BSession.cpp @@ -688,12 +688,11 @@ AmB2BCalleeSession* AmB2BCallerSession::newCalleeSession() return new AmB2BCalleeSession(this); } -/* AmB2BCalleeSession::AmB2BCalleeSession(const string& other_local_tag) +AmB2BCalleeSession::AmB2BCalleeSession(const string& other_local_tag) : AmB2BSession(other_local_tag) { a_leg = false; } -*/ AmB2BCalleeSession::AmB2BCalleeSession(const AmB2BCallerSession* caller) : AmB2BSession(caller->getLocalTag()) diff --git a/core/AmB2BSession.h b/core/AmB2BSession.h index dd975472..1cb3f5e7 100644 --- a/core/AmB2BSession.h +++ b/core/AmB2BSession.h @@ -290,7 +290,7 @@ class AmB2BCallerSession: public AmB2BSession class AmB2BCalleeSession: public AmB2BSession { public: - /* AmB2BCalleeSession(const string& other_local_tag); */ + AmB2BCalleeSession(const string& other_local_tag); AmB2BCalleeSession(const AmB2BCallerSession* caller); virtual ~AmB2BCalleeSession();