From 759b24189f084b73db3a5ba52075ff7a0199a795 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Tue, 13 Jun 2006 07:10:07 +0000 Subject: [PATCH] fixes a bug causing the caller dialog to interpret answers from the old callee dialog as if they where from the new one. git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@58 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/AmB2BSession.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/AmB2BSession.cpp b/core/AmB2BSession.cpp index 1de9e0de..d9fa5980 100644 --- a/core/AmB2BSession.cpp +++ b/core/AmB2BSession.cpp @@ -203,6 +203,11 @@ void AmB2BCallerSession::onB2BEvent(B2BEvent* ev) AmSipReply& reply = ((B2BSipReplyEvent*)ev)->reply; + if(other_id != reply.local_tag){ + DBG("Dialog missmatch!!\n"); + return; + } + DBG("reply received from other leg\n"); switch(callee_status){ @@ -221,6 +226,8 @@ void AmB2BCallerSession::onB2BEvent(B2BEvent* ev) reinviteCaller(reply); } else { + //DBG("received %i from other leg: other_id=%s; reply.local_tag=%s\n", + // reply.code,other_id.c_str(),reply.local_tag.c_str()); terminateOtherLeg(); }