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

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Fri Sep 30 17:53:40 CDT 2011


branch "master" has been updated
       via  472c492708d30b05c3949e3ffed14f9241b2456d (commit)
      from  5b3bdbd9ae828aecea006d5d604a86fa4afd133a (commit)

Summary of changes:
 test/MockSession.cpp |    9 ++++++---
 test/MockSession.h   |    4 ++--
 2 files changed, 8 insertions(+), 5 deletions(-)


- Log -----------------------------------------------------------------
commit 472c492708d30b05c3949e3ffed14f9241b2456d
Author: Ken Hunt <ken.hunt at digium.com>
Date:   Fri Sep 30 17:38:48 2011 -0500

    Adapt to changes in Party Id records.

diff --git a/test/MockSession.cpp b/test/MockSession.cpp
index 38d3462..0a79a7c 100644
--- a/test/MockSession.cpp
+++ b/test/MockSession.cpp
@@ -88,7 +88,10 @@ MockSession::MockSession(const string& legId,
     idSeq2.push_back(connectedId);
     mConnectedLine = new ConnectedLine(idSeq2);
 
-        mRedirecting = new Redirecting(dialedId, connectedId, 1);
+    RedirectionSeq redirects;
+    RedirectionPtr redirect = new Redirection(dialedId, connectedId);
+    redirects.push_back(redirect);
+    mRedirections = new Redirections(redirects);
 }
 
 MockSession::~MockSession()
@@ -239,9 +242,9 @@ void MockSession::getConnectedLine_async(const AMD_Session_getConnectedLinePtr&
     cb->ice_response(mConnectedLine);
 }
 
-void MockSession::getRedirecting_async(const AMD_Session_getRedirectingPtr& cb, const Ice::Current& )
+void MockSession::getRedirections_async(const AMD_Session_getRedirectionsPtr& cb, const Ice::Current& )
 {
-    cb->ice_response(mRedirecting);
+    cb->ice_response(mRedirections);
 }
 
 /**
diff --git a/test/MockSession.h b/test/MockSession.h
index f60ae98..00026f5 100644
--- a/test/MockSession.h
+++ b/test/MockSession.h
@@ -100,7 +100,7 @@ public:
                             const ::Ice::Current&);
     void getConnectedLine_async(const AsteriskSCF::SessionCommunications::V1::AMD_Session_getConnectedLinePtr& cb,  
                                 const ::Ice::Current&);
-    void getRedirecting_async(const AsteriskSCF::SessionCommunications::V1::AMD_Session_getRedirectingPtr& cb, 
+    void getRedirections_async(const AsteriskSCF::SessionCommunications::V1::AMD_Session_getRedirectionsPtr& cb, 
                               const Ice::Current& );
 
 public:
@@ -128,7 +128,7 @@ private:
     AsteriskSCF::SessionCommunications::PartyIdentification::V1::CallerPtr mCaller;
     AsteriskSCF::SessionCommunications::PartyIdentification::V1::DialedPtr mDialed;
     AsteriskSCF::SessionCommunications::PartyIdentification::V1::ConnectedLinePtr mConnectedLine;
-    AsteriskSCF::SessionCommunications::PartyIdentification::V1::RedirectingPtr mRedirecting;
+    AsteriskSCF::SessionCommunications::PartyIdentification::V1::RedirectionsPtr mRedirections;
 };
 typedef IceUtil::Handle<MockSession> MockSessionPtr;
 

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


-- 
asterisk-scf/release/routing.git



More information about the asterisk-scf-commits mailing list