[asterisk-scf-commits] asterisk-scf/release/bridging.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Thu May 19 15:25:54 CDT 2011


branch "master" has been updated
       via  316f13b5878d249809c9d749fb732aef34c0acfb (commit)
      from  4154f9e5ad5f9cf58f4fd0eb95a3e0083d931229 (commit)

Summary of changes:
 src/SessionWrapper.cpp |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)


- Log -----------------------------------------------------------------
commit 316f13b5878d249809c9d749fb732aef34c0acfb
Author: Brent Eagles <beagles at digium.com>
Date:   Thu May 19 17:54:54 2011 -0230

    Add some additional logging for system debugging.

diff --git a/src/SessionWrapper.cpp b/src/SessionWrapper.cpp
index db2b255..80e6490 100644
--- a/src/SessionWrapper.cpp
+++ b/src/SessionWrapper.cpp
@@ -335,6 +335,7 @@ void SessionWrapper::connect()
 {
     if (setConnected())
     {
+        mLogger(Debug) << FUNLOG << " sending ConnectIndication() to " << mId;
         //
         // A word about expected context. In a conference bridge, it is quite possible that multiple sessions will have
         // connect() called on them "at once". By using AMI to send these requests out, we free the
@@ -375,6 +376,10 @@ bool SessionWrapper::setConnected()
             makingConnected = true;
             stateUpdate = createUpdate();
         }
+        else
+        {
+            mLogger(Debug) << FUNLOG << " skipped setting connected state, unexpected state " << mSession->currentState;
+        }
     }
     pushUpdate(stateUpdate);
     return makingConnected;

-----------------------------------------------------------------------


-- 
asterisk-scf/release/bridging.git



More information about the asterisk-scf-commits mailing list