diff options
author | Joshua Colp <jcolp@digium.com> | 2017-09-21 12:30:18 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-09-21 12:30:18 -0500 |
commit | 357a2f353b1157a86aefb6220d7f8c7166ccb0f7 (patch) | |
tree | b29ea23170ad2395a20c86ec8b6987bc45cac163 /res/res_pjsip_sdp_rtp.c | |
parent | 5ff46578aa20921cf3649809a9be9b7231acc507 (diff) | |
parent | e666051d790bb2a9d1e9ff6bb11bd69db6e0efba (diff) |
Merge "res_pjsip_session: Check for removed stream state."
Diffstat (limited to 'res/res_pjsip_sdp_rtp.c')
-rw-r--r-- | res/res_pjsip_sdp_rtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip_sdp_rtp.c b/res/res_pjsip_sdp_rtp.c index e095f0660..8ec57aa8e 100644 --- a/res/res_pjsip_sdp_rtp.c +++ b/res/res_pjsip_sdp_rtp.c @@ -1338,7 +1338,7 @@ static int create_outgoing_sdp_stream(struct ast_sip_session *session, struct as media->desc.port = 0; media->desc.port_count = 1; - if (remote) { + if (remote && remote->media[ast_stream_get_position(stream)]) { pjmedia_sdp_media *remote_media = remote->media[ast_stream_get_position(stream)]; int index; |