Browse code

rtpengine: exported rtpengine_query() variants to KEMI framework

- GH #1792

Surendra Tiwari authored on 09/01/2019 07:57:12
Showing 1 changed files
... ...
@@ -3843,6 +3843,16 @@ static int ki_rtpengine_delete(sip_msg_t *msg, str *flags)
3843 3843
 	return rtpengine_rtpp_set_wrap(msg, rtpengine_delete_wrap, flags->s, 1);
3844 3844
 }
3845 3845
 
3846
+static int ki_rtpengine_query0(sip_msg_t *msg)
3847
+{       
3848
+        return rtpengine_rtpp_set_wrap(msg, rtpengine_query_wrap, NULL, 1);
3849
+}
3850
+
3851
+static int ki_rtpengine_query(sip_msg_t *msg, str *flags)
3852
+{       
3853
+        return rtpengine_rtpp_set_wrap(msg, rtpengine_query_wrap, flags->s, 1);
3854
+}
3855
+
3846 3856
 static int ki_start_recording(sip_msg_t *msg)
3847 3857
 {
3848 3858
 	return rtpengine_rtpp_set_wrap(msg, rtpengine_start_recording_wrap, NULL, 1);
... ...
@@ -3977,6 +3987,16 @@ static sr_kemi_t sr_kemi_rtpengine_exports[] = {
3977 3977
         { SR_KEMIP_INT, SR_KEMIP_INT, SR_KEMIP_NONE,
3978 3978
             SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
3979 3979
     },
3980
+    { str_init("rtpengine"), str_init("rtpengine_query0"),
3981
+        SR_KEMIP_INT, ki_rtpengine_query0,
3982
+        { SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
3983
+            SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
3984
+    },
3985
+    { str_init("rtpengine"), str_init("rtpengine_query"),
3986
+        SR_KEMIP_INT, ki_rtpengine_query,
3987
+        { SR_KEMIP_STR, SR_KEMIP_NONE, SR_KEMIP_NONE,
3988
+            SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
3989
+    },
3980 3990
 
3981 3991
     { {0, 0}, {0, 0}, 0, NULL, { 0, 0, 0, 0, 0, 0 } }
3982 3992
 };