[asterisk-scf-commits] asterisk-scf/release/sip.git branch "master" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Wed Apr 13 15:04:38 CDT 2011
branch "master" has been updated
via 24244fa6392253ffe2ff6c60757435be1b26da20 (commit)
from 2b68a207e8b733c5d32f7f3baa63ab743a4a4f82 (commit)
Summary of changes:
src/SipSession.cpp | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 24244fa6392253ffe2ff6c60757435be1b26da20
Author: Mark Michelson <mmichelson at digium.com>
Date: Wed Apr 13 15:03:25 2011 -0500
Catch exception when attempting to release media sessions.
This was discovered by killing the media component during the middle
of a call and then trying to hang up.
diff --git a/src/SipSession.cpp b/src/SipSession.cpp
index ed8d08d..e9609b6 100644
--- a/src/SipSession.cpp
+++ b/src/SipSession.cpp
@@ -562,7 +562,14 @@ void SipSession::destroy()
for (std::vector<AsteriskSCF::Media::RTP::V1::RTPSessionPrx>::const_iterator i =
mImplPriv->mRTPSessions.begin(); i != mImplPriv->mRTPSessions.end(); ++i)
{
- (*i)->release();
+ try
+ {
+ (*i)->release();
+ }
+ catch (const Ice::Exception& ex)
+ {
+ lg(Error) << "Exception caught while trying to release a media session\n" << ex.what();
+ }
}
}
-----------------------------------------------------------------------
--
asterisk-scf/release/sip.git
More information about the asterisk-scf-commits
mailing list