瀏覽代碼

textops: is_audio_on_hold() returns hold type
1 - RFC2543 hold type (the connection IP is set to null IP)
2 - RFC3264 hold type (inactive or sendonly attr)

Ovidiu Sas 7 年之前
父節點
當前提交
9f735ef803
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/textops/textops.c

+ 1 - 1
src/modules/textops/textops.c

@@ -3368,7 +3368,7 @@ static int ki_is_audio_on_hold(sip_msg_t *msg)
 				if(sdp_stream->media.len==AUDIO_STR_LEN &&
 					strncmp(sdp_stream->media.s,AUDIO_STR,AUDIO_STR_LEN)==0 &&
 					sdp_stream->is_on_hold)
-					return 1;
+					return sdp_stream->is_on_hold;
 				sdp_stream_num++;
 			}
 			sdp_session_num++;