forked from Mirrors/freeswitch
60434decf5
mod_enum can be used as a dialplan app, an api call from the console or as a dialplan interface. Dialplan Interface: put enum as the dialplan parameter in an endpoint module i.e. instead of "XML" set it to "enum" or "enum,XML" for fall through. Dialplan App: This example will do a lookup and set the a variable that is the proper dialstring to call all of the possible routes in order of preference according to the lookup and the order of the routes in the enum.conf section. <extension name="tollfree"> <condition field="destination_number" expression="^(18(0{2}|8{2}|7{2}|6{2})\d{7})$"> <action application="enum" data="$1"/> <action application="bridge" data="${enum_auto_route}"/> </condition> </extension> You can also pick an alrernate root: <action application="enum" data="$1 myroot.org"/> API command: at the console you can say: enum <number> [<root>] The root always defaults to the one in the enum.conf section. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3494 d0543943-73ff-0310-b7d9-9358b9ac24b2
92 lines
2.0 KiB
Makefile
Executable File
92 lines
2.0 KiB
Makefile
Executable File
#!/usr/bin/make -f
|
|
# -*- makefile -*-
|
|
# This file was originally written by Joey Hess and Craig Small.
|
|
# As a special exception, when this file is copied by dh-make into a
|
|
# dh-make output file, you may use that output file without restriction.
|
|
# This special exception was added by Craig Small in version 0.37 of dh-make.
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
#export DH_VERBOSE=1
|
|
export DH_COMPAT=4
|
|
|
|
CFLAGS = -Wall -W -Wmissing-prototypes -g
|
|
CDEFS = -DHAVE_POOL
|
|
|
|
INSTALL = install
|
|
INSTALL_PROGRAM = $(INSTALL) -p
|
|
INSTALL_DATA = $(INSTALL) -p -m0644
|
|
|
|
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
|
|
CFLAGS += -O0
|
|
else
|
|
CFLAGS += -O2
|
|
endif
|
|
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
|
|
INSTALL_PROGRAM += -s
|
|
endif
|
|
ifeq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
|
|
# CDEFS += -DNDEBUG
|
|
endif
|
|
|
|
SOVER = 0
|
|
|
|
configure: # nothing
|
|
dh_testdir
|
|
|
|
build: build-stamp
|
|
build-stamp:
|
|
dh_testdir
|
|
$(MAKE) CFLAGS="$(CFLAGS)" CDEFS="$(CDEFS)" SOVER=$(SOVER) \
|
|
staticlib sharedlib rblcheck.shared dnsget.shared
|
|
mv -f rblcheck.shared rblcheck
|
|
mv -f dnsget.shared dnsget
|
|
touch $@
|
|
|
|
clean:
|
|
dh_testdir
|
|
rm -f build-stamp
|
|
$(MAKE) distclean
|
|
dh_clean
|
|
|
|
install: build
|
|
dh_testdir
|
|
dh_testroot
|
|
dh_clean
|
|
dh_installdirs
|
|
dh_installdocs -A NEWS
|
|
|
|
# libudns
|
|
dh_install -plibudns$(SOVER) libudns.so.$(SOVER) usr/lib
|
|
|
|
# libudns-dev
|
|
dh_install -plibudns-dev libudns.a libudns.so usr/lib
|
|
dh_install -plibudns-dev udns.h usr/include
|
|
dh_installman -plibudns-dev udns.3
|
|
dh_installdocs -plibudns-dev TODO NOTES
|
|
dh_installexamples -plibudns-dev ex-rdns.c
|
|
|
|
# udns-utils
|
|
dh_installdirs -pudns-utils usr/bin
|
|
dh_install -pudns-utils dnsget rblcheck usr/bin
|
|
dh_installman -pudns-utils dnsget.1 rblcheck.1
|
|
|
|
binary-indep: build install
|
|
|
|
binary-arch: build install
|
|
dh_testdir
|
|
dh_testroot
|
|
dh_installchangelogs
|
|
dh_installdocs
|
|
dh_strip
|
|
dh_compress
|
|
dh_fixperms
|
|
dh_makeshlibs
|
|
dh_installdeb
|
|
dh_shlibdeps -L libudns$(SOVER) -l debian/libudns$(SOVER)/usr/lib
|
|
dh_gencontrol
|
|
dh_md5sums
|
|
dh_builddeb
|
|
|
|
binary: binary-indep binary-arch
|
|
.PHONY: build clean binary-indep binary-arch binary install configure
|