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

Author: Ovidiu Sas <o...@voipembedded.com>
Committer: Ovidiu Sas <o...@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++;


_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to