res_pjsip_session.c: Fix crashes seen when call cancelled.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 30 Jul 2015 22:05:57 +0000 (17:05 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 30 Jul 2015 22:05:57 +0000 (17:05 -0500)
commit077c58cd5c421edac3eb0f7cb453334bc51fa0ac
tree692b14f239ec00f0a6f83ce7e085cdafa278adac
parent687597ca8c2412f79b79f9b13e17f3ec0ff0ce0c
res_pjsip_session.c: Fix crashes seen when call cancelled.

Two testsuite tests crashed in the same place as a result of an INVITE
being CANCELed.

tests/channels/pjsip/resolver/srv/failover/in_dialog/transport_unspecified
tests/channels/pjsip/resolver/srv/failover/in_dialog/transport_tcp

The session pointer is no longer in the inv->mod_data[session_module.id]
location because the INVITE transaction has reached the terminated state.

ASTERISK-25297 #close
Reported by: Richard Mudgett

Change-Id: Idb75fdca0321f5447d5dac737a632a5f03614427
res/res_pjsip_session.c