From caa620a5dbb921dfba9ba10b79c5ed630a1941f1 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Fri, 20 Apr 2007 06:45:24 +0000 Subject: [PATCH] added 'assert' in createCalleeSession in case the session ptr is NULL. git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@304 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/AmB2ABSession.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/AmB2ABSession.cpp b/core/AmB2ABSession.cpp index 181ac0d3..2483a924 100644 --- a/core/AmB2ABSession.cpp +++ b/core/AmB2ABSession.cpp @@ -207,8 +207,11 @@ void AmB2ABCallerSession::relayEvent(AmEvent* ev) } void AmB2ABCallerSession::setupCalleeSession(AmB2ABCalleeSession* callee_session, - B2ABConnectLegEvent* ev) { + B2ABConnectLegEvent* ev) +{ other_id = AmSession::getNewId(); + // return; + assert(callee_session); AmSipDialog& callee_dlg = callee_session->dlg; callee_dlg.callid = AmSession::getNewId() + "@" + AmConfig::LocalIP;