[sr-dev] git:master:9f735ef8: textops: is_audio_on_hold() returns hold type

Ovidiu Sas osas at voipembedded.com
Fri Feb 2 20:26:05 CET 2018


Module: kamailio
Branch: master
Commit: 9f735ef803bfc8b6722f71a2bef00b071ab1ca1b
URL: https://github.com/kamailio/kamailio/commit/9f735ef803bfc8b6722f71a2bef00b071ab1ca1b

Author: Ovidiu Sas <osas at voipembedded.com>
Committer: Ovidiu Sas <osas at voipembedded.com>
Date: 2018-02-02T14:25:20-05:00

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)

---

Modified: src/modules/textops/textops.c

---

Diff:  https://github.com/kamailio/kamailio/commit/9f735ef803bfc8b6722f71a2bef00b071ab1ca1b.diff
Patch: https://github.com/kamailio/kamailio/commit/9f735ef803bfc8b6722f71a2bef00b071ab1ca1b.patch

---

diff --git a/src/modules/textops/textops.c b/src/modules/textops/textops.c
index 97f1ecff12..7dbd07b03c 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++;




More information about the sr-dev mailing list