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

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Thu Oct 14 09:51:02 CDT 2010


branch "transfer" has been updated
       via  e3f28eb54ba6519bd07a7996abfd159227b2e03d (commit)
      from  4260e5faf767c539fb7c840d739a7a693488da3a (commit)

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


- Log -----------------------------------------------------------------
commit e3f28eb54ba6519bd07a7996abfd159227b2e03d
Author: Joshua Colp <jcolp at digium.com>
Date:   Thu Oct 14 11:48:55 2010 -0300

    Update session state when switching to confirmed state so the confirmed state actually gets replicated.

diff --git a/src/PJSipSessionModule.cpp b/src/PJSipSessionModule.cpp
index 6c40e20..4b8137d 100644
--- a/src/PJSipSessionModule.cpp
+++ b/src/PJSipSessionModule.cpp
@@ -690,6 +690,13 @@ void PJSipSessionModule::invOnStateChanged(pjsip_inv_session *inv, pjsip_event *
       //We received an ACK for our 2XX response.
       //See comment in invOnTransactionStateChanged() for explanation of this.
 
+      PJSipSessionModInfo *session_mod_info = static_cast<PJSipSessionModInfo*>(inv->mod_data[mModule.id]);
+      if (session_mod_info)
+      {
+	 session_mod_info->updateSessionState(inv);
+      }
+      replicateState(NULL, NULL, session_mod_info);
+
       //Compare branches to see if this got handled by the transaction layer.
       if (inv->invite_tsx && pj_strcmp(&event->body.rx_msg.rdata->msg_info.via->branch_param, &inv->invite_tsx->branch) != 0)
       {

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


-- 
asterisk-scf/integration/sip.git



More information about the asterisk-scf-commits mailing list