summaryrefslogtreecommitdiff
path: root/pjsip
diff options
context:
space:
mode:
authorLiong Sauw Ming <ming@teluu.com>2013-03-06 09:36:05 +0000
committerLiong Sauw Ming <ming@teluu.com>2013-03-06 09:36:05 +0000
commit2585e16cf26de19fc010c37335b13525473caf7d (patch)
treed89ddb042691985473785c0e9a2eba627353cad5 /pjsip
parent1e75f3eca6d763ddd05b94f89590bb3c275919c0 (diff)
Fixed #1633: Crash if on_redirected() callback is not implemented and UAC receives 422 response
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4425 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip')
-rw-r--r--pjsip/src/pjsip-ua/sip_inv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pjsip/src/pjsip-ua/sip_inv.c b/pjsip/src/pjsip-ua/sip_inv.c
index 7d45894e..3c383183 100644
--- a/pjsip/src/pjsip-ua/sip_inv.c
+++ b/pjsip/src/pjsip-ua/sip_inv.c
@@ -3290,11 +3290,11 @@ static void inv_on_state_null( pjsip_inv_session *inv, pjsip_event *e)
if (dlg->role == PJSIP_ROLE_UAC) {
- /* Save the original INVITE request, if on_redirected() callback
- * is implemented. We may need to resend the INVITE if we receive
- * redirection response.
+ /* Save the original INVITE request.
+ * We may need to resend the INVITE if we receive redirection
+ * or session timer too small response.
*/
- if (mod_inv.cb.on_redirected) {
+ if (1) {
if (inv->invite_req) {
pjsip_tx_data_dec_ref(inv->invite_req);
inv->invite_req = NULL;