|
@@ -41,6 +41,7 @@
|
|
|
#include "../../core/timer.h"
|
|
|
#include "../../core/timer_proc.h"
|
|
|
#include "../../core/mod_fix.h"
|
|
|
+#include "../../core/kemi.h"
|
|
|
|
|
|
#include "sca.h"
|
|
|
#include "sca_appearance.h"
|
|
@@ -479,6 +480,19 @@ static int sca_call_info_update_3_f(sip_msg_t* msg,
|
|
|
return sca_call_info_update(msg, update_mask, &uri_to, &uri_from);
|
|
|
}
|
|
|
|
|
|
+int ki_sca_call_info_update_default(sip_msg_t *msg)
|
|
|
+{
|
|
|
+ return sca_call_info_update(msg, SCA_CALL_INFO_SHARED_BOTH, NULL, NULL);
|
|
|
+}
|
|
|
+int ki_sca_call_info_update_mask(sip_msg_t *msg, int umask)
|
|
|
+{
|
|
|
+ return sca_call_info_update(msg, umask, NULL, NULL);
|
|
|
+}
|
|
|
+int ki_sca_call_info_update_turi(sip_msg_t *msg, int umask, str *sto)
|
|
|
+{
|
|
|
+ return sca_call_info_update(msg, umask, sto, NULL);
|
|
|
+}
|
|
|
+
|
|
|
int fixup_ciu(void **param, int param_no)
|
|
|
{
|
|
|
switch (param_no) {
|
|
@@ -504,3 +518,44 @@ int fixup_free_ciu(void **param, int param_no)
|
|
|
return E_UNSPEC;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+/**
|
|
|
+ *
|
|
|
+ */
|
|
|
+/* clang-format off */
|
|
|
+static sr_kemi_t sr_kemi_sca_exports[] = {
|
|
|
+ { str_init("sca"), str_init("handle_subscribe"),
|
|
|
+ SR_KEMIP_INT, ki_sca_handle_subscribe,
|
|
|
+ { SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
|
|
|
+ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
|
|
|
+ },
|
|
|
+ { str_init("sca"), str_init("call_info_update_default"),
|
|
|
+ SR_KEMIP_INT, ki_sca_call_info_update_default,
|
|
|
+ { SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
|
|
|
+ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
|
|
|
+ },
|
|
|
+ { str_init("sca"), str_init("call_info_update_mask"),
|
|
|
+ SR_KEMIP_INT, ki_sca_call_info_update_mask,
|
|
|
+ { SR_KEMIP_INT, SR_KEMIP_NONE, SR_KEMIP_NONE,
|
|
|
+ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
|
|
|
+ },
|
|
|
+ { str_init("sca"), str_init("call_info_update_turi"),
|
|
|
+ SR_KEMIP_INT, ki_sca_call_info_update_turi,
|
|
|
+ { SR_KEMIP_INT, SR_KEMIP_STR, SR_KEMIP_NONE,
|
|
|
+ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
|
|
|
+ },
|
|
|
+ { str_init("sca"), str_init("call_info_update"),
|
|
|
+ SR_KEMIP_INT, sca_call_info_update,
|
|
|
+ { SR_KEMIP_INT, SR_KEMIP_STR, SR_KEMIP_STR,
|
|
|
+ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
|
|
|
+ },
|
|
|
+
|
|
|
+ { {0, 0}, {0, 0}, 0, NULL, { 0, 0, 0, 0, 0, 0 } }
|
|
|
+};
|
|
|
+/* clang-format on */
|
|
|
+
|
|
|
+int mod_register(char *path, int *dlflags, void *p1, void *p2)
|
|
|
+{
|
|
|
+ sr_kemi_modules_add(sr_kemi_sca_exports);
|
|
|
+ return 0;
|
|
|
+}
|