Skip to content

Commit

Permalink
textops: check session sendrecv_mode in is_audio_on_hold
Browse files Browse the repository at this point in the history
- if sendrecv_mode is not set in media, check if its set in session
  • Loading branch information
lazedo authored and miconda committed Aug 11, 2021
1 parent 8da4477 commit cbcc27e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/modules/textops/textops.c
Expand Up @@ -4517,8 +4517,15 @@ static int ki_is_audio_on_hold(sip_msg_t *msg)
if(!sdp_stream) break;
if(sdp_stream->media.len==AUDIO_STR_LEN &&
strncmp(sdp_stream->media.s,AUDIO_STR,AUDIO_STR_LEN)==0 &&
sdp_stream->sendrecv_mode.len &&
sdp_stream->is_on_hold)
return sdp_stream->is_on_hold;
if(sdp_stream->media.len==AUDIO_STR_LEN &&
strncmp(sdp_stream->media.s,AUDIO_STR,AUDIO_STR_LEN)==0 &&
!sdp_stream->sendrecv_mode.len &&
sdp_session->sendrecv_mode.len &&
sdp_session->is_on_hold)
return sdp_session->is_on_hold;
sdp_stream_num++;
}
sdp_session_num++;
Expand Down

0 comments on commit cbcc27e

Please sign in to comment.