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

Author: Xenofon Karamanos <x...@gilawa.com>
Committer: Victor Seva <linuxman...@torreviejawireless.org>
Date: 2024-01-11T17:04:07+01:00

rtpengine: Add support for codec-accept and codec-consume

---

Modified: src/modules/rtpengine/rtpengine.c

---

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

---

diff --git a/src/modules/rtpengine/rtpengine.c 
b/src/modules/rtpengine/rtpengine.c
index 11745d6b863..e3e4c6e1d50 100644
--- a/src/modules/rtpengine/rtpengine.c
+++ b/src/modules/rtpengine/rtpengine.c
@@ -126,7 +126,8 @@ struct ng_flags_parse {
        int via, to, packetize, transport, directional;
        bencode_item_t *dict, *flags, *direction, *replace, *rtcp_mux, *sdes, 
*t38,
                        *received_from, *codec, *codec_strip, *codec_offer,
-                       *codec_transcode, *codec_mask, *codec_set, 
*codec_except;
+                       *codec_transcode, *codec_mask, *codec_set, 
*codec_except, *codec_accept,
+                       *codec_consume;
        str call_id, from_tag, to_tag;
 };
 
@@ -2735,6 +2736,12 @@ static int parse_flags(struct ng_flags_parse *ng_flags, 
struct sip_msg *msg,
                if(parse_codec_flag(ng_flags, &key, &val, "codec-except", NULL,
                                   "except", &ng_flags->codec_except))
                        goto next;
+               if(parse_codec_flag(ng_flags, &key, &val, "codec-accept", NULL,
+                                  "accept", &ng_flags->codec_accept))
+                       goto next;
+               if(parse_codec_flag(ng_flags, &key, &val, "codec-consume", NULL,
+                                  "consume", &ng_flags->codec_consume))
+                       goto next;
 
                /* check for specially handled items */
                switch(key.len) {

_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org

Reply via email to