diff options
author | Joshua Colp <jcolp@digium.com> | 2017-09-25 12:23:53 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-09-25 12:23:53 -0500 |
commit | 360bd11c30f22d809689a6c059f3cbd649101476 (patch) | |
tree | ba7a238644e97f596040c7daa500a92fb6eae90c /res/res_pjsip_session.c | |
parent | 9cb58997813d3f9a7656b75b5e4cd965105d3fc8 (diff) | |
parent | 36690c26f88374dbd71aab899479a4dd671d6408 (diff) |
Merge "res_pjsip_session: Don't end session when receiving a 500 on a reinvite"
Diffstat (limited to 'res/res_pjsip_session.c')
-rw-r--r-- | res/res_pjsip_session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_pjsip_session.c b/res/res_pjsip_session.c index e95536a86..76dafb378 100644 --- a/res/res_pjsip_session.c +++ b/res/res_pjsip_session.c @@ -3485,8 +3485,8 @@ static void session_inv_on_tsx_state_changed(pjsip_inv_session *inv, pjsip_trans ast_sip_session_send_request_with_cb(session, tdata, cb); return; } - if (tsx->status_code != 488) { - /* Other reinvite failures (except 488) result in destroying the session. */ + if (tsx->status_code != 488 && tsx->status_code != 500) { + /* Other reinvite failures (except 488 and 500) result in destroying the session. */ if (pjsip_inv_end_session(inv, 500, NULL, &tdata) == PJ_SUCCESS && tdata) { ast_sip_session_send_request(session, tdata); |