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

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Tue Sep 28 08:01:19 CDT 2010


branch "master" has been updated
       via  3a2da0236713dac3cb4042432a882951e69cc629 (commit)
      from  34f09b7c0accb1a508c31e3b6580e91d68a7429d (commit)

Summary of changes:
 src/SipStateReplicatorListener.cpp |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit 3a2da0236713dac3cb4042432a882951e69cc629
Author: Joshua Colp <jcolp at digium.com>
Date:   Tue Sep 28 10:01:35 2010 -0300

    Associate additional required classes with the invite session.

diff --git a/src/SipStateReplicatorListener.cpp b/src/SipStateReplicatorListener.cpp
index 2570926..71a2be1 100644
--- a/src/SipStateReplicatorListener.cpp
+++ b/src/SipStateReplicatorListener.cpp
@@ -124,6 +124,9 @@ public:
 	       localDialog->secure = (dialog->mIsSecure == true) ? PJ_TRUE : PJ_FALSE;
 
 	       i->second->getSession()->setDialog(localDialog);
+
+	       PJSipDialogModInfo *dlg_mod_info = new PJSipDialogModInfo(localDialog);
+	       localDialog->mod_data[SipChannelServiceDataModel::getInstance().getPJSipManager()->getSessionModule()->id] = (void *) dlg_mod_info;
 	    }
 
 	    localDialog->state = (dialog->mIsDialogEstablished == true) ? PJSIP_DIALOG_STATE_ESTABLISHED : PJSIP_DIALOG_STATE_NULL;
@@ -170,8 +173,8 @@ public:
 	       }
 	       localInviteSession->role = localDialog->role;
 
-	       SipSessionPtr* sessionptr = new SipSessionPtr(i->second->getSession());
-	       localInviteSession->mod_data[pjsip_ua_instance()->id] = (void*)sessionptr;
+	       PJSipSessionModInfo *session_mod_info = new PJSipSessionModInfo(localInviteSession, i->second->getSession());
+	       localInviteSession->mod_data[SipChannelServiceDataModel::getInstance().getPJSipManager()->getSessionModule()->id] = session_mod_info;
 
 	       i->second->getSession()->setInviteSession(localInviteSession);
 	    }

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


-- 
asterisk-scf/integration/sip.git



More information about the asterisk-scf-commits mailing list