From 9f735ef803bfc8b6722f71a2bef00b071ab1ca1b Mon Sep 17 00:00:00 2001 From: Ovidiu Sas Date: Fri, 2 Feb 2018 14:25:20 -0500 Subject: [PATCH] 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) --- src/modules/textops/textops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/textops/textops.c b/src/modules/textops/textops.c index 97f1ecff127..7dbd07b03c0 100644 --- a/src/modules/textops/textops.c +++ b/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++;