From 4ec3f9d14145c3acfeab95dd19d5dc046e9ee115 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 9 Dec 2013 11:22:50 -0500 Subject: [PATCH] totally stubby tcap module --- debian/patches/series | 1 + debian/patches/sipwise/tcap.patch | 52 +++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 debian/patches/sipwise/tcap.patch diff --git a/debian/patches/series b/debian/patches/series index 42786a960..a221562ba 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -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 diff --git a/debian/patches/sipwise/tcap.patch b/debian/patches/sipwise/tcap.patch new file mode 100644 index 000000000..4f5511661 --- /dev/null +++ b/debian/patches/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 ++#include ++#include ++#include ++#include ++#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; ++}