Browse code

rtpengine: exported rtpengine_query() variants to KEMI framework

- GH #1792

Surendra Tiwari authored on 09/01/2019 07:57:12 • Daniel-Constantin Mierla committed 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 3987
         { SR_KEMIP_INT, SR_KEMIP_INT, SR_KEMIP_NONE,
3978 3988
             SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
3979 3989
     },
3990
+    { str_init("rtpengine"), str_init("rtpengine_query0"),
3991
+        SR_KEMIP_INT, ki_rtpengine_query0,
3992
+        { SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
3993
+            SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
3994
+    },
3995
+    { str_init("rtpengine"), str_init("rtpengine_query"),
3996
+        SR_KEMIP_INT, ki_rtpengine_query,
3997
+        { SR_KEMIP_STR, SR_KEMIP_NONE, SR_KEMIP_NONE,
3998
+            SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
3999
+    },
3980 4000
 
3981 4001
     { {0, 0}, {0, 0}, 0, NULL, { 0, 0, 0, 0, 0, 0 } }
3982 4002
 };