[Opalvoip-svn] SF.net SVN: opalvoip:[29903] opal/branches/v3_12/src/ep/localep.cxx
Brought to you by:
csoutheren,
rjongbloed
From: <rjo...@us...> - 2013-06-07 03:26:57
|
Revision: 29903 http://sourceforge.net/p/opalvoip/code/29903 Author: rjongbloed Date: 2013-06-07 03:26:54 +0000 (Fri, 07 Jun 2013) Log Message: ----------- Fixed propagation of call end reason to remote network connection from local connection. Modified Paths: -------------- opal/branches/v3_12/src/ep/localep.cxx Modified: opal/branches/v3_12/src/ep/localep.cxx =================================================================== --- opal/branches/v3_12/src/ep/localep.cxx 2013-06-07 00:05:50 UTC (rev 29902) +++ opal/branches/v3_12/src/ep/localep.cxx 2013-06-07 03:26:54 UTC (rev 29903) @@ -142,10 +142,13 @@ bool OpalLocalEndPoint::RejectIncomingCall(const PString & token, const OpalConnection::CallEndReason & reason) { PSafePtr<OpalLocalConnection> connection = GetLocalConnectionWithLock(token, PSafeReadOnly); - if (connection == NULL) + if (connection == NULL) { + PTRACE(2, "LocalEP\tCould not find connection using token \"" << token << '"'); return false; + } - connection->Release(reason); + PTRACE(3, "LocalEP\tRejecting incoming call with reason " << reason); + connection->Release(reason, true); return true; } @@ -255,7 +258,7 @@ return true; PTRACE(4, "LocalCon\tOnOutgoingSetUp returned false on " << *this); - Release(EndedByNoAccept); + Release(EndedByNoAccept, true); return false; } @@ -271,7 +274,8 @@ return true; if (!OnIncoming()) { - Release(EndedByLocalBusy); + PTRACE(4, "LocalCon\tOnIncoming returned false on " << *this); + Release(EndedByLocalBusy, true); return false; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |