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

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Fri May 20 15:22:46 CDT 2011


branch "master" has been updated
       via  34a177e2628b60d7fa8da14b35f65f4c79659eee (commit)
      from  c65cf9a29833a1c60ce59a12b6b8670dae300bba (commit)

Summary of changes:
 src/TestEndpoint.cpp |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit 34a177e2628b60d7fa8da14b35f65f4c79659eee
Author: Brent Eagles <beagles at digium.com>
Date:   Fri May 20 17:52:16 2011 -0230

    Improve the information logged by the indicate method.

diff --git a/src/TestEndpoint.cpp b/src/TestEndpoint.cpp
index 90ef50a..538c522 100644
--- a/src/TestEndpoint.cpp
+++ b/src/TestEndpoint.cpp
@@ -149,9 +149,19 @@ public:
         return mInfo;
     }
 
-    void indicate(const AsteriskSCF::SessionCommunications::V1::IndicationPtr&, const Ice::Current&)
+    void indicate(const AsteriskSCF::SessionCommunications::V1::IndicationPtr& value, const Ice::Current&)
     {
-        mEndpointManager->log(mId, __FUNCTION__);
+        std::string msg;
+        if (value)
+        {
+            msg = value->ice_id() + ":";
+            msg += __FUNCTION__;
+        }
+        else
+        {
+            msg = __FUNCTION__;
+        }
+        mEndpointManager->log(mId, msg);
     }
 
     void connect(const Ice::Current&)

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


-- 
asterisk-scf/release/test_channel.git



More information about the asterisk-scf-commits mailing list