Module: sems Branch: master Commit: 3352e36c9226a5aab75426e67c7a10704015bfc0 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=3352e36c9226a5aab75426e67c7a10704015bfc0
Author: Raphael Coeffic <[email protected]> Committer: Raphael Coeffic <[email protected]> Date: Wed Apr 3 18:11:48 2013 +0200 sbc: added call-end event when BYE comes from B-leg --- apps/sbc/SBCCallLeg.cpp | 7 +++++++ apps/sbc/SBCCallLeg.h | 1 + 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/apps/sbc/SBCCallLeg.cpp b/apps/sbc/SBCCallLeg.cpp index ee96993..d67779b 100644 --- a/apps/sbc/SBCCallLeg.cpp +++ b/apps/sbc/SBCCallLeg.cpp @@ -559,6 +559,13 @@ void SBCCallLeg::onBye(const AmSipRequest& req) logCallEnd("bye",&req); } +void SBCCallLeg::onOtherBye(const AmSipRequest& req) +{ + CallLeg::onOtherBye(req); + if(a_leg) + logCallEnd("bye",&req); +} + void SBCCallLeg::onDtmf(int event, int duration) { if(media_session) { diff --git a/apps/sbc/SBCCallLeg.h b/apps/sbc/SBCCallLeg.h index 866818f..2e59297 100644 --- a/apps/sbc/SBCCallLeg.h +++ b/apps/sbc/SBCCallLeg.h @@ -178,6 +178,7 @@ class SBCCallLeg : public CallLeg, public CredentialHolder void onRemoteDisappeared(const AmSipReply& reply); void onBye(const AmSipRequest& req); + void onOtherBye(const AmSipRequest& req); void onControlCmd(string& cmd, AmArg& params); _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
