[asterisk-scf-commits] asterisk-scf/integration/test_channel.git branch "indicate" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Thu Apr 7 09:17:30 CDT 2011


branch "indicate" has been updated
       via  8c2c50a7406cacfb529a3e510e953f960035778b (commit)
      from  9f163f823e256bd86b841d924997983b14b840b0 (commit)

Summary of changes:
 src/TestEndpoint.cpp |   18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)


- Log -----------------------------------------------------------------
commit 8c2c50a7406cacfb529a3e510e953f960035778b
Author: Joshua Colp <jcolp at digium.com>
Date:   Thu Apr 7 11:19:52 2011 -0300

    Finish migration to new indicate support.

diff --git a/src/TestEndpoint.cpp b/src/TestEndpoint.cpp
index 5c84d69..5e6569c 100644
--- a/src/TestEndpoint.cpp
+++ b/src/TestEndpoint.cpp
@@ -73,37 +73,41 @@ public:
     //
     void connected()
     {
-        mPublisher->connected(mSession);
+	mPublisher->indicated(mSession, new AsteriskSCF::SessionCommunications::V1::ConnectedIndication());
     }
 
     void flashed()
     {
-        mPublisher->flashed(mSession);
+	mPublisher->indicated(mSession, new AsteriskSCF::SessionCommunications::V1::FlashedIndication());
     }
 
     void held()
     {
-        mPublisher->held(mSession);
+	mPublisher->indicated(mSession, new AsteriskSCF::SessionCommunications::V1::HeldIndication());
     }
 
     void progressing(const AsteriskSCF::SessionCommunications::V1::ResponseCodePtr& response)
     {
-        mPublisher->progressing(mSession, response);
+	AsteriskSCF::SessionCommunications::V1::ProgressingIndicationPtr progressing(new AsteriskSCF::SessionCommunications::V1::ProgressingIndication());
+        progressing->response = response;
+        mPublisher->indicated(mSession, progressing);
     }
 
     void ringing()
     {
-        mPublisher->ringing(mSession);
+	mPublisher->indicated(mSession, new AsteriskSCF::SessionCommunications::V1::RingingIndication());
     }
 
     void stopped(const AsteriskSCF::SessionCommunications::V1::ResponseCodePtr& response)
     {
-        mPublisher->stopped(mSession, response);
+	AsteriskSCF::SessionCommunications::V1::StoppedIndicationPtr stopped(new AsteriskSCF::SessionCommunications::V1::StoppedIndication());
+	stopped->response = response;
+	mPublisher->indicated(mSession, stopped);
     }
 
     void unheld()
     {
-        mPublisher->unheld(mSession);
+	mPublisher->indicated(mSession, new AsteriskSCF::SessionCommunications::V1::UnheldIndication());
     }
 
     void setProxy(const AsteriskSCF::SessionCommunications::V1::SessionPrx& prx)

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


-- 
asterisk-scf/integration/test_channel.git



More information about the asterisk-scf-commits mailing list