[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
Sun Sep 11 21:43:23 CDT 2011


branch "master" has been updated
       via  3db0eb32fd1cdac9e8f88c33b6cf109d9746044b (commit)
      from  41c05e52c9d7d0e08fcd919081e5fd77f8c9aabe (commit)

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


- Log -----------------------------------------------------------------
commit 3db0eb32fd1cdac9e8f88c33b6cf109d9746044b
Author: Ken Hunt <ken.hunt at digium.com>
Date:   Sun Sep 11 21:42:34 2011 -0500

    Support changes made to API for Party Identification.

diff --git a/src/TestEndpoint.cpp b/src/TestEndpoint.cpp
index 34678c7..8406b1c 100644
--- a/src/TestEndpoint.cpp
+++ b/src/TestEndpoint.cpp
@@ -35,6 +35,7 @@
 
 using namespace AsteriskSCF::TestUtil;
 using namespace AsteriskSCF::SessionCommunications::V1;
+using namespace AsteriskSCF::SessionCommunications::PartyIdentification::V1;
 
 namespace
 {
@@ -146,6 +147,31 @@ public:
     {
         mInfo = new AsteriskSCF::SessionCommunications::V1::SessionInfo;
         mInfo->currentState = "ready";
+
+        NamePtr name = new Name("bar");
+        NumberPtr number = new Number("100");
+        IdPtr testId = new Id(name, number);
+        IdSeq idSeq;
+        idSeq.push_back(testId);
+        mCaller = new Caller(idSeq);
+
+        mSessionOwnerId = new SessionOwnerId(idSeq);
+
+        NamePtr dialedName = new Name("foo");
+        NumberPtr dialedNumber = new Number("104");
+        IdPtr dialedId = new Id(dialedName, dialedNumber);
+        IdSeq dialedSeq;
+        dialedSeq.push_back(dialedId);
+        mDialed = new Dialed(dialedNumber);
+
+        NamePtr redirName = new Name("scud");
+        NumberPtr redirNumber = new Number("666");
+        IdPtr connectedId = new Id(redirName, redirNumber);
+        IdSeq idSeq2;
+        idSeq2.push_back(connectedId);
+        mConnectedLine = new ConnectedLine(idSeq2);
+
+        mRedirecting = new Redirecting(dialedId, connectedId, 1);
     }
 
     void addListener_async(
@@ -366,6 +392,31 @@ public:
         mListeners->setProxy(prx);
     }
 
+    void getCaller_async(const AMD_Session_getCallerPtr& cb, const Ice::Current&)
+    {
+        cb->ice_response(mCaller);
+    }
+
+    void getDialed_async(const AMD_Session_getDialedPtr& cb, const Ice::Current&)
+    {
+        cb->ice_response(mDialed);
+    }
+
+    void getSessionOwnerId_async(const AMD_Session_getSessionOwnerIdPtr& cb, const ::Ice::Current&)
+    {
+        cb->ice_response(mSessionOwnerId);
+    }
+
+    void getConnectedLine_async(const AMD_Session_getConnectedLinePtr& cb, const ::Ice::Current&)
+    {
+        cb->ice_response(mConnectedLine);
+    }
+
+    void getRedirecting_async(const AMD_Session_getRedirectingPtr& cb, const Ice::Current& )
+    {
+        cb->ice_response(mRedirecting);
+    }
+
 private:
     boost::shared_mutex mMutex;
     InternalManagerPtr mEndpointManager;
@@ -376,6 +427,11 @@ private:
     AsteriskSCF::Media::V1::SessionPrx mMediaSession;
     SessionListenerMgrPtr mListeners;
     AsteriskSCF::SessionCommunications::V1::BridgePrx mCurrentBridge;
+    SessionOwnerIdPtr mSessionOwnerId;
+    CallerPtr mCaller;
+    DialedPtr mDialed;
+    ConnectedLinePtr mConnectedLine;
+    RedirectingPtr mRedirecting;
 };
 
 typedef IceUtil::Handle<SessionI> SessionIPtr;

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


-- 
asterisk-scf/release/test_channel.git



More information about the asterisk-scf-commits mailing list