[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 Oct 19 21:27:38 CDT 2010
branch "master" has been updated
via 820136c5f8de501804c9a3e066849c7f25941fc2 (commit)
from fbf541073927fcb1c1064421c39db16c69d39527 (commit)
Summary of changes:
src/SipStateReplicatorListener.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 820136c5f8de501804c9a3e066849c7f25941fc2
Author: Joshua Colp <jcolp at digium.com>
Date: Tue Oct 19 19:26:38 2010 -0700
Move where we add our own module to the dialog.
diff --git a/src/SipStateReplicatorListener.cpp b/src/SipStateReplicatorListener.cpp
index faa0bb3..e750a9c 100644
--- a/src/SipStateReplicatorListener.cpp
+++ b/src/SipStateReplicatorListener.cpp
@@ -134,8 +134,6 @@ public:
PJSipDialogModInfo *dlg_mod_info = new PJSipDialogModInfo(localDialog);
localDialog->mod_data[mManager->getSessionModule()->getModule().id] = (void *) dlg_mod_info;
-
- pjsip_dlg_add_usage(localDialog, &mManager->getSessionModule()->getModule(), NULL);
}
localDialog->state = (dialog->mIsDialogEstablished == true) ? PJSIP_DIALOG_STATE_ESTABLISHED : PJSIP_DIALOG_STATE_NULL;
@@ -186,6 +184,8 @@ public:
localInviteSession->mod_data[mManager->getSessionModule()->getModule().id] = session_mod_info;
i->second->getSession()->setInviteSession(localInviteSession);
+
+ pjsip_dlg_add_usage(localDialog, &mManager->getSessionModule()->getModule(), NULL);
}
if (invitesession->mCurrentState == InviteSessionStateNull)
-----------------------------------------------------------------------
--
asterisk-scf/integration/sip.git
More information about the asterisk-scf-commits
mailing list