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

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Tue Jun 19 14:38:06 CDT 2012


branch "master" has been updated
       via  ffe3315c21acd1dfc04ebfdd1451961f99155017 (commit)
      from  bc607a12fbd4420f10835a6fb0d5dcaef57faebd (commit)

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


- Log -----------------------------------------------------------------
commit ffe3315c21acd1dfc04ebfdd1451961f99155017
Author: Brent Eagles <beagles at digium.com>
Date:   Tue Jun 19 17:06:42 2012 -0230

    Under some conditions it appears that the dialog for the invite_session is
    null, so I added a if() for the code that uses it.

diff --git a/src/PJSIPSessionModule.cpp b/src/PJSIPSessionModule.cpp
index 1fae5f7..a223c74 100644
--- a/src/PJSIPSessionModule.cpp
+++ b/src/PJSIPSessionModule.cpp
@@ -1890,11 +1890,16 @@ protected:
             }
             session_mod_info->mNeedsRemoval = true;
             pjsip_dialog *dlg = mInv->dlg;
-            PJSIPDialogModInfo *dlg_mod_info = (PJSIPDialogModInfo*) dlg->mod_data[mSessionModule->getModule().id];
-            if (dlg_mod_info)
+            PJSIPDialogModInfo *dlg_mod_info = 0;
+            if (dlg)
             {
-                dlg_mod_info->mNeedsRemoval = true;
+                dlg_mod_info = (PJSIPDialogModInfo*) dlg->mod_data[mSessionModule->getModule().id];
+                if (dlg_mod_info)
+                {
+                    dlg_mod_info->mNeedsRemoval = true;
+                }
             }
+
             lg(Debug) << "Replicating state on DISCONNECTED inv_state.";
             mSessionModule->replicateState(dlg_mod_info, NULL, session_mod_info);
             session_mod_info->destroy();

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


-- 
asterisk-scf/release/sip.git



More information about the asterisk-scf-commits mailing list