From 2585e16cf26de19fc010c37335b13525473caf7d Mon Sep 17 00:00:00 2001 From: Liong Sauw Ming Date: Wed, 6 Mar 2013 09:36:05 +0000 Subject: 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 --- pjsip/src/pjsip-ua/sip_inv.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pjsip') 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; -- cgit v1.2.3