totally stubby tcap module

mr3.2.1
Richard Fuchs 13 years ago
parent 53988d3fcb
commit 4ec3f9d141

@ -18,3 +18,4 @@ sipwise/nathelper.contact_only.patch
sipwise/parallel_build.patch
sipwise/url-safe_base64.patch
sipwise/dialoginfo_notify_body.patch
sipwise/tcap.patch

@ -0,0 +1,52 @@
--- /dev/null
+++ b/modules/tcap/Makefile
@@ -0,0 +1,9 @@
+include ../../Makefile.defs
+auto_gen=
+NAME=tcap.so
+
+DEFS+=-DKAMAILIO_MOD_INTERFACE -D_GNU_SOURCE
+DEFS+=-I/usr/include/tcap
+LIBS+=-ltcap
+
+include ../../Makefile.modules
--- /dev/null
+++ b/modules/tcap/tcap_mod.c
@@ -0,0 +1,37 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <string.h>
+#include <tcap/libtcap.h>
+#include "../../sr_module.h"
+#include "../../mod_fix.h"
+#include "../../pvar.h"
+
+MODULE_VERSION
+
+static int tcap(sip_msg_t *msg, char *su, char *sq);
+
+static cmd_export_t cmds[] = {
+ {"tcap", (cmd_function)tcap, 2, fixup_spve_spve, 0,
+ REQUEST_ROUTE | FAILURE_ROUTE},
+ {0,}
+};
+
+struct module_exports exports = {
+ "tcap",
+ DEFAULT_DLFLAGS,
+ cmds,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0
+};
+
+static int tcap(sip_msg_t *msg, char *su, char *sq) {
+ return 0;
+}
Loading…
Cancel
Save