mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-12-02 07:24:51 +00:00
Implement SIP 603+ (ATIS-1000099) support for FCC analytics-based call blocking compliance. Detection: - Detect incoming 603+ responses by checking "Network Blocked" phrase and "v=analytics1;" in the `Reason` header text - Set `sip_603plus_reason` channel variable on both legs for CDR visibility Passthrough control: - `sip_603plus_passthrough=true`: forward 603+ phrase and Reason header - `sip_603plus_passthrough=false`: strip `Reason` header, send clean `603 Decline` - Not set: existing behavior preserved - Works independently of `disable_q850_reason` for selective forwarding
57 lines
3.3 KiB
Makefile
57 lines
3.3 KiB
Makefile
include $(top_srcdir)/build/modmake.rulesam
|
|
|
|
MODNAME=mod_sofia
|
|
|
|
noinst_LTLIBRARIES = libsofiamod.la
|
|
libsofiamod_la_SOURCES = mod_sofia.c sofia.c sofia_json_api.c sofia_glue.c sofia_presence.c sofia_reg.c sofia_media.c sip-dig.c rtp.c mod_sofia.h sip-dig.h
|
|
libsofiamod_la_LDFLAGS = -static
|
|
libsofiamod_la_CFLAGS = $(AM_CFLAGS) -I. $(SOFIA_SIP_CFLAGS) $(STIRSHAKEN_CFLAGS)
|
|
if HAVE_STIRSHAKEN
|
|
libsofiamod_la_CFLAGS += -DHAVE_STIRSHAKEN
|
|
endif
|
|
|
|
mod_LTLIBRARIES = mod_sofia.la
|
|
mod_sofia_la_SOURCES =
|
|
mod_sofia_la_LIBADD = $(switch_builddir)/libfreeswitch.la libsofiamod.la
|
|
mod_sofia_la_LDFLAGS = -avoid-version -module -no-undefined -shared $(SOFIA_SIP_LIBS) $(STIRSHAKEN_LIBS)
|
|
|
|
noinst_PROGRAMS = test/test_sofia_funcs test/test_nuafail test/sipp-based-tests test/test_603plus
|
|
|
|
test_test_sofia_funcs_SOURCES = test/test_sofia_funcs.c
|
|
test_test_sofia_funcs_CFLAGS = $(AM_CFLAGS) $(SOFIA_SIP_CFLAGS) $(STIRSHAKEN_CFLAGS) -DSWITCH_TEST_BASE_DIR_FOR_CONF=\"${abs_builddir}/test\" -DSWITCH_TEST_BASE_DIR_OVERRIDE=\"${abs_builddir}/test\"
|
|
if HAVE_STIRSHAKEN
|
|
test_test_sofia_funcs_CFLAGS += -DHAVE_STIRSHAKEN
|
|
endif
|
|
test_test_sofia_funcs_LDFLAGS = $(AM_LDFLAGS) -avoid-version -no-undefined $(freeswitch_LDFLAGS) $(switch_builddir)/libfreeswitch.la $(CORE_LIBS) $(APR_LIBS) $(STIRSHAKEN_LIBS)
|
|
test_test_sofia_funcs_LDADD = libsofiamod.la $(SOFIA_SIP_LIBS) $(STIRSHAKEN_LIBS)
|
|
|
|
test_test_603plus_SOURCES = test/test_603plus.c
|
|
test_test_603plus_CFLAGS = $(AM_CFLAGS) $(SOFIA_SIP_CFLAGS) -DSWITCH_TEST_BASE_DIR_FOR_CONF=\"${abs_builddir}/test\" -DSWITCH_TEST_BASE_DIR_OVERRIDE=\"${abs_builddir}/test\"
|
|
test_test_603plus_LDFLAGS = $(AM_LDFLAGS) -avoid-version -no-undefined $(freeswitch_LDFLAGS) $(switch_builddir)/libfreeswitch.la $(CORE_LIBS) $(APR_LIBS)
|
|
test_test_603plus_LDADD = libsofiamod.la $(SOFIA_SIP_LIBS)
|
|
|
|
test_test_nuafail_SOURCES = test/test_nuafail.c
|
|
test_test_nuafail_CFLAGS = $(AM_CFLAGS) $(SOFIA_SIP_CFLAGS) $(STIRSHAKEN_CFLAGS) -DSWITCH_TEST_BASE_DIR_FOR_CONF=\"${abs_builddir}/test\" -DSWITCH_TEST_BASE_DIR_OVERRIDE=\"${abs_builddir}/test\"
|
|
if HAVE_STIRSHAKEN
|
|
test_test_nuafail_CFLAGS += -DHAVE_STIRSHAKEN
|
|
endif
|
|
test_test_nuafail_LDFLAGS = $(AM_LDFLAGS) -avoid-version -no-undefined $(freeswitch_LDFLAGS) $(switch_builddir)/libfreeswitch.la $(CORE_LIBS) $(APR_LIBS) $(STIRSHAKEN_LIBS)
|
|
test_test_nuafail_LDADD = libsofiamod.la $(SOFIA_SIP_LIBS)
|
|
|
|
test_sipp_based_tests_SOURCES = test/sipp-based-tests.c
|
|
test_sipp_based_tests_CFLAGS = $(AM_CFLAGS) $(SOFIA_SIP_CFLAGS) -DSWITCH_TEST_BASE_DIR_FOR_CONF=\"${abs_builddir}/test\" -DSWITCH_TEST_BASE_DIR_OVERRIDE=\"${abs_builddir}/test\"
|
|
test_sipp_based_tests_LDFLAGS = $(AM_LDFLAGS) -avoid-version -no-undefined $(freeswitch_LDFLAGS) $(switch_builddir)/libfreeswitch.la $(CORE_LIBS) $(APR_LIBS)
|
|
test_sipp_based_tests_LDADD = libsofiamod.la $(SOFIA_SIP_LIBS)
|
|
|
|
TESTS = test/test_sofia_funcs.sh test/test_nuafail test/test_603plus
|
|
#TESTS += test/test_run_sipp.sh
|
|
|
|
if ISMAC
|
|
mod_sofia_la_LDFLAGS += -framework CoreFoundation -framework SystemConfiguration
|
|
test_test_sofia_funcs_LDFLAGS += -framework CoreFoundation -framework SystemConfiguration
|
|
test_test_nuafail_LDFLAGS += -framework CoreFoundation -framework SystemConfiguration
|
|
test_test_603plus_LDFLAGS += -framework CoreFoundation -framework SystemConfiguration
|
|
test_sipp_based_tests_LDFLAGS += -framework CoreFoundation -framework SystemConfiguration
|
|
endif
|
|
|