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

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


branch "indicate" has been updated
       via  8a97cd195db2ea12f4dc30494eb4e5968063126e (commit)
      from  503795a461d068efff9a2edd3c6f8a685badb081 (commit)

Summary of changes:
 test/MockSession.cpp |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)


- Log -----------------------------------------------------------------
commit 8a97cd195db2ea12f4dc30494eb4e5968063126e
Author: Joshua Colp <jcolp at digium.com>
Date:   Thu Apr 7 11:20:02 2011 -0300

    Finish migration to new indicate support.

diff --git a/test/MockSession.cpp b/test/MockSession.cpp
index 8ff99c7..ffe3b4e 100644
--- a/test/MockSession.cpp
+++ b/test/MockSession.cpp
@@ -41,7 +41,9 @@ public:
 
     void operator()(const SessionListenerPrx& l)
     {
-        l->stopped(mMyProxy, mResponse);
+	AsteriskSCF::SessionCommunications::V1::StoppedIndicationPtr stopped(new  AsteriskSCF::SessionCommunications::V1::StoppedIndication());
+	stopped->response = mResponse;
+	l->indicated(mMyProxy, stopped);
     }
 
 private:
@@ -88,7 +90,7 @@ void MockSession::indicate(const AsteriskSCF::SessionCommunications::V1::Indicat
     {
 	for(vector<SessionListenerPrx>::iterator i = mListeners.begin(); i != mListeners.end(); ++i)
 	{
-	    (*i)->connected(mMyPrx);
+	    (*i)->indicated(mMyPrx, new AsteriskSCF::SessionCommunications::V1::ConnectedIndication());
 	}
     }
 }
@@ -97,7 +99,7 @@ void MockSession::connect(const Ice::Current&)
 {
     for(vector<SessionListenerPrx>::iterator i = mListeners.begin(); i != mListeners.end(); ++i)
     {
-        (*i)->connected(mMyPrx);
+	(*i)->indicated(mMyPrx, new AsteriskSCF::SessionCommunications::V1::ConnectedIndication());
     }
 }
 
@@ -152,7 +154,7 @@ void MockSession::start(const Ice::Current&)
     for(vector<SessionListenerPrx>::iterator i = mListeners.begin(); i != mListeners.end(); ++i)
     {
         // Auto-answer!
-        (*i)->connected(mMyPrx);
+	(*i)->indicated(mMyPrx, new AsteriskSCF::SessionCommunications::V1::ConnectedIndication());
     }
 }
 

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


-- 
asterisk-scf/integration/routing.git



More information about the asterisk-scf-commits mailing list