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

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


branch "indicate" has been updated
       via  626ae7f220d8b0ad44820a5110eeceb61248d032 (commit)
      from  ab478a5684fed6d71a1169104ff9067a240b1e81 (commit)

Summary of changes:
 src/PJSipSessionModule.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)


- Log -----------------------------------------------------------------
commit 626ae7f220d8b0ad44820a5110eeceb61248d032
Author: Joshua Colp <jcolp at digium.com>
Date:   Thu Apr 7 11:20:21 2011 -0300

    Finish migration to new indicate support.

diff --git a/src/PJSipSessionModule.cpp b/src/PJSipSessionModule.cpp
index b04d252..3b818f1 100644
--- a/src/PJSipSessionModule.cpp
+++ b/src/PJSipSessionModule.cpp
@@ -918,6 +918,8 @@ void PJSipSessionModule::invOnStateChanged(pjsip_inv_session *inv, pjsip_event *
         }
         std::vector<AsteriskSCF::SessionCommunications::V1::SessionListenerPrx> listeners = session->getListeners();
         lg(Debug) << "Relating stopped state to " << listeners.size() << " listeners";
+	AsteriskSCF::SessionCommunications::V1::StoppedIndicationPtr stopped(new AsteriskSCF::SessionCommunications::V1::StoppedIndication());
+	stopped->response = response;
         for (std::vector<AsteriskSCF::SessionCommunications::V1::SessionListenerPrx>::iterator listener =
                  listeners.begin();
              listener != listeners.end();
@@ -925,7 +927,7 @@ void PJSipSessionModule::invOnStateChanged(pjsip_inv_session *inv, pjsip_event *
         {
             try
             {
-                (*listener)->stopped(session->getSessionProxy(), response);
+                (*listener)->indicated(session->getSessionProxy(), stopped);
             }
             catch (const Ice::Exception &ex)
             {

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


-- 
asterisk-scf/integration/sip.git



More information about the asterisk-scf-commits mailing list