mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 07:48:14 +00:00
Merge "res_pjsip_session.c: Fix crashes seen when call cancelled."
This commit is contained in:
@@ -2713,8 +2713,10 @@ static void session_inv_on_media_update(pjsip_inv_session *inv, pj_status_t stat
|
|||||||
struct ast_sip_session *session = inv->mod_data[session_module.id];
|
struct ast_sip_session *session = inv->mod_data[session_module.id];
|
||||||
const pjmedia_sdp_session *local, *remote;
|
const pjmedia_sdp_session *local, *remote;
|
||||||
|
|
||||||
if (!session->channel) {
|
if (!session || !session->channel) {
|
||||||
/* If we don't have a channel. We really don't care about media updates.
|
/*
|
||||||
|
* If we don't have a session or channel then we really
|
||||||
|
* don't care about media updates.
|
||||||
* Just ignore
|
* Just ignore
|
||||||
*/
|
*/
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user