Module: kamailio
Branch: master
Commit: 026475aa9d43307442d0e57acf8e11544d00dbed
URL:
https://github.com/kamailio/kamailio/commit/026475aa9d43307442d0e57acf8e115…
Author: Surendra Tiwari <surendratiwari3(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-09T08:57:12+01:00
rtpengine: exported rtpengine_query() variants to KEMI framework
- GH #1792
---
Modified: src/modules/rtpengine/rtpengine.c
---
Diff:
https://github.com/kamailio/kamailio/commit/026475aa9d43307442d0e57acf8e115…
Patch:
https://github.com/kamailio/kamailio/commit/026475aa9d43307442d0e57acf8e115…
---
diff --git a/src/modules/rtpengine/rtpengine.c b/src/modules/rtpengine/rtpengine.c
index 484ce05f35..6269a8c787 100644
--- a/src/modules/rtpengine/rtpengine.c
+++ b/src/modules/rtpengine/rtpengine.c
@@ -3843,6 +3843,16 @@ static int ki_rtpengine_delete(sip_msg_t *msg, str *flags)
return rtpengine_rtpp_set_wrap(msg, rtpengine_delete_wrap, flags->s, 1);
}
+static int ki_rtpengine_query0(sip_msg_t *msg)
+{
+ return rtpengine_rtpp_set_wrap(msg, rtpengine_query_wrap, NULL, 1);
+}
+
+static int ki_rtpengine_query(sip_msg_t *msg, str *flags)
+{
+ return rtpengine_rtpp_set_wrap(msg, rtpengine_query_wrap, flags->s, 1);
+}
+
static int ki_start_recording(sip_msg_t *msg)
{
return rtpengine_rtpp_set_wrap(msg, rtpengine_start_recording_wrap, NULL, 1);
@@ -3977,6 +3987,16 @@ static sr_kemi_t sr_kemi_rtpengine_exports[] = {
{ SR_KEMIP_INT, SR_KEMIP_INT, SR_KEMIP_NONE,
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},
+ { str_init("rtpengine"), str_init("rtpengine_query0"),
+ SR_KEMIP_INT, ki_rtpengine_query0,
+ { SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
+ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
+ },
+ { str_init("rtpengine"), str_init("rtpengine_query"),
+ SR_KEMIP_INT, ki_rtpengine_query,
+ { SR_KEMIP_STR, SR_KEMIP_NONE, SR_KEMIP_NONE,
+ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
+ },
{ {0, 0}, {0, 0}, 0, NULL, { 0, 0, 0, 0, 0, 0 } }
};