[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
Fri Jun 15 12:53:36 CDT 2012


branch "master" has been updated
       via  9f493878cda3744160f72866833a80f451837642 (commit)
      from  447c46a76ebf4f537f302213e35195b3f04aef48 (commit)

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


- Log -----------------------------------------------------------------
commit 9f493878cda3744160f72866833a80f451837642
Author: Brent Eagles <beagles at digium.com>
Date:   Fri Jun 15 15:22:25 2012 -0230

    Invite rejection code is only designed to handle a rejection by message,
    not by other event. Added a check to make sure the code is only entered
    if there is some data expected to be there for it to work with.

diff --git a/src/PJSIPSessionModule.cpp b/src/PJSIPSessionModule.cpp
index b6a01d2..064a5ff 100644
--- a/src/PJSIPSessionModule.cpp
+++ b/src/PJSIPSessionModule.cpp
@@ -1944,7 +1944,7 @@ void PJSIPSessionModule::invOnStateChanged(pjsip_inv_session *inv, pjsip_event *
             //Received a 1XX or 2XX message in response to our initial outgoing INVITE.
             handleInviteResponse(inv, event->body.tsx_state.src.rdata, inv->dlg);
         }
-        else if (inv->state == PJSIP_INV_STATE_DISCONNECTED)
+        else if (event->body.tsx_state.type == PJSIP_EVENT_RX_MSG && inv->state == PJSIP_INV_STATE_DISCONNECTED)
         {
             handleInviteRejection(inv, event->body.tsx_state.src.rdata, event->body.tsx_state.tsx);
         }

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


-- 
asterisk-scf/release/sip.git



More information about the asterisk-scf-commits mailing list