Module: sems Branch: rco/offer_answer Commit: 395ba4be854d24c0ce38f1abec5d055a8544ee53 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=395ba4be854d24c0ce38f1abec5d055a8544ee53
Author: Raphael Coeffic <[email protected]> Committer: Raphael Coeffic <[email protected]> Date: Thu Apr 21 17:54:12 2011 +0200 some debug help + comment. --- core/AmB2BSession.cpp | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/core/AmB2BSession.cpp b/core/AmB2BSession.cpp index 39808f4..d94129d 100644 --- a/core/AmB2BSession.cpp +++ b/core/AmB2BSession.cpp @@ -74,7 +74,12 @@ AmB2BSession::~AmB2BSession() } DBG("relayed_req.size() = %u\n",(unsigned int)relayed_req.size()); + + map<int,AmSipRequest>::iterator it = recvd_req.begin(); DBG("recvd_req.size() = %u\n",(unsigned int)recvd_req.size()); + for(;it != recvd_req.end(); ++it){ + DBG(" <%i,%s>\n",it->first,it->second.method.c_str()); + } } void AmB2BSession::set_sip_relay_only(bool r) { @@ -224,6 +229,7 @@ void AmB2BSession::onB2BEvent(B2BEvent* ev) return; case B2BTerminateLeg: + DBG("terminateLeg()\n"); terminateLeg(); break; } @@ -956,6 +962,7 @@ void AmB2BCallerSession::onB2BEvent(B2BEvent* ev) // 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()); + // TODO: terminated my own leg instead? (+ clear_other()) terminateOtherLeg(); } _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
