[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 6 10:28:34 CDT 2011


branch "master" has been updated
       via  c0a4ce182691df0bbcafb9b2474ac3ec2e3f7c04 (commit)
      from  da4760e04c2e094e04b6042de510e786cc07a5a0 (commit)

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


- Log -----------------------------------------------------------------
commit c0a4ce182691df0bbcafb9b2474ac3ec2e3f7c04
Author: Ken Hunt <ken.hunt at digium.com>
Date:   Wed Dec 22 17:37:58 2010 -0600

    Changes for AMD operation on EndpointLocator interface.

diff --git a/src/TestEndpoint.cpp b/src/TestEndpoint.cpp
index 33d04b2..2ba23de 100644
--- a/src/TestEndpoint.cpp
+++ b/src/TestEndpoint.cpp
@@ -73,41 +73,41 @@ public:
     //
     void connected()
     {
-	mPublisher->indicated(mSession, new AsteriskSCF::SessionCommunications::V1::ConnectedIndication());
+    mPublisher->indicated(mSession, new AsteriskSCF::SessionCommunications::V1::ConnectedIndication());
     }
 
     void flashed()
     {
-	mPublisher->indicated(mSession, new AsteriskSCF::SessionCommunications::V1::FlashedIndication());
+    mPublisher->indicated(mSession, new AsteriskSCF::SessionCommunications::V1::FlashedIndication());
     }
 
     void held()
     {
-	mPublisher->indicated(mSession, new AsteriskSCF::SessionCommunications::V1::HeldIndication());
+    mPublisher->indicated(mSession, new AsteriskSCF::SessionCommunications::V1::HeldIndication());
     }
 
     void progressing(const AsteriskSCF::SessionCommunications::V1::ResponseCodePtr& response)
     {
-	AsteriskSCF::SessionCommunications::V1::ProgressingIndicationPtr indication(new AsteriskSCF::SessionCommunications::V1::ProgressingIndication());
+    AsteriskSCF::SessionCommunications::V1::ProgressingIndicationPtr indication(new AsteriskSCF::SessionCommunications::V1::ProgressingIndication());
         indication->response = response;
         mPublisher->indicated(mSession, indication);
     }
 
     void ringing()
     {
-	mPublisher->indicated(mSession, new AsteriskSCF::SessionCommunications::V1::RingingIndication());
+    mPublisher->indicated(mSession, new AsteriskSCF::SessionCommunications::V1::RingingIndication());
     }
 
     void stopped(const AsteriskSCF::SessionCommunications::V1::ResponseCodePtr& response)
     {
-	AsteriskSCF::SessionCommunications::V1::StoppedIndicationPtr indication(new AsteriskSCF::SessionCommunications::V1::StoppedIndication());
-	indication->response = response;
-	mPublisher->indicated(mSession, indication);
+    AsteriskSCF::SessionCommunications::V1::StoppedIndicationPtr indication(new AsteriskSCF::SessionCommunications::V1::StoppedIndication());
+    indication->response = response;
+    mPublisher->indicated(mSession, indication);
     }
 
     void unheld()
     {
-	mPublisher->indicated(mSession, new AsteriskSCF::SessionCommunications::V1::UnheldIndication());
+    mPublisher->indicated(mSession, new AsteriskSCF::SessionCommunications::V1::UnheldIndication());
     }
 
     void setProxy(const AsteriskSCF::SessionCommunications::V1::SessionPrx& prx)
@@ -151,7 +151,7 @@ public:
 
     void indicate(const AsteriskSCF::SessionCommunications::V1::IndicationPtr&, const Ice::Current&)
     {
-	mEndpointManager->log(mId, __FUNCTION__);
+    mEndpointManager->log(mId, __FUNCTION__);
     }
 
     void connect(const Ice::Current&)
@@ -539,11 +539,11 @@ public:
         adapter->addFacet(mCommands, adapter->getCommunicator()->stringToIdentity(id), "Commands");
     }
 
-    AsteriskSCF::Core::Endpoint::V1::EndpointSeq lookup(const std::string&, const Ice::Current&)
+    virtual void lookup_async(const ::AsteriskSCF::Core::Routing::V1::AMD_EndpointLocator_lookupPtr& cb, const ::std::string& destination, const ::Ice::Current&)
     {
         AsteriskSCF::Core::Endpoint::V1::EndpointSeq result;
         result.push_back(mEndpointProxy);
-        return result;
+        cb->ice_response(result);
     }
 
 private:

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


-- 
asterisk-scf/release/test_channel.git



More information about the asterisk-scf-commits mailing list