Module: kamailio
Branch: master
Commit: 324611b2ecfe2fda25abc8114361d00a9e654772
URL:
https://github.com/kamailio/kamailio/commit/324611b2ecfe2fda25abc8114361d00…
Author: Farzaneh Soltanzadeh <f.soltanzade72(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: 2024-09-02T08:04:19-04:00
rtpengine: use ki functions as exported api functions (#3956)
- remove extra funcs
- change functions name
Co-authored-by: Farzaneh Soltanzadeh <fr.soltanzadeh(a)resaa.net>
---
Modified: src/modules/rtpengine/api.h
Modified: src/modules/rtpengine/rtpengine.c
---
Diff:
https://github.com/kamailio/kamailio/commit/324611b2ecfe2fda25abc8114361d00…
Patch:
https://github.com/kamailio/kamailio/commit/324611b2ecfe2fda25abc8114361d00…
---
diff --git a/src/modules/rtpengine/api.h b/src/modules/rtpengine/api.h
index fa499916238..d5c68e6d871 100644
--- a/src/modules/rtpengine/api.h
+++ b/src/modules/rtpengine/api.h
@@ -26,18 +26,17 @@
#include "../../core/parser/msg_parser.h"
-typedef int (*rtpengine_start_recording_f)(
- struct sip_msg *msg, char *str1, char *str2);
-typedef int (*rtpengine_answer_f)(struct sip_msg *msg, char *str1, char *str2);
-typedef int (*rtpengine_offer_f)(struct sip_msg *msg, char *str1, char *str2);
-typedef int (*rtpengine_delete_f)(struct sip_msg *msg, char *str1, char *str2);
+typedef int (*rtpengine_start_recording_f)(struct sip_msg *msg);
+typedef int (*rtpengine_answer_f)(struct sip_msg *msg, str *str);
+typedef int (*rtpengine_offer_f)(struct sip_msg *msg, str *str);
+typedef int (*rtpengine_delete_f)(struct sip_msg *msg, str *str);
typedef struct rtpengine_api
{
- rtpengine_start_recording_f start_recording;
- rtpengine_answer_f answer;
- rtpengine_offer_f offer;
- rtpengine_delete_f delete;
+ rtpengine_start_recording_f rtpengine_start_recording;
+ rtpengine_answer_f rtpengine_answer;
+ rtpengine_offer_f rtpengine_offer;
+ rtpengine_delete_f rtpengine_delete;
} rtpengine_api_t;
typedef int (*bind_rtpengine_f)(rtpengine_api_t *api);
diff --git a/src/modules/rtpengine/rtpengine.c b/src/modules/rtpengine/rtpengine.c
index 84bf5951752..e31feb3ceeb 100644
--- a/src/modules/rtpengine/rtpengine.c
+++ b/src/modules/rtpengine/rtpengine.c
@@ -5794,10 +5794,10 @@ static int bind_rtpengine(rtpengine_api_t *api)
LM_ERR("Invalid parameter value\n");
return -1;
}
- api->start_recording = start_recording_f;
- api->answer = rtpengine_answer1_f;
- api->offer = rtpengine_offer1_f;
- api->delete = rtpengine_delete1_f;
+ api->rtpengine_start_recording = ki_start_recording;
+ api->rtpengine_answer = ki_rtpengine_answer;
+ api->rtpengine_offer = ki_rtpengine_offer;
+ api->rtpengine_delete = ki_rtpengine_delete;
return 0;
}
\ No newline at end of file