[packages] move packages related to telephony into its own feed
remove telephony related packages from packages.svn and add new feed 'telephony.git' to feeds.conf.default git-svn-id: svn://svn.openwrt.org/openwrt/packages@36485 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
c5a96ca3fd
commit
146c4e8891
@ -1,704 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2008-2012 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=asterisk18
|
||||
PKG_VERSION:=1.8.10.1
|
||||
PKG_RELEASE:=4
|
||||
|
||||
PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/asterisk/releases/
|
||||
PKG_MD5SUM:=415738d347b9037cbe5f8bfbe66843de
|
||||
|
||||
PKG_BUILD_DIR=$(BUILD_DIR)/asterisk-$(PKG_VERSION)
|
||||
|
||||
include $(INCLUDE_DIR)/ltqtapi.mk
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/asterisk18/Default
|
||||
SUBMENU:=Telephony
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
URL:=http://www.asterisk.org/
|
||||
endef
|
||||
|
||||
define Package/asterisk18/Default/description
|
||||
Asterisk is a complete PBX in software. It provides all of the features
|
||||
you would expect from a PBX and more. Asterisk does voice over IP in three
|
||||
protocols, and can interoperate with almost all standards-based telephony
|
||||
equipment using relatively inexpensive hardware.
|
||||
endef
|
||||
|
||||
|
||||
define Package/asterisk18
|
||||
$(call Package/asterisk18/Default)
|
||||
TITLE:=Complete open source PBX, v1.8x
|
||||
MENU:=1
|
||||
DEPENDS:= +libopenssl +libncurses +libpopt +libpthread +zlib @!TARGET_avr32
|
||||
endef
|
||||
|
||||
define Package/asterisk18/description
|
||||
$(call Package/asterisk18/Default/description)
|
||||
endef
|
||||
|
||||
define Package/asterisk18-sounds
|
||||
$(call Package/asterisk18/Default)
|
||||
TITLE:=Sound files
|
||||
DEPENDS:= asterisk18
|
||||
endef
|
||||
|
||||
define Package/asterisk18-sounds/description
|
||||
$(call Package/asterisk18/Default/description)
|
||||
This package contains sound files for Asterisk.
|
||||
endef
|
||||
|
||||
define Package/asterisk18-voicemail
|
||||
$(call Package/asterisk18/Default)
|
||||
TITLE:=Voicemail support
|
||||
DEPENDS:= asterisk18
|
||||
endef
|
||||
|
||||
define Package/asterisk18-voicemail/description
|
||||
$(call Package/asterisk18/Default/description)
|
||||
This package contains voicemail related modules for Asterisk.
|
||||
endef
|
||||
|
||||
define Package/asterisk18-app-meetme
|
||||
$(call Package/asterisk18/Default)
|
||||
TITLE:=conferencing support
|
||||
DEPENDS:= asterisk18 +dahdi-tools-libtonezone +kmod-dahdi-linux
|
||||
endef
|
||||
|
||||
define Package/asterisk18-app-meetme/description
|
||||
$(call Package/asterisk18/Default/description)
|
||||
This package provides the MeetMe application driver Conferencing support to
|
||||
Asterisk.
|
||||
endef
|
||||
|
||||
define Package/asterisk18-chan-iax2
|
||||
$(call Package/asterisk18/Default)
|
||||
TITLE:=IAX support
|
||||
DEPENDS:= asterisk18 +asterisk18-res-crypto
|
||||
endef
|
||||
|
||||
define Package/asterisk18-chan-iax2/description
|
||||
$(call Package/asterisk18/Default/description)
|
||||
This package provides IAX support to
|
||||
Asterisk.
|
||||
endef
|
||||
|
||||
define Package/asterisk18-cdr
|
||||
$(call Package/asterisk18/Default)
|
||||
TITLE:=CDR support
|
||||
DEPENDS:= asterisk18 @BROKEN
|
||||
endef
|
||||
|
||||
define Package/asterisk18-cdr/description
|
||||
$(call Package/asterisk18/Default/description)
|
||||
This package provides Call Detail Record support to
|
||||
Asterisk.
|
||||
endef
|
||||
|
||||
define Package/asterisk18-res-musiconhold
|
||||
$(call Package/asterisk18/Default)
|
||||
TITLE:=MOH support
|
||||
DEPENDS:= asterisk18
|
||||
endef
|
||||
|
||||
define Package/asterisk18-res-musiconhold/description
|
||||
$(call Package/asterisk18/Default/description)
|
||||
This package provides Music On Hold support to
|
||||
Asterisk.
|
||||
endef
|
||||
|
||||
define Package/asterisk18-res-srtp
|
||||
$(call Package/asterisk18/Default)
|
||||
TITLE:=SRTP support
|
||||
DEPENDS:= asterisk18 libsrtp +asterisk18-res-crypto
|
||||
endef
|
||||
|
||||
define Package/asterisk18-res-srtp/description
|
||||
$(call Package/asterisk18/Default/description)
|
||||
This package provides SRTP support to
|
||||
Asterisk.
|
||||
endef
|
||||
|
||||
define Package/asterisk18-chan-gtalk
|
||||
$(call Package/asterisk18/Default)
|
||||
TITLE:=GTalk support
|
||||
DEPENDS:= asterisk18 +libiksemel
|
||||
endef
|
||||
|
||||
define Package/asterisk18-chan-gtalk/description
|
||||
$(call Package/asterisk18/Default/description)
|
||||
This package provides the channel chan_gtalk and res_jabber for GTalk
|
||||
support to Asterisk.
|
||||
endef
|
||||
|
||||
define Package/asterisk18-chan-mobile
|
||||
$(call Package/asterisk18/Default)
|
||||
TITLE:=Mobile channel support
|
||||
DEPENDS:= asterisk18 +bluez-libs
|
||||
endef
|
||||
|
||||
define Package/asterisk18-chan-mobile/description
|
||||
$(call Package/asterisk18/Default/description)
|
||||
This package provides the channel chan_mobile support to Asterisk.
|
||||
endef
|
||||
|
||||
define Package/asterisk18-res-timing-timerfd
|
||||
$(call Package/asterisk18/Default)
|
||||
TITLE:= Timerfd Timing Interface
|
||||
DEPENDS:= asterisk18
|
||||
endef
|
||||
|
||||
define Package/asterisk18-res-timing-pthread
|
||||
$(call Package/asterisk18/Default)
|
||||
TITLE:= pthread Timing Interface
|
||||
DEPENDS:= asterisk18
|
||||
endef
|
||||
|
||||
define Package/asterisk18-res-fax
|
||||
$(call Package/asterisk18/Default)
|
||||
TITLE:=Generic FAX Resource for FAX technology resource modules
|
||||
DEPENDS:= asterisk18 +asterisk18-res-timing-pthread
|
||||
endef
|
||||
|
||||
define Package/asterisk18-res-fax-spandsp
|
||||
$(call Package/asterisk18/Default)
|
||||
TITLE:=Spandsp T.38 and G.711 FAX Resource
|
||||
DEPENDS:= asterisk18 +asterisk18-res-fax +libspandsp
|
||||
endef
|
||||
|
||||
define Package/asterisk18-chan-mgcp
|
||||
$(call Package/asterisk18/Default)
|
||||
TITLE:=MGCP channel support
|
||||
DEPENDS:= asterisk18
|
||||
endef
|
||||
|
||||
define Package/asterisk18-chan-mgcp/description
|
||||
$(call Package/asterisk18/Default/description)
|
||||
This package provides the channel chan_mgcp support to Asterisk.
|
||||
endef
|
||||
|
||||
define Package/asterisk18-chan-skinny
|
||||
$(call Package/asterisk18/Default)
|
||||
TITLE:=Skinny channel support
|
||||
DEPENDS:= asterisk18
|
||||
endef
|
||||
|
||||
define Package/asterisk18-chan-skinny/description
|
||||
$(call Package/asterisk18/Default/description)
|
||||
This package provides the channel chan_skinny support to Asterisk.
|
||||
endef
|
||||
|
||||
define Package/asterisk18-curl
|
||||
$(call Package/asterisk18/Default)
|
||||
TITLE:=CURL support
|
||||
DEPENDS:= asterisk18 +libcurl
|
||||
endef
|
||||
|
||||
define Package/asterisk18-curl/description
|
||||
$(call Package/asterisk18/Default/description)
|
||||
This package provides CURL
|
||||
support to Asterisk.
|
||||
endef
|
||||
|
||||
define Package/asterisk18-mysql
|
||||
$(call Package/asterisk18/Default)
|
||||
TITLE:=MySQL support
|
||||
DEPENDS:= asterisk18 +PACKAGE_asterisk18-mysql:libmysqlclient
|
||||
endef
|
||||
|
||||
define Package/asterisk18-mysql/description
|
||||
$(call Package/asterisk18/Default/description)
|
||||
This package provides MySQL
|
||||
support to Asterisk.
|
||||
endef
|
||||
|
||||
define Package/asterisk18-chan-lantiq
|
||||
$(call Package/asterisk18/Default)
|
||||
TITLE:=Lantiq TAPI support
|
||||
DEPENDS:= asterisk18 $(LTQ_TAPI_DEPENDS)
|
||||
URL:=http://git.nanl.de/?p=asterisk_channel_lantiq.git
|
||||
MAINTAINER:=Mirko Vogt <mirko@openwrt.org>
|
||||
endef
|
||||
|
||||
define Package/asterisk18-chan-lantiq/description
|
||||
$(call Package/asterisk18/Default/description)
|
||||
This package provides the channel chan_lantiq support to Asterisk.
|
||||
endef
|
||||
|
||||
define Package/asterisk18-odbc
|
||||
$(call Package/asterisk18/Default)
|
||||
TITLE:=ODBC support
|
||||
DEPENDS:= asterisk18 +libpthread +libc +unixodbc
|
||||
endef
|
||||
|
||||
define Package/asterisk18-odbc/description
|
||||
$(call Package/asterisk18/Default/description)
|
||||
This package provides ODBC support for Asterisk.
|
||||
endef
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-app-meetme),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-dahdi="$(STAGING_DIR)/usr"
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-dahdi
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-chan-gtalk),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-gnutls="$(STAGING_DIR)/usr" \
|
||||
--with-iksemel="$(STAGING_DIR)/usr"
|
||||
SITE_VARS+= \
|
||||
ac_cv_lib_iksemel_iks_start_sasl=yes \
|
||||
ac_cv_lib_gnutls_gnutls_bye=yes
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-gnutls \
|
||||
--without-iksemel
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-curl),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-curl="$(STAGING_DIR)/usr"
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-curl
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-mysql),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-mysqlclient="$(STAGING_DIR)/usr/bin"
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-mysqlclient
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-res-fax-spandsp),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-spandsp="$(STAGING_DIR)/usr"
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-spandsp
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-chan-mobile),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-bluetooth="$(STAGING_DIR)/usr"
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-bluetooth
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-res-srtp),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-srtp="$(STAGING_DIR)/usr"
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-srtp
|
||||
endif
|
||||
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-curses \
|
||||
--with-gsm=internal \
|
||||
--without-cap \
|
||||
--without-gtk \
|
||||
--without-gtk2 \
|
||||
--without-isdnnet \
|
||||
--without-kde \
|
||||
--without-misdn \
|
||||
--without-nbs \
|
||||
--with-ncurses="$(STAGING_DIR)/usr" \
|
||||
--without-netsnmp \
|
||||
--without-newt \
|
||||
--without-ogg \
|
||||
--without-osptk \
|
||||
--with-popt="$(STAGING_DIR)/usr" \
|
||||
--without-pri \
|
||||
--without-qt \
|
||||
--without-radius \
|
||||
--without-sdl \
|
||||
--without-suppserv \
|
||||
--without-tds \
|
||||
--without-termcap \
|
||||
--without-tinfo \
|
||||
--without-vorbis \
|
||||
--without-vpb \
|
||||
--with-z="$(STAGING_DIR)/usr" \
|
||||
--with-sounds-cache="$(DL_DIR)" \
|
||||
--disable-xmldoc
|
||||
|
||||
EXTRA_CFLAGS+= $(TARGET_CPPFLAGS)
|
||||
EXTRA_LDFLAGS+= $(TARGET_LDFLAGS)
|
||||
|
||||
define Build/Prepare
|
||||
$(call Build/Prepare/Default)
|
||||
ifneq ($(CONFIG_TARGET_lantiq),)
|
||||
$(CP) ./src-lantiq/* $(PKG_BUILD_DIR)/
|
||||
endif
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
$(call Build/Configure/Default,,$(SITE_VARS))
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C "$(PKG_BUILD_DIR)" \
|
||||
include/asterisk/version.h \
|
||||
include/asterisk/buildopts.h defaults.h \
|
||||
makeopts.embed_rules
|
||||
ASTCFLAGS="$(EXTRA_CFLAGS) -DLOW_MEMORY" \
|
||||
ASTLDFLAGS="$(EXTRA_LDFLAGS)" \
|
||||
$(MAKE) -C "$(PKG_BUILD_DIR)" \
|
||||
ASTVARLIBDIR="/usr/lib/asterisk" \
|
||||
ASTDATADIR="/usr/lib/asterisk" \
|
||||
ASTKEYDIR="/usr/lib/asterisk" \
|
||||
ASTDBDIR="/usr/lib/asterisk" \
|
||||
NOISY_BUILD="1" \
|
||||
DEBUG="" \
|
||||
OPTIMIZE="" \
|
||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||
all install samples
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include/asterisk-1.8/include/asterisk/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk/*.h $(1)/usr/include/asterisk-1.8/include/asterisk/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk.h $(1)/usr/include/asterisk-1.8/include/
|
||||
endef
|
||||
|
||||
define Package/asterisk18/conffiles
|
||||
/etc/asterisk/asterisk.conf
|
||||
/etc/asterisk/modules.conf
|
||||
/etc/asterisk/extensions.conf
|
||||
/etc/asterisk/sip.conf
|
||||
/etc/asterisk/sip_notify.conf
|
||||
/etc/asterisk/features.conf
|
||||
/etc/asterisk/indications.conf
|
||||
/etc/asterisk/logger.conf
|
||||
/etc/asterisk/manager.conf
|
||||
/etc/asterisk/rtp.conf
|
||||
/etc/default/asterisk
|
||||
/etc/init.d/asterisk
|
||||
endef
|
||||
|
||||
define Package/asterisk18/install
|
||||
$(INSTALL_DIR) $(1)/etc/asterisk
|
||||
for f in asterisk extensions features \
|
||||
indications logger manager modules \
|
||||
sip sip_notify rtp; do \
|
||||
$(CP) $(PKG_INSTALL_DIR)/etc/asterisk/$$$$f.conf $(1)/etc/asterisk/ ; \
|
||||
done
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
|
||||
for f in app_dial app_echo app_playback app_macro \
|
||||
chan_sip res_rtp_asterisk res_rtp_multicast \
|
||||
codec_ulaw codec_gsm \
|
||||
format_gsm format_pcm format_wav format_wav_gsm \
|
||||
pbx_config \
|
||||
func_strings func_timeout func_callerid func_logic; do \
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/$$$$f.so $(1)/usr/lib/asterisk/modules/ ; \
|
||||
done
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/asterisk $(1)/usr/sbin/
|
||||
$(INSTALL_DIR) $(1)/etc/default
|
||||
$(INSTALL_DATA) ./files/asterisk.default $(1)/etc/default/asterisk
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/asterisk.init $(1)/etc/init.d/asterisk
|
||||
endef
|
||||
|
||||
define Package/asterisk18-sounds/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/sounds/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/sounds/en/* $(1)/usr/lib/asterisk/sounds/
|
||||
rm -f $(1)/usr/lib/asterisk/sounds/vm-*
|
||||
rm -f $(1)/usr/lib/asterisk/sounds/conf-*
|
||||
endef
|
||||
|
||||
|
||||
define Package/asterisk18-voicemail/conffiles
|
||||
/etc/asterisk/voicemail.conf
|
||||
endef
|
||||
|
||||
define Package/asterisk18-voicemail/install
|
||||
$(INSTALL_DIR) $(1)/etc/asterisk
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/voicemail.conf $(1)/etc/asterisk/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/*voicemail.so $(1)/usr/lib/asterisk/modules/
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_adsi.so $(1)/usr/lib/asterisk/modules/
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_smdi.so $(1)/usr/lib/asterisk/modules/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/sounds/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/sounds/en/vm-*.gsm $(1)/usr/lib/asterisk/sounds/
|
||||
endef
|
||||
|
||||
define Package/asterisk18-app-meetme/conffiles
|
||||
/etc/asterisk/meetme.conf
|
||||
endef
|
||||
|
||||
define Package/asterisk18-app-meetme/install
|
||||
$(INSTALL_DIR) $(1)/etc/asterisk
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/meetme.conf $(1)/etc/asterisk/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/app_meetme.so $(1)/usr/lib/asterisk/modules/
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_dahdi.so $(1)/usr/lib/asterisk/modules/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/sounds/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/sounds/en/conf-*.gsm $(1)/usr/lib/asterisk/sounds/
|
||||
endef
|
||||
|
||||
define Package/asterisk18-chan-iax2/conffiles
|
||||
/etc/asterisk/iax.conf
|
||||
/etc/asterisk/iaxprov.conf
|
||||
endef
|
||||
|
||||
define Package/asterisk18-cdr/conffiles
|
||||
/etc/asterisk/cdr.conf
|
||||
/etc/asterisk/cdr_custom.conf
|
||||
/etc/asterisk/cdr_manager.conf
|
||||
/etc/asterisk/cdr_odbc.conf
|
||||
/etc/asterisk/cdr_pgsql.conf
|
||||
/etc/asterisk/cdr_tds.conf
|
||||
endef
|
||||
|
||||
define Package/asterisk18-res-musiconhold/conffiles
|
||||
/etc/asterisk/musiconhold.conf
|
||||
endef
|
||||
|
||||
define Package/asterisk18-chan-iax2/install
|
||||
$(INSTALL_DIR) $(1)/etc/asterisk
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/iax.conf $(1)/etc/asterisk/
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/iaxprov.conf $(1)/etc/asterisk/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_iax2.so $(1)/usr/lib/asterisk/modules/
|
||||
endef
|
||||
|
||||
define Package/asterisk18-cdr/install
|
||||
$(INSTALL_DIR) $(1)/etc/asterisk
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/cdr*.conf $(1)/etc/asterisk/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/*cdr*.so $(1)/usr/lib/asterisk/modules/
|
||||
endef
|
||||
|
||||
define Package/asterisk18-res-musiconhold/install
|
||||
$(INSTALL_DIR) $(1)/etc/asterisk
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/musiconhold.conf $(1)/etc/asterisk/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_musiconhold.so $(1)/usr/lib/asterisk/modules/
|
||||
endef
|
||||
|
||||
define Package/asterisk18-chan-gtalk/conffiles
|
||||
/etc/asterisk/gtalk.conf
|
||||
/etc/asterisk/jabber.conf
|
||||
endef
|
||||
|
||||
define Package/asterisk18-chan-gtalk/install
|
||||
$(INSTALL_DIR) $(1)/etc/asterisk
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/gtalk.conf $(1)/etc/asterisk/
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/jabber.conf $(1)/etc/asterisk/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_gtalk.so $(1)/usr/lib/asterisk/modules/
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_jabber.so $(1)/usr/lib/asterisk/modules/
|
||||
endef
|
||||
|
||||
define Package/asterisk18-chan-mobile/conffiles
|
||||
/etc/asterisk/chan_mobile.conf
|
||||
endef
|
||||
|
||||
define Package/asterisk18-chan-mobile/install
|
||||
$(INSTALL_DIR) $(1)/etc/asterisk
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/chan_mobile.conf $(1)/etc/asterisk/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_mobile.so $(1)/usr/lib/asterisk/modules/
|
||||
endef
|
||||
|
||||
define Package/asterisk18-res-timing-timerfd/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_timing_timerfd.so $(1)/usr/lib/asterisk/modules/
|
||||
endef
|
||||
|
||||
define Package/asterisk18-res-timing-pthread/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_timing_pthread.so $(1)/usr/lib/asterisk/modules/
|
||||
endef
|
||||
|
||||
define Package/asterisk18-res-fax/conffiles
|
||||
/etc/asterisk/res_fax.conf
|
||||
endef
|
||||
|
||||
define Package/asterisk18-res-fax/install
|
||||
$(INSTALL_DIR) $(1)/etc/asterisk
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/res_fax.conf $(1)/etc/asterisk/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_fax.so $(1)/usr/lib/asterisk/modules/
|
||||
endef
|
||||
|
||||
define Package/asterisk18-res-fax-spandsp/install
|
||||
$(INSTALL_DIR) $(1)/etc/asterisk
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_fax_spandsp.so $(1)/usr/lib/asterisk/modules/
|
||||
endef
|
||||
|
||||
define Package/asterisk18-chan-mgcp/conffiles
|
||||
/etc/asterisk/mgcp.conf
|
||||
endef
|
||||
|
||||
define Package/asterisk18-chan-mgcp/install
|
||||
$(INSTALL_DIR) $(1)/etc/asterisk
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/mgcp.conf $(1)/etc/asterisk/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_mgcp.so $(1)/usr/lib/asterisk/modules/
|
||||
endef
|
||||
|
||||
define Package/asterisk18-chan-skinny/conffiles
|
||||
/etc/asterisk/skinny.conf
|
||||
endef
|
||||
|
||||
define Package/asterisk18-chan-skinny/install
|
||||
$(INSTALL_DIR) $(1)/etc/asterisk
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/skinny.conf $(1)/etc/asterisk/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_skinny.so $(1)/usr/lib/asterisk/modules/
|
||||
endef
|
||||
|
||||
define Package/asterisk18-curl/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/func_curl.so $(1)/usr/lib/asterisk/modules/
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_curl.so $(1)/usr/lib/asterisk/modules/
|
||||
endef
|
||||
|
||||
define Package/asterisk18-mysql/conffiles
|
||||
/etc/asterisk/app_mysql.conf
|
||||
/etc/asterisk/res_config_mysql.conf
|
||||
/etc/asterisk/cdr_mysql.conf
|
||||
endef
|
||||
|
||||
define Package/asterisk18-mysql/install
|
||||
$(INSTALL_DIR) $(1)/etc/asterisk
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/app_mysql.conf $(1)/etc/asterisk/
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/res_config_mysql.conf $(1)/etc/asterisk/
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/cdr_mysql.conf $(1)/etc/asterisk/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/app_mysql.so $(1)/usr/lib/asterisk/modules/
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/cdr_mysql.so $(1)/usr/lib/asterisk/modules/
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_config_mysql.so $(1)/usr/lib/asterisk/modules/
|
||||
endef
|
||||
|
||||
define Package/asterisk18-chan-lantiq/conffiles
|
||||
/etc/asterisk/lantiq.conf
|
||||
endef
|
||||
|
||||
define Package/asterisk18-chan-lantiq/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
|
||||
$(INSTALL_DIR) $(1)/etc/asterisk
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/lantiq.conf $(1)/etc/asterisk/
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_lantiq.so $(1)/usr/lib/asterisk/modules/
|
||||
endef
|
||||
|
||||
define Package/asterisk18-res-srtp/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_srtp.so $(1)/usr/lib/asterisk/modules/
|
||||
endef
|
||||
|
||||
define Package/asterisk18-odbc/install
|
||||
$(INSTALL_DIR) $(1)/etc/asterisk
|
||||
$(CP) $(PKG_INSTALL_DIR)/etc/asterisk/*odbc*.conf $(1)/etc/asterisk/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/*odbc*.so $(1)/usr/lib/asterisk/modules/
|
||||
endef
|
||||
|
||||
define Buildasterisk18ModuleTemplate
|
||||
|
||||
define Package/asterisk18-$(subst _,-,$(1))
|
||||
$$(call Package/asterisk18/Default)
|
||||
TITLE:=$(2) support
|
||||
DEPENDS:= asterisk18 $(4)
|
||||
endef
|
||||
|
||||
define Package/asterisk18-$(subst _,-,$(1))/description
|
||||
$$(call Package/asterisk18/Default/description)
|
||||
This package provides support $(3) in Asterisk.
|
||||
endef
|
||||
|
||||
define Package/asterisk18-$(subst _,-,$(1))/install
|
||||
$(INSTALL_DIR) $$(1)/usr/lib/asterisk/modules
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/$(1).so $$(1)/usr/lib/asterisk/modules/
|
||||
endef
|
||||
|
||||
$$(eval $$(call BuildPackage,asterisk18-$(subst _,-,$(1))))
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,asterisk18))
|
||||
$(eval $(call BuildPackage,asterisk18-voicemail))
|
||||
$(eval $(call BuildPackage,asterisk18-sounds))
|
||||
#$(eval $(call BuildPackage,asterisk18-app-meetme))
|
||||
$(eval $(call BuildPackage,asterisk18-chan-iax2))
|
||||
$(eval $(call BuildPackage,asterisk18-cdr))
|
||||
$(eval $(call BuildPackage,asterisk18-res-musiconhold))
|
||||
$(eval $(call BuildPackage,asterisk18-chan-gtalk))
|
||||
$(eval $(call BuildPackage,asterisk18-chan-mobile))
|
||||
$(eval $(call BuildPackage,asterisk18-odbc))
|
||||
$(eval $(call BuildPackage,asterisk18-res-fax))
|
||||
$(eval $(call BuildPackage,asterisk18-res-fax-spandsp))
|
||||
$(eval $(call BuildPackage,asterisk18-res-timing-timerfd))
|
||||
$(eval $(call BuildPackage,asterisk18-res-timing-pthread))
|
||||
$(eval $(call BuildPackage,asterisk18-chan-mgcp))
|
||||
$(eval $(call BuildPackage,asterisk18-chan-skinny))
|
||||
$(eval $(call BuildPackage,asterisk18-curl))
|
||||
$(eval $(call BuildPackage,asterisk18-mysql))
|
||||
$(eval $(call BuildPackage,asterisk18-chan-lantiq))
|
||||
$(eval $(call BuildPackage,asterisk18-res-srtp))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,app_authenticate,Authenticate,support for executing arbitrary authenticate commands))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,app_chanisavail,Channel availability check,support for checking if a channel is available))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,app_chanspy,Channel listen in,support for listening in on any channel))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,app_directed_pickup,Directed call pickup,support for directed call pickup))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,app_exec,Exec application,support for application execution))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,app_minivm,Minimal voicemail system,a voicemail system in small building blocks working together based on the Comedian Mail voicemail system))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,app_readexten,Extension to variable,a trivial application to read an extension into a variable))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,app_read,Variable read,a trivial application to read a variable))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,app_sayunixtime,Say Unix time,an application to say Unix time))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,app_sms,SMS,SMS support (ETSI ES 201 912 protocol 1)))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,app_stack,Stack applications, stack applications Gosub Return etc., +asterisk18-res-agi))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,app_system,System exec,support for executing system commands))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,app_talkdetect,File playback with audio detect,for file playback with audio detect))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,app_waituntil,Sleep,support sleeping until the given epoch))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,app_while,While loop,a while loop implementation))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,chan_agent,Agents proxy channel, an implementation of agents proxy channel))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,chan_local,Local proxy channel, an implementation of local proxy channel))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,codec_alaw,Signed linear to alaw translation,translation between signed linear and alaw codecs))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,codec_a_mu,Alaw to ulaw translation,translation between alaw and ulaw codecs))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,codec_g722,G.722,a high bit rate 48/56/64Kbps ITU standard codec))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,codec_g726,Signed linear to G.726 translation,translation between signed linear and ITU G.726-32kbps codecs))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,format_g726,G.726,support for headerless G.726 16/24/32/40kbps data format))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,format_g729,G.729,support for raw headerless G729 data))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,format_sln,Raw slinear format,support for raw slinear format))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,format_sln16,Raw slinear 16 format,support for Raw slinear 16 format))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,func_db,Database interaction,functions for interaction with the database))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,func_devstate,Blinky lights control,functions for manually controlled blinky lights))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,func_vmcount,vmcount dialplan,a vmcount dialplan function))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,func_extstate,Hinted extension state,retrieving the state of a hinted extension for dialplan control))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,func_global,Global variable,global variable dialplan functions))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,func_shell,Shell,support for shell execution))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,pbx_ael,Asterisk Extension Logic,support for symbolic Asterisk Extension Logic))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,res_ael_share,Shareable AEL code,support for shareable AEL code mainly between internal and external modules))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,pbx_spool,Call Spool,outgoing call spool support))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,res_agi,Asterisk Gateway Interface,support for the Asterisk Gateway Interface extension))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,res_crypto,Provide Crypto,Cryptographic Signature capability))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,app_alarmreceiver,Alarm receiver,Central Station Alarm receiver for Ademco Contact ID))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,app_setcallerid,Set callerid,support for setting callerid))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,app_verbose,Verbose logging,Verbose logging application))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,func_channel,Channel info,Channel info dialplan function))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,func_blacklist,Blacklist on callerid,looking up the callerid number and see if it is blacklisted))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,app_originate,Originate a call,originating an outbound call and connecting it to a specified extension or application))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,func_uri,URI encoding and decoding,Encodes and decodes URI-safe strings))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,app_disa,Direct Inward System Access,Direct Inward System Access))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,app_senddtmf,Send DTMF digits,Sends arbitrary DTMF digits))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,func_cut,CUT function,CUT function))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,res_clioriginate,Calls via CLI,Originate calls via the CLI))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,app_mixmonitor,Record a call and mix the audio,record a call and mix the audio during the recording))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,app_playtones,Playtones application,play a tone list))
|
||||
$(eval $(call Buildasterisk18ModuleTemplate,app_record,Record sound file,to record a sound file))
|
@ -1,4 +0,0 @@
|
||||
## startup options for /etc/init.d/asterisk
|
||||
|
||||
ENABLE_ASTERISK="yes"
|
||||
OPTIONS=""
|
@ -1,21 +0,0 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2008 OpenWrt.org
|
||||
START=50
|
||||
|
||||
DEST=
|
||||
DEFAULT=$DEST/etc/default/asterisk
|
||||
OPTIONS=""
|
||||
|
||||
start() {
|
||||
[ -f $DEFAULT ] && . $DEFAULT
|
||||
[ -d $DEST/var/run/asterisk ] || mkdir -p $DEST/var/run/asterisk
|
||||
[ -d $DEST/var/log/asterisk ] || mkdir -p $DEST/var/log/asterisk
|
||||
[ -d $DEST/var/spool/asterisk ] || mkdir -p $DEST/var/spool/asterisk
|
||||
[ -d /var/spool/asterisk ] || mkdir -p /var/spool/asterisk
|
||||
[ -h $DEST/usr/lib/asterisk/astdb ] || ln -sf /var/spool/asterisk/astdb $DEST/usr/lib/asterisk/astdb
|
||||
$DEST/usr/sbin/asterisk $OPTIONS
|
||||
}
|
||||
|
||||
stop() {
|
||||
[ -f $DEST/var/run/asterisk/asterisk.pid ] && kill $(cat $DEST/var/run/asterisk/asterisk.pid) >/dev/null 2>&1
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
--- a/build_tools/menuselect-deps.in
|
||||
+++ b/build_tools/menuselect-deps.in
|
||||
@@ -16,7 +16,7 @@ GTK2=@PBX_GTK2@
|
||||
H323=@PBX_H323@
|
||||
HOARD=@PBX_HOARD@
|
||||
ICAL=@PBX_ICAL@
|
||||
-ICONV=@PBX_ICONV@
|
||||
+ICONV=0
|
||||
IKSEMEL=@PBX_IKSEMEL@
|
||||
IMAP_TK=@PBX_IMAP_TK@
|
||||
IODBC=@PBX_IODBC@
|
@ -1,77 +0,0 @@
|
||||
--- a/addons/app_mysql.c
|
||||
+++ b/addons/app_mysql.c
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
/*** MODULEINFO
|
||||
<depend>mysqlclient</depend>
|
||||
- <defaultenabled>no</defaultenabled>
|
||||
+ <defaultenabled>yes</defaultenabled>
|
||||
<support_level>deprecated</support_level>
|
||||
<replacement>func_odbc</replacement>
|
||||
***/
|
||||
--- a/addons/app_saycountpl.c
|
||||
+++ b/addons/app_saycountpl.c
|
||||
@@ -21,7 +21,7 @@
|
||||
*/
|
||||
|
||||
/*** MODULEINFO
|
||||
- <defaultenabled>no</defaultenabled>
|
||||
+ <defaultenabled>yes</defaultenabled>
|
||||
<support_level>deprecated</support_level>
|
||||
<replacement>say.conf</replacement>
|
||||
***/
|
||||
--- a/addons/cdr_mysql.c
|
||||
+++ b/addons/cdr_mysql.c
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
/*** MODULEINFO
|
||||
<depend>mysqlclient</depend>
|
||||
- <defaultenabled>no</defaultenabled>
|
||||
+ <defaultenabled>yes</defaultenabled>
|
||||
<support_level>deprecated</support_level>
|
||||
<replacement>cdr_adaptive_odbc</replacement>
|
||||
***/
|
||||
--- a/addons/chan_mobile.c
|
||||
+++ b/addons/chan_mobile.c
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
/*** MODULEINFO
|
||||
<depend>bluetooth</depend>
|
||||
- <defaultenabled>no</defaultenabled>
|
||||
+ <defaultenabled>yes</defaultenabled>
|
||||
<support_level>extended</support_level>
|
||||
***/
|
||||
|
||||
--- a/addons/chan_ooh323.c
|
||||
+++ b/addons/chan_ooh323.c
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
|
||||
/*** MODULEINFO
|
||||
- <defaultenabled>no</defaultenabled>
|
||||
+ <defaultenabled>yes</defaultenabled>
|
||||
<support_level>extended</support_level>
|
||||
***/
|
||||
|
||||
--- a/addons/res_config_mysql.c
|
||||
+++ b/addons/res_config_mysql.c
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
/*** MODULEINFO
|
||||
<depend>mysqlclient</depend>
|
||||
- <defaultenabled>no</defaultenabled>
|
||||
+ <defaultenabled>yes</defaultenabled>
|
||||
<support_level>extended</support_level>
|
||||
***/
|
||||
|
||||
--- a/res/res_pktccops.c
|
||||
+++ b/res/res_pktccops.c
|
||||
@@ -31,7 +31,7 @@
|
||||
*/
|
||||
|
||||
/*** MODULEINFO
|
||||
- <defaultenabled>no</defaultenabled>
|
||||
+ <defaultenabled>yes</defaultenabled>
|
||||
<support_level>extended</support_level>
|
||||
***/
|
||||
|
@ -1,11 +0,0 @@
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -16784,7 +16784,7 @@ if ac_fn_c_try_link "$LINENO"; then :
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
|
||||
-$as_echo "#define HAVE_RES_NINIT 1" >>confdefs.h
|
||||
+$as_echo "//#define HAVE_RES_NINIT 1" >>confdefs.h
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_ndestroy" >&5
|
||||
$as_echo_n "checking for library containing res_9_ndestroy... " >&6; }
|
@ -1,10 +0,0 @@
|
||||
--- a/main/manager.c
|
||||
+++ b/main/manager.c
|
||||
@@ -4020,6 +4020,7 @@ static int action_originate(struct manse
|
||||
TryExec(System(rm -rf /)) */
|
||||
strcasestr(app, "agi") || /* AGI(/bin/rm,-rf /)
|
||||
EAGI(/bin/rm,-rf /) */
|
||||
+ strcasestr(app, "externalivr") || /* ExternalIVR(rm -rf) */
|
||||
strstr(appdata, "SHELL") || /* NoOp(${SHELL(rm -rf /)}) */
|
||||
strstr(appdata, "EVAL") /* NoOp(${EVAL(${some_var_containing_SHELL})}) */
|
||||
)) {
|
File diff suppressed because it is too large
Load Diff
@ -1,138 +0,0 @@
|
||||
;
|
||||
; TAPI Telephony Interface
|
||||
;
|
||||
; Configuration file
|
||||
|
||||
[interfaces]
|
||||
;
|
||||
; Number of FXS ports (default: 2)
|
||||
channels = 2
|
||||
;
|
||||
; Set tapi firmware file path
|
||||
;firmwarefilename = /lib/firmware/danube_firmware.bin
|
||||
;
|
||||
; Set tapi bbd file path
|
||||
;bbdfilename = /lib/firmware/danube_bbd_fxs.bin
|
||||
;
|
||||
; Set vmmc device path
|
||||
;basepath = /dev/vmmc
|
||||
;
|
||||
[general]
|
||||
;
|
||||
; Gain setting for the receive and transmit path.
|
||||
; The value is given in dB within the range (-24dB to +12dB), in 1 dB steps.
|
||||
;
|
||||
;rxgain = 1
|
||||
;txgain = 1
|
||||
;
|
||||
;
|
||||
;
|
||||
; Line echo cancller valid types:
|
||||
;
|
||||
; off LEC and echo suppressor turned off.
|
||||
; nlec LEC using fixed window; no echo suppressor.
|
||||
; wlec LEC using fixed and moving window; no echo suppressor.
|
||||
; nees LEC using fixed window and echo suppressor.
|
||||
; nfees LEC using fixed and moving window and echo suppressor.
|
||||
; es Echo suppressor
|
||||
;
|
||||
;echocancel = off
|
||||
;
|
||||
; If nlec or wlec is selected than size of the fixed window in narrowband (8 kHz) sampling mode
|
||||
; can be defined with:
|
||||
; A value of 0 defaults to: 16 ms if type is nlec or 8 ms if type is wlec:
|
||||
;
|
||||
;echocancelfixedwindowsize = 0
|
||||
;
|
||||
; If wlec is selected than size of the moving window in narrowband (8 kHz) sampling mode
|
||||
; can be defined with:
|
||||
; A value of 0 defaults to 8 ms.
|
||||
;
|
||||
;echocancelnfemovingwindowsize = 0
|
||||
;
|
||||
; If wlec is selected than size of the moving window in wideband (16 kHz) sampling mode
|
||||
; can be defined with:
|
||||
; A value of 0 defaults to 8 ms.
|
||||
;
|
||||
;echocancelwidefixedwindowsize = 0
|
||||
;
|
||||
; Activate or deactivate line echo cancller NLP (Non Linear Processor) if the LEC is active,
|
||||
; valid is on or off:
|
||||
;
|
||||
;echocancelnlp = off
|
||||
;
|
||||
;
|
||||
;
|
||||
; Jitter buffer valid types:
|
||||
;
|
||||
; fixed Fixed jitter buffer.
|
||||
; adaptive Adaptive jitter buffer.
|
||||
;
|
||||
;jitterbuffertype = fixed
|
||||
;
|
||||
; Jitter buffer packet adaptation valid types:
|
||||
;
|
||||
; voice Jitter buffer optimized for voice.
|
||||
; data Jitter buffer optimized for data.
|
||||
; datanorep Jitter buffer optimized for data but without doing packet repetition.
|
||||
;
|
||||
;jitterbufferpackettype = voice
|
||||
;
|
||||
; Following jitter buffer values can only be used with jitter buffer adaptive type:
|
||||
; Turns on or off jitter buffer adaptation:
|
||||
;
|
||||
;jitterbufferadaptation = off
|
||||
;
|
||||
; Scaling factor multiplied by 16; in adaptive jitter buffer mode, the target average playout delay is
|
||||
; equal to the estimated jitter multiplied by the scaling factor. The default value for the scaling factor
|
||||
; is about 1.4 (scaling=22), meaning that the target average playout delay is equal to the estimated
|
||||
; jitter. If less packets should be dropped because of jitter, the scaling factor has to be increased. An
|
||||
; increase in the scaling factor will eventually lead to an increased playout delay.
|
||||
; The supported range is 1 to 16 (16 up to 256).
|
||||
;
|
||||
;jitterbufferscalling = 1
|
||||
;
|
||||
; Initial size of the jitter buffer in time stamps of 125 us:
|
||||
;
|
||||
;jitterbufferinitialsize = 125
|
||||
;
|
||||
; Minimum size of the jitter buffer in time stamps of 125 us
|
||||
;
|
||||
;jitterbufferminsize = 125
|
||||
;
|
||||
; Maximum size of the jitter buffer in time stamps of 125 us
|
||||
;
|
||||
;jitterbuffermaxsize = 125
|
||||
;
|
||||
;
|
||||
;
|
||||
; Caller id valid standards:
|
||||
;
|
||||
; telecordia Bellcore/Telcordia GR-30-CORE; use Bell202 FSK coding of CID information. (default)
|
||||
; etsifsk ETSI 300-659-1/2/3 V1.3.1; use V.23 FSK coding to transmit CID information.
|
||||
; etsidtmf ETSI 300-659-1/2/3 V1.3.1; use DTMF transmission of CID information.
|
||||
; sin SIN 227 Issue 3.4; use V.23 FSK coding of CID information.
|
||||
; ntt NTT standard: TELEPHONE SERVICE INTERFACES, edition 5; use a modified V.23 FSK coding of
|
||||
; CID information.
|
||||
; kpndtmf KPN; use DTMF transmission of CID information.
|
||||
; kpndtmffsk KPN; use DTMF and FSK transmission of CID information.
|
||||
;
|
||||
;calleridtype = telecordia
|
||||
;
|
||||
;
|
||||
;
|
||||
; Voice activity detection:
|
||||
;
|
||||
; on Voice activity detection on; in this case also comfort noise and spectral
|
||||
; information (nicer noise) is switched on.
|
||||
; g711 Voice activity detection on with comfort noise generation,
|
||||
; but without spectral information.
|
||||
; cng Voice activity detection on with comfort noise generation, but without silence compression
|
||||
; sc Voice activity detection on with silence compression,
|
||||
; but without comfort noise generation.
|
||||
;
|
||||
;voiceactivitydetection = on
|
||||
;
|
||||
;
|
||||
;
|
||||
;
|
@ -1,397 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2013 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=asterisk11
|
||||
PKG_VERSION:=11.2.1
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/asterisk/releases/
|
||||
PKG_MD5SUM:=b82a82e5adfff0383769e923bfb54c56
|
||||
|
||||
PKG_BUILD_DIR=$(BUILD_DIR)/asterisk-$(PKG_VERSION)
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/asterisk11/install/module
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/*$(2).so* $(1)/usr/lib/asterisk/modules/
|
||||
endef
|
||||
|
||||
define Package/asterisk11/install/conffile
|
||||
$(INSTALL_DIR) $(1)/etc/asterisk
|
||||
$(CP) $(PKG_INSTALL_DIR)/etc/asterisk/*$(2)* $(1)/etc/asterisk/
|
||||
endef
|
||||
|
||||
define Package/asterisk11/install/lib
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/$(2).so* $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/asterisk11/install/sbin
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/$(2) $(1)/usr/sbin/
|
||||
endef
|
||||
|
||||
define Package/asterisk11/install/sounds
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/sounds/
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/sounds/en/$(2) $(1)/usr/lib/asterisk/sounds/
|
||||
endef
|
||||
|
||||
define BuildAsteriskModule
|
||||
define Package/asterisk11-$(1)
|
||||
$$(call Package/asterisk11/Default)
|
||||
TITLE:=$(2) support
|
||||
DEPENDS:= asterisk11 $(4)
|
||||
endef
|
||||
|
||||
define Package/asterisk11-$(1)/conffiles
|
||||
$(5)
|
||||
endef
|
||||
|
||||
define Package/asterisk11-$(1)/description
|
||||
$$(call Package/asterisk11/Default/description)
|
||||
This package provides support $(3) in Asterisk.
|
||||
endef
|
||||
|
||||
define Package/asterisk11-$(1)/install
|
||||
$(foreach c,$(6),$(call Package/asterisk11/install/conffile,$$(1),$(c));)
|
||||
$(foreach m,$(7),$(call Package/asterisk11/install/module,$$(1),$(m));)
|
||||
$(foreach s,$(8),$(call Package/asterisk11/install/sounds,$$(1),$(s));)
|
||||
endef
|
||||
|
||||
$$(eval $$(call BuildPackage,asterisk11-$(1)))
|
||||
endef
|
||||
|
||||
define Package/asterisk11/Default
|
||||
SUBMENU:=Telephony
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
URL:=http://www.asterisk.org/
|
||||
endef
|
||||
|
||||
define Package/asterisk11/Default/description
|
||||
Asterisk is a complete PBX in software. It provides all of the features
|
||||
you would expect from a PBX and more. Asterisk does voice over IP in three
|
||||
protocols, and can interoperate with almost all standards-based telephony
|
||||
equipment using relatively inexpensive hardware.
|
||||
endef
|
||||
|
||||
define Package/asterisk11
|
||||
$(call Package/asterisk11/Default)
|
||||
TITLE:=Complete open source PBX, v11.x
|
||||
MENU:=1
|
||||
DEPENDS:=+libuuid +libopenssl +libncurses +libpopt +libpthread +libsqlite3 +librt +zlib @!TARGET_avr32
|
||||
endef
|
||||
|
||||
define Package/asterisk11/description
|
||||
$(call Package/asterisk11/Default/description)
|
||||
endef
|
||||
|
||||
define Package/asterisk11/conffiles
|
||||
/etc/asterisk/asterisk.conf
|
||||
/etc/asterisk/acl.conf
|
||||
/etc/asterisk/ccss.conf
|
||||
/etc/asterisk/modules.conf
|
||||
/etc/asterisk/extconfig.conf
|
||||
/etc/asterisk/extensions.conf
|
||||
/etc/asterisk/features.conf
|
||||
/etc/asterisk/indications.conf
|
||||
/etc/asterisk/logger.conf
|
||||
/etc/asterisk/manager.conf
|
||||
/etc/asterisk/rtp.conf
|
||||
/etc/asterisk/sip.conf
|
||||
/etc/asterisk/sip_notify.conf
|
||||
/etc/asterisk/udptl.conf
|
||||
/etc/default/asterisk
|
||||
/etc/init.d/asterisk
|
||||
endef
|
||||
|
||||
AST_CFG_FILES:= \
|
||||
asterisk.conf acl.conf ccss.conf extconfig.conf extensions.conf features.conf indications.conf logger.conf manager.conf modules.conf \
|
||||
rtp.conf sip_notify.conf sip.conf udptl.conf
|
||||
AST_EMB_MODULES:=\
|
||||
app_dial app_echo app_macro app_playback codec_gsm codec_ulaw format_gsm format_pcm format_wav format_wav_gsm func_callerid \
|
||||
func_logic func_strings func_timeout chan_sip chan_local pbx_config res_crypto res_http_websocket res_rtp_asterisk res_rtp_multicast
|
||||
|
||||
define Package/asterisk11/install
|
||||
$(call Package/asterisk11/install/lib,$(1),libasteriskssl)
|
||||
$(call Package/asterisk11/install/sbin,$(1),asterisk)
|
||||
$(call Package/asterisk11/install/sbin,$(1),safe_asterisk)
|
||||
$(call Package/asterisk11/install/sbin,$(1),astgenkey)
|
||||
$(foreach m,$(AST_CFG_FILES),$(call Package/asterisk11/install/conffile,$(1),$(m));)
|
||||
$(foreach m,$(AST_EMB_MODULES),$(call Package/asterisk11/install/module,$(1),$(m));)
|
||||
$(INSTALL_DIR) $(1)/etc/default
|
||||
$(INSTALL_DATA) ./files/asterisk.default $(1)/etc/default/asterisk
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/asterisk.init $(1)/etc/init.d/asterisk
|
||||
endef
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk11-res-xmpp),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-gnutls="$(STAGING_DIR)/usr" \
|
||||
--with-iksemel="$(STAGING_DIR)/usr"
|
||||
SITE_VARS+= \
|
||||
ac_cv_lib_iksemel_iks_start_sasl=yes \
|
||||
ac_cv_lib_gnutls_gnutls_bye=yes
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-gnutls \
|
||||
--without-iksemel
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk11-curl),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-curl="$(STAGING_DIR)/usr"
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-curl
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk11-pgsql),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-postgres="$(STAGING_DIR)/usr"
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-postgres
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk11-mysql),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-mysqlclient="$(STAGING_DIR)/usr/bin"
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-mysqlclient
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk11-res-fax-spandsp),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-spandsp="$(STAGING_DIR)/usr"
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-spandsp
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk11-chan-mobile),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-bluetooth="$(STAGING_DIR)/usr"
|
||||
else
|
||||
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-bluetooth
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk11-res-srtp),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-srtp="$(STAGING_DIR)/usr"
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-srtp
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk11-pbx-lua),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-lua="$(STAGING_DIR)/usr"
|
||||
TARGET_LDFLAGS+=-ldl -lcrypt
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-lua
|
||||
endif
|
||||
|
||||
EXTRA_CFLAGS+= $(TARGET_CPPFLAGS)
|
||||
EXTRA_LDFLAGS+= $(TARGET_LDFLAGS) -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-curses \
|
||||
--with-gsm=internal \
|
||||
--without-cap \
|
||||
--without-gtk2 \
|
||||
--without-isdnnet \
|
||||
--without-misdn \
|
||||
--without-nbs \
|
||||
--with-ncurses="$(STAGING_DIR)/usr" \
|
||||
--without-netsnmp \
|
||||
--without-newt \
|
||||
--without-ogg \
|
||||
--without-osptk \
|
||||
--with-popt="$(STAGING_DIR)/usr" \
|
||||
--without-pri \
|
||||
--without-qt \
|
||||
--without-radius \
|
||||
--without-sdl \
|
||||
--without-suppserv \
|
||||
--without-tds \
|
||||
--without-termcap \
|
||||
--without-tinfo \
|
||||
--without-vorbis \
|
||||
--without-vpb \
|
||||
--with-z="$(STAGING_DIR)/usr" \
|
||||
--with-sounds-cache="$(DL_DIR)" \
|
||||
--disable-xmldoc
|
||||
PJLIB_CONFIGURE_ARGS= \
|
||||
--disable-floating-point \
|
||||
--disable-sound \
|
||||
--disable-oss \
|
||||
--disable-speex-aec \
|
||||
--disable-l16-codec \
|
||||
--disable-gsm-codec \
|
||||
--disable-g722-codec \
|
||||
--disable-g7221-codec \
|
||||
--disable-speex-codec \
|
||||
--disable-ilbc-codec \
|
||||
--disable-g711-codec \
|
||||
--disable-opencore-amrnb \
|
||||
--disable-video \
|
||||
--disable-sdl \
|
||||
--disable-ffmpeg \
|
||||
--disable-v4l2
|
||||
|
||||
define Build/Prepare
|
||||
$(call Build/Prepare/Default)
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
$(call Build/Configure/Default, \
|
||||
$(PJLIB_CONFIGURE_ARGS), \
|
||||
LD="$(TARGET_CC)" \
|
||||
AR="" \
|
||||
CFLAGS="$(FPIC) $(TARGET_CFLAGS) $(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
|
||||
CXXFLAGS="$(FPIC) $(TARGET_CFLAGS) $(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
|
||||
LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS) -lc $(LIBGCC_S) -lm" \
|
||||
,res/pjproject)
|
||||
$(MAKE) -j1 -C $(PKG_BUILD_DIR)/res/pjproject dep
|
||||
$(MAKE) -j1 -C $(PKG_BUILD_DIR)/res/pjproject
|
||||
$(call Build/Configure/Default,,$(SITE_VARS))
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C "$(PKG_BUILD_DIR)" \
|
||||
include/asterisk/version.h \
|
||||
include/asterisk/buildopts.h defaults.h \
|
||||
makeopts.embed_rules
|
||||
ASTCFLAGS="$(EXTRA_CFLAGS) -DLOW_MEMORY"
|
||||
ASTLDFLAGS="$(EXTRA_LDFLAGS)"
|
||||
$(MAKE) -C "$(PKG_BUILD_DIR)" \
|
||||
ASTVARLIBDIR="/usr/lib/asterisk" \
|
||||
ASTDATADIR="/usr/lib/asterisk" \
|
||||
ASTKEYDIR="/usr/lib/asterisk" \
|
||||
ASTDBDIR="/usr/lib/asterisk" \
|
||||
NOISY_BUILD="yes" \
|
||||
DEBUG="" \
|
||||
OPTIMIZE="" \
|
||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||
all install samples
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include/asterisk-11/include/asterisk/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk/*.h $(1)/usr/include/asterisk-11/include/asterisk/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk.h $(1)/usr/include/asterisk-11/include/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,asterisk11))
|
||||
|
||||
################################
|
||||
# AST modules
|
||||
# Params:
|
||||
# 1 - Package subname
|
||||
# 2 - Package title
|
||||
# 3 - Module description
|
||||
# 4 - Module dependencies
|
||||
# 5 - Full path to multiple conffiles
|
||||
# 6 - conf files
|
||||
# 7 - module files
|
||||
# 8 - sound files
|
||||
################################
|
||||
|
||||
$(eval $(call BuildAsteriskModule,app-alarmreceiver,Alarm receiver,Central Station Alarm receiver for Ademco Contact ID,,,,app_alarmreceiver,))
|
||||
$(eval $(call BuildAsteriskModule,app-authenticate,Authenticate commands,Execute arbitrary authenticate commands,,,,app_authenticate,))
|
||||
$(eval $(call BuildAsteriskModule,app-confbridge,ConfBridge,Software bridge for multi-party audio conferencing,,/etc/asterisk/confbridge.conf,confbridge.conf,app_confbridge,))
|
||||
$(eval $(call BuildAsteriskModule,app-directed_pickup,Directed call pickup,support for directed call pickup,,,,app_directed_pickup,))
|
||||
$(eval $(call BuildAsteriskModule,app-disa,Direct Inward System Access,Direct Inward System Access,,,,app_disa,))
|
||||
$(eval $(call BuildAsteriskModule,app-exec,Exec application,support for application execution,,,,app_exec,))
|
||||
$(eval $(call BuildAsteriskModule,app-chanisavail,Channel availability check,support for checking if a channel is available,,,,app_chanisavail,))
|
||||
$(eval $(call BuildAsteriskModule,app-chanspy,Channel listen in,support for listening in on any channel,,,,app_chanspy,))
|
||||
$(eval $(call BuildAsteriskModule,app-minivm,Minimal voicemail system,a voicemail system in small building blocks working together based on the Comedian Mail voicemail,,/etc/asterisk/extensions_minivm.conf /etc/asterisk/minivm.conf,extensions_minivm.conf minivm.conf,app_minivm,))
|
||||
$(eval $(call BuildAsteriskModule,app-mixmonitor,Record a call and mix the audio,record a call and mix the audio during the recording,,,,app_mixmonitor,))
|
||||
$(eval $(call BuildAsteriskModule,app-originate,Originate a call,originating an outbound call and connecting it to a specified extension or application,,,,app_originate,))
|
||||
$(eval $(call BuildAsteriskModule,app-playtones,Playtones application,play a tone list,,,,app_playtones,))
|
||||
$(eval $(call BuildAsteriskModule,app-read,Variable read,a trivial application to read a variable,,,,app_read,))
|
||||
$(eval $(call BuildAsteriskModule,app-readexten,Extension to variable,a trivial application to read an extension into a variable,,,,app_readexten,))
|
||||
$(eval $(call BuildAsteriskModule,app-record,Record sound file,to record a sound file,,,,app_record,))
|
||||
$(eval $(call BuildAsteriskModule,app-sayunixtime,Say Unix time,an application to say Unix time,,,,app_sayunixtime,))
|
||||
$(eval $(call BuildAsteriskModule,app-senddtmf,Send DTMF digits,Sends arbitrary DTMF digits,,,,app_senddtmf,))
|
||||
$(eval $(call BuildAsteriskModule,app-sms,SMS,SMS support (ETSI ES 201 912 protocol 1),,,,app_sms,))
|
||||
$(eval $(call BuildAsteriskModule,app-stack,Stack applications, stack applications Gosub Return etc., +asterisk11-res-agi,,,app_stack,))
|
||||
$(eval $(call BuildAsteriskModule,app-system,System exec,support for executing system commands,,,,app_system,))
|
||||
$(eval $(call BuildAsteriskModule,app-talkdetect,File playback with audio detect,for file playback with audio detect,,,,app_talkdetect,))
|
||||
$(eval $(call BuildAsteriskModule,app-verbose,Verbose logging,Verbose logging application,,,,app_verbose,))
|
||||
$(eval $(call BuildAsteriskModule,app-waituntil,Sleep,support sleeping until the given epoch,,,,app_waituntil,))
|
||||
$(eval $(call BuildAsteriskModule,app-while,While loop,a while loop implementation,,,,app_while,))
|
||||
$(eval $(call BuildAsteriskModule,cdr-core,Provides CDR,Call Detail Record,,/etc/asterisk/cdr.conf /etc/asterisk/cdr_custom.conf /etc/asterisk/cdr_manager.conf /etc/asterisk/cdr_odbc.conf /etc/asterisk/cdr_pgsql.conf /etc/asterisk/cdr_tds.conf,cdr_adaptive_odbc cdr cdr_custom cdr_manager cdr_syslog,app_cdr app_forkcdr cdr_adaptive_odbc cdr_custom cdr_manager cdr_syslog func_cdr,))
|
||||
$(eval $(call BuildAsteriskModule,cdr-csv,Provides CDR CSV,Call Detail Record with CSV support,,,,cdr_csv,))
|
||||
$(eval $(call BuildAsteriskModule,cdr-sqlite3,Provides CDR SQLITE3,Call Detail Record with SQLITE3 support,libsqlite3,,,cdr_sqlite3_custom,))
|
||||
$(eval $(call BuildAsteriskModule,codec-a-mu,Alaw to ulaw translation,translation between alaw and ulaw codecs,,,,codec_a_mu,))
|
||||
$(eval $(call BuildAsteriskModule,codec-adpcm,ADPCM text,ADPCM text ,,,,codec_adpcm,))
|
||||
$(eval $(call BuildAsteriskModule,codec-alaw,Signed linear to alaw translation,translation between signed linear and alaw codecs,,,,codec_alaw,))
|
||||
$(eval $(call BuildAsteriskModule,codec-g722,G.722,a high bit rate 48/56/64Kbps ITU standard codec,,,,codec_g722,))
|
||||
$(eval $(call BuildAsteriskModule,codec-g726,Signed linear to G.726 translation,translation between signed linear and ITU G.726-32kbps codecs,,,,codec_g726,))
|
||||
$(eval $(call BuildAsteriskModule,codec-gsm,linear to GSM translation,translate between signed linear and GSM,,,,codec_gsm,))
|
||||
$(eval $(call BuildAsteriskModule,codec-ilbc,linear to ILBC translation,translate between signed linear and ILBC,,,,codec_ilbc,))
|
||||
$(eval $(call BuildAsteriskModule,codec-lpc10,Linear to LPC10 translation,translate between signed linear and LPC10,,,,codec_lpc10,))
|
||||
$(eval $(call BuildAsteriskModule,codec-resample,resample sLinear audio,resample sLinear audio,,,,codec_resample,))
|
||||
$(eval $(call BuildAsteriskModule,codec-ulaw,Linear to ulaw translation,translate between signed linear and ulaw,,,,codec_ulaw,))
|
||||
$(eval $(call BuildAsteriskModule,curl,CURL,CURL support,+libcurl,,,func_curl res_curl,))
|
||||
$(eval $(call BuildAsteriskModule,format-g726,G.726,support for headerless G.726 16/24/32/40kbps data format,,,,format_g726,))
|
||||
$(eval $(call BuildAsteriskModule,format-g729,G.729,support for raw headerless G729 data,,,,format_g729,))
|
||||
$(eval $(call BuildAsteriskModule,format-gsm,GSM format,support for GSM format,,,,format_gsm,))
|
||||
$(eval $(call BuildAsteriskModule,format-h263,H263 format,support for H264 format,,,,format_h263,))
|
||||
$(eval $(call BuildAsteriskModule,format-h264,H264 format,support for H264 format,,,,format_h264,))
|
||||
$(eval $(call BuildAsteriskModule,format-ilbc,ILBC format,support for ILBC format,,,,format_ilbc,))
|
||||
$(eval $(call BuildAsteriskModule,format-pcm,PCM,support for PCM format,,,,format_pcm,))
|
||||
$(eval $(call BuildAsteriskModule,format-sln,Raw slinear format,support for raw slinear format,,,,format_sln,))
|
||||
$(eval $(call BuildAsteriskModule,format-vox,VOX format,support for ADPCM vox format,,,,format_vox,))
|
||||
$(eval $(call BuildAsteriskModule,func-blacklist,Blacklist on callerid,looking up the callerid number and see if it is blacklisted,,,,func_blacklist,))
|
||||
$(eval $(call BuildAsteriskModule,func-cut,CUT function,CUT function,,,,func_cut,))
|
||||
$(eval $(call BuildAsteriskModule,func-db,Database interaction,functions for interaction with the database,,,,func_db,))
|
||||
$(eval $(call BuildAsteriskModule,func-devstate,Blinky lights control,functions for manually controlled blinky lights,,,,func_devstate,))
|
||||
$(eval $(call BuildAsteriskModule,func-extstate,Hinted extension state,retrieving the state of a hinted extension for dialplan control,,,,func_extstate,))
|
||||
$(eval $(call BuildAsteriskModule,func-global,Global variable,global variable dialplan functions,,,,func_global,))
|
||||
$(eval $(call BuildAsteriskModule,func-channel,Channel info,Channel info dialplan function,,,,func_channel,))
|
||||
$(eval $(call BuildAsteriskModule,func-shell,Shell,support for shell execution,,,,func_shell,))
|
||||
$(eval $(call BuildAsteriskModule,func-uri,URI encoding and decoding,Encodes and decodes URI-safe strings,,,,func_uri,))
|
||||
$(eval $(call BuildAsteriskModule,func-vmcount,vmcount dialplan,a vmcount dialplan function,,,,func_vmcount,))
|
||||
$(eval $(call BuildAsteriskModule,func-base64,base64 support,support of base64 function,,,,func_base64,))
|
||||
$(eval $(call BuildAsteriskModule,chan-agent,Agents proxy channel, an implementation of agents proxy channel,,,,chan_agent,))
|
||||
$(eval $(call BuildAsteriskModule,chan-iax2,IAX2 channel,IAX support,,/etc/asterisk/iax.conf /etc/asterisk/iaxprov.conf,iax.conf iaxprov.conf,chan_iax2,))
|
||||
$(eval $(call BuildAsteriskModule,chan-motif,Jingle channel,Motif Jingle Channel Driver,+asterisk11-res-xmpp,/etc/asterisk/motif.conf /etc/asterisk/jingle.conf,motif.conf jingle.conf,chan_motif,))
|
||||
$(eval $(call BuildAsteriskModule,chan-mgcp,MGCP channel,the channel chan_mgcp,,/etc/asterisk/mgcp.conf,mgcp.conf,chan_mgcp,))
|
||||
$(eval $(call BuildAsteriskModule,chan-mobile,Mobile channel,the channel chan_mobile,+bluez-libs,/etc/asterisk/chan_mobile.conf,chan_mobile.conf,chan_mobile,))
|
||||
$(eval $(call BuildAsteriskModule,chan-skinny,Skinny channel,the channel chan_skinny,,/etc/asterisk/skinny.conf,skinny.conf,chan_skinny,))
|
||||
$(eval $(call BuildAsteriskModule,chan-unistim,Unistim channel,channel driver for the UNISTIM (Unified Networks IP Stimulus) protocol,,/etc/asterisk/unistim.conf,unistim.conf,chan_unistim,))
|
||||
$(eval $(call BuildAsteriskModule,mysql,MySQL,MySQL support,+libmysqlclient,/etc/asterisk/res_config_mysql.conf,res_config_mysql.conf,res_config_mysql,))
|
||||
$(eval $(call BuildAsteriskModule,odbc,ODBC,ODBC support,+libpthread +libc +unixodbc,,cdr_adaptive_odbc cdr_odbc cel_odbc func_odbc res_odbc,cdr_adaptive_odbc cdr_odbc cel_odbc func_odbc res_config_odbc res_odbc,))
|
||||
$(eval $(call BuildAsteriskModule,pgsql,PostgreSQL,PostgreSQL support,+libpq,/etc/asterisk/cel_pgsql.conf /etc/asterisk/cdr_pgsql.conf /etc/asterisk/res_pgsql.conf,cel_pgsql.conf cdr_pgsql.conf res_pgsql.conf,cel_pgsql cdr_pgsql res_config_pgsql,))
|
||||
$(eval $(call BuildAsteriskModule,pbx-ael,Asterisk Extension Logic,support for symbolic Asterisk Extension Logic,,,extensions.ael,pbx_ael,))
|
||||
$(eval $(call BuildAsteriskModule,pbx-spool,Call Spool,outgoing call spool support,,,,pbx_spool,))
|
||||
$(eval $(call BuildAsteriskModule,pbx-lua,Lua,provides Lua resources for Asterisk,+libpthread +libc +liblua,/etc/asterisk/extensions.lua,extensions.lua,pbx_lua,))
|
||||
$(eval $(call BuildAsteriskModule,res-ael-share,Shareable AEL code,support for shareable AEL code mainly between internal and external modules,,,,res_ael_share,))
|
||||
$(eval $(call BuildAsteriskModule,res-agi,Asterisk Gateway Interface,support for the Asterisk Gateway Interface extension,,,,res_agi,))
|
||||
$(eval $(call BuildAsteriskModule,res-clioriginate,Calls via CLI,Originate calls via the CLI,,,,res_clioriginate,))
|
||||
$(eval $(call BuildAsteriskModule,res-monitor,Provide Monitor,Cryptographic Signature capability,,,,res_monitor,))
|
||||
$(eval $(call BuildAsteriskModule,res-pktccops,Provide PacketCable COPS,simple client/server model for supporting policy control over QoS signaling protocols,,/etc/asterisk/res_pktccops.conf,res_pktccops.conf,res_pktccops,))
|
||||
$(eval $(call BuildAsteriskModule,res-smdi,Provide SMDI,Simple Message Desk Interface capability,,/etc/asterisk/smdi.conf,smdi.conf,res_smdi,))
|
||||
$(eval $(call BuildAsteriskModule,res-fax,FAX modules,Generic FAX resource for FAX technology resource modules,+asterisk11-res-timing-pthread,/etc/asterisk/res_fax.conf /etc/asterisk/udptl.conf,udptl.conf res_fax.conf,res_fax,))
|
||||
$(eval $(call BuildAsteriskModule,res-fax-spandsp,Spandsp T.38 and G.711,Spandsp T.38 and G.711 FAX Resource,+asterisk11-res-fax +libspandsp +libtiff,,,res_fax_spandsp,))
|
||||
$(eval $(call BuildAsteriskModule,res-musiconhold,MOH,Music On Hold support,,/etc/asterisk/musiconhold.conf,musiconhold.conf,res_musiconhold,))
|
||||
$(eval $(call BuildAsteriskModule,res-srtp,SRTP,Secure RTP,+libsrtp,,,res_srtp,))
|
||||
$(eval $(call BuildAsteriskModule,res-timing-pthread,pthread Timing Interface,,,,,res_timing_pthread,))
|
||||
$(eval $(call BuildAsteriskModule,res-timing-timerfd,Timerfd Timing Interface,,,,,res_timing_timerfd,))
|
||||
$(eval $(call BuildAsteriskModule,res-xmpp,XMPP client and component module,reference module for interfacting Asterisk directly as a client or component with XMPP server,+libiksemel +libopenssl,/etc/asterisk/xmpp.conf,xmpp.conf,res_xmpp,))
|
||||
$(eval $(call BuildAsteriskModule,sounds,Sounds,contains sound files,,,,,a* b* d* h* i* m* p* q* s* t*))
|
||||
$(eval $(call BuildAsteriskModule,voicemail,Voicemail,voicemail related modules,,/etc/asterisk/voicemail.conf,voicemail.conf,*voicemail res_adsi res_smdi,vm-*))
|
@ -1,4 +0,0 @@
|
||||
## startup options for /etc/init.d/asterisk
|
||||
|
||||
ENABLE_ASTERISK="yes"
|
||||
OPTIONS=""
|
@ -1,35 +0,0 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2013 OpenWrt.org
|
||||
|
||||
. /lib/functions/service.sh
|
||||
|
||||
START=99
|
||||
APP=asterisk
|
||||
OPTIONS=
|
||||
DEST=
|
||||
DEFAULT=$DEST/etc/default/$APP
|
||||
BIN_FILE=$DEST/usr/sbin/$APP
|
||||
PID_FILE=$DEST/var/run/$APP/$APP.pid
|
||||
|
||||
start() {
|
||||
[ -f $DEFAULT ] && . $DEFAULT
|
||||
[ -d $DEST/var/run/asterisk ] || mkdir -p $DEST/var/run/asterisk
|
||||
[ -d $DEST/var/log/asterisk ] || mkdir -p $DEST/var/log/asterisk
|
||||
[ -d $DEST/var/spool/asterisk ] || mkdir -p $DEST/var/spool/asterisk
|
||||
[ -d $DEST/var/lib ] || mkdir -p $DEST/var/lib
|
||||
[ -h $DEST/var/lib/asterisk ] || ln -s /usr/lib/asterisk /var/lib/asterisk
|
||||
[ -d $DEST/var/lib/asterisk/keys ] || mkdir -p $DEST/var/lib/asterisk/keys
|
||||
|
||||
SERVICE_PID_FILE="/var/run/asterisk/asterisk.pid" \
|
||||
service_start $BIN_FILE $OPTIONS
|
||||
}
|
||||
|
||||
stop() {
|
||||
SERVICE_PID_FILE="/var/run/asterisk/asterisk.pid" \
|
||||
service_stop $BIN_FILE
|
||||
}
|
||||
|
||||
reload() {
|
||||
SERVICE_PID_FILE="/var/run/asterisk/asterisk.pid" \
|
||||
service_reload $BIN_FILE
|
||||
}
|
@ -1,17 +0,0 @@
|
||||
--- a/res/Makefile
|
||||
+++ b/res/Makefile
|
||||
@@ -70,14 +70,8 @@ clean::
|
||||
$(MAKE) -C pjproject realclean
|
||||
rm -f snmp/*.o snmp/*.i ael/*.o ael/*.i ais/*.o ais/*.i
|
||||
|
||||
-pjproject/build.mak:
|
||||
- cd pjproject && ./configure AR="" CFLAGS=-fPIC --disable-floating-point --disable-sound --disable-oss --disable-speex-aec --disable-l16-codec --disable-gsm-codec --disable-g722-codec --disable-g7221-codec --disable-speex-codec --disable-ilbc-codec --disable-g711-codec
|
||||
|
||||
.PHONY : pjproject
|
||||
-pjproject: pjproject/build.mak
|
||||
- # Make sure we always build pjproject with a single job.
|
||||
- $(MAKE) -j1 -C pjproject dep
|
||||
- $(MAKE) -j1 -C pjproject
|
||||
|
||||
include pjproject/build.mak
|
||||
|
@ -1,12 +0,0 @@
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -24043,9 +24043,6 @@ $as_echo "$ac_try_echo") >&5
|
||||
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
|
||||
-cat >>confdefs.h <<\_ACEOF
|
||||
-#define HAVE_RES_NINIT 1
|
||||
-_ACEOF
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: checking for library containing res_9_ndestroy" >&5
|
||||
$as_echo_n "checking for library containing res_9_ndestroy... " >&6; }
|
@ -1,33 +0,0 @@
|
||||
--- a/addons/chan_mobile.c
|
||||
+++ b/addons/chan_mobile.c
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
/*** MODULEINFO
|
||||
<depend>bluetooth</depend>
|
||||
- <defaultenabled>no</defaultenabled>
|
||||
+ <defaultenabled>yes</defaultenabled>
|
||||
<support_level>extended</support_level>
|
||||
***/
|
||||
|
||||
--- a/addons/res_config_mysql.c
|
||||
+++ b/addons/res_config_mysql.c
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
/*** MODULEINFO
|
||||
<depend>mysqlclient</depend>
|
||||
- <defaultenabled>no</defaultenabled>
|
||||
+ <defaultenabled>yes</defaultenabled>
|
||||
<support_level>extended</support_level>
|
||||
***/
|
||||
|
||||
--- a/res/res_pktccops.c
|
||||
+++ b/res/res_pktccops.c
|
||||
@@ -31,7 +31,7 @@
|
||||
*/
|
||||
|
||||
/*** MODULEINFO
|
||||
- <defaultenabled>no</defaultenabled>
|
||||
+ <defaultenabled>yes</defaultenabled>
|
||||
<support_level>extended</support_level>
|
||||
***/
|
||||
|
@ -1,59 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2011 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=asterisk18-chan-sccp-b
|
||||
PKG_REV=3004
|
||||
PKG_VERSION:=r$(PKG_REV)
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://svn.code.sf.net/p/chan-sccp-b/code/trunk
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_SOURCE_VERSION:=$(PKG_REV)
|
||||
PKG_SOURCE_PROTO:=svn
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/asterisk18-chan-sccp-b
|
||||
SUBMENU:=Telephony
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
TITLE:=SCCP channel provider for asterisk
|
||||
URL:=http://chan-sccp-b.net.sourceforge.net/
|
||||
MAINTAINER:=Hans Zandbelt <hans.zandbelt@gmail.com>
|
||||
DEPENDS:=+asterisk18 +libltdl
|
||||
endef
|
||||
|
||||
define Package/asterisk18-chan-sccp-b/description
|
||||
SCCP channel provider for asterisk. It delivers extended functionality for SCCP phones over chan_skinny delivered
|
||||
by asterisk by default.
|
||||
endef
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
--with-asterisk=$(STAGING_DIR)/usr/include/asterisk-1.8
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C "$(PKG_BUILD_DIR)" \
|
||||
CFLAGS="$(CFLAGS) -DLOW_MEMORY" \
|
||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||
all install
|
||||
endef
|
||||
|
||||
define Package/asterisk18-chan-sccp-b/conffiles
|
||||
/etc/asterisk/sccp.conf
|
||||
endef
|
||||
|
||||
define Package/asterisk18-chan-sccp-b/install
|
||||
$(INSTALL_DIR) $(1)/etc/asterisk
|
||||
$(INSTALL_BIN) ./files/sccp.openwrt.conf $(1)/etc/asterisk/sccp.conf
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_sccp.so $(1)/usr/lib/asterisk/modules/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,asterisk18-chan-sccp-b))
|
@ -1,89 +0,0 @@
|
||||
[general]
|
||||
servername = Openwrt
|
||||
keepalive = 60
|
||||
debug = core
|
||||
context = default
|
||||
dateformat = D/M/Y
|
||||
bindaddr = 192.168.1.1
|
||||
port = 2000
|
||||
disallow=all
|
||||
allow=ulaw
|
||||
allow=alaw
|
||||
allow=gsm
|
||||
firstdigittimeout = 16
|
||||
digittimeout = 6
|
||||
autoanswer_ring_time = 1
|
||||
musicclass=default
|
||||
language=en
|
||||
deny=0.0.0.0/0.0.0.0
|
||||
permit=192.168.1.0/255.255.255.0
|
||||
protocolversion=17
|
||||
|
||||
hotline_enabled=yes
|
||||
hotline_context=default
|
||||
hotline_extension=111
|
||||
|
||||
[SEP001122334455]
|
||||
type = device
|
||||
description = Phone Number One
|
||||
devicetype = 7940
|
||||
button = line, 111
|
||||
button = line, 113@01:shared
|
||||
button = speeddial,Phone 2 Line 1, 112, 112@hint
|
||||
|
||||
[SEP00a1a2a3a4a5]
|
||||
type = device
|
||||
description = Phone Number Two
|
||||
devicetype = 7960
|
||||
button = line, 112
|
||||
button = line, 113@01:shared
|
||||
button = speeddial,Phone 1 Line 1, 111, 111@hint
|
||||
|
||||
[111]
|
||||
id = 1000
|
||||
type = line
|
||||
pin = 1234
|
||||
label = Phone 1 Line 1
|
||||
description = Line 111
|
||||
mailbox = 10111
|
||||
cid_name = Phone 1 CID
|
||||
cid_num = 111
|
||||
accountcode=79111
|
||||
callgroup=1
|
||||
pickupgroup=1
|
||||
context = default
|
||||
incominglimit = 2
|
||||
vmnum = 600
|
||||
trnsfvm = 1000
|
||||
|
||||
[112]
|
||||
id = 1001
|
||||
type = line
|
||||
pin = 1234
|
||||
label = Phone 2 Line 1
|
||||
description = Line 112
|
||||
mailbox = 10112
|
||||
cid_name = Phone 2 CID
|
||||
cid_num = 112
|
||||
accountcode=79112
|
||||
callgroup=1
|
||||
pickupgroup=1
|
||||
context = default
|
||||
incominglimit = 2
|
||||
vmnum = 600
|
||||
trnsfvm = 1000
|
||||
|
||||
[113]
|
||||
id = 1002
|
||||
type = line
|
||||
pin = 1234
|
||||
label = SharedLine 1
|
||||
description = Line 113
|
||||
mailbox = 10113
|
||||
cid_name = Shared
|
||||
cid_num = 113
|
||||
accountcode=79113
|
||||
incominglimit = 2
|
||||
vmnum = 600
|
||||
trnsfvm = 1000
|
||||
|
@ -1,19 +0,0 @@
|
||||
--- a/src/chan_sccp.h
|
||||
+++ b/src/chan_sccp.h
|
||||
@@ -127,15 +127,7 @@ extern "C" {
|
||||
# define CHECK_LEAKS()
|
||||
# endif
|
||||
|
||||
-# define SCCP_FILE_VERSION(file, version) \
|
||||
- static void __attribute__((constructor)) __register_file_version(void) \
|
||||
- { \
|
||||
- pbx_register_file_version(file, version); \
|
||||
- } \
|
||||
- static void __attribute__((destructor)) __unregister_file_version(void) \
|
||||
- { \
|
||||
- pbx_unregister_file_version(file); \
|
||||
- }
|
||||
+# define SCCP_FILE_VERSION(file, version)
|
||||
|
||||
# define DEV_ID_LOG(x) x ? x->id : "SCCP"
|
||||
|
@ -1,10 +0,0 @@
|
||||
--- a/src/chan_sccp.h
|
||||
+++ b/src/chan_sccp.h
|
||||
@@ -32,6 +32,7 @@ extern "C" {
|
||||
#include "common.h"
|
||||
#include <poll.h>
|
||||
#include "asterisk/compiler.h"
|
||||
+#include <stdarg.h>
|
||||
#include "asterisk/lock.h"
|
||||
#include "asterisk/abstract_jb.h"
|
||||
|
@ -1,151 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2010-2012 OpenWrt.org
|
||||
# Copyright (C) 2010 Alfred E. Heggestad
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=baresip
|
||||
PKG_VERSION:=0.4.1
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://www.creytiv.com/pub/
|
||||
PKG_MD5SUM:=1574e40bace9593ec40c527299654bb6
|
||||
|
||||
baresip-mods:= \
|
||||
alsa \
|
||||
avcodec \
|
||||
avformat \
|
||||
cons \
|
||||
evdev \
|
||||
g711 \
|
||||
g722 \
|
||||
oss \
|
||||
sdl \
|
||||
speex \
|
||||
stdio \
|
||||
uuid \
|
||||
v4l \
|
||||
v4l2 \
|
||||
|
||||
PKG_CONFIG_DEPENDS:= \
|
||||
$(patsubst %,CONFIG_PACKAGE_baresip-mod-%,$(baresip-mods)) \
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/baresip/Default
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=Telephony
|
||||
URL:=http://www.creytiv.com/
|
||||
endef
|
||||
|
||||
define Package/baresip
|
||||
$(call Package/baresip/Default)
|
||||
TITLE:=Portable and modular SIP User-Agent with A/V support
|
||||
DEPENDS:=+libre +librem +libpthread
|
||||
endef
|
||||
|
||||
|
||||
baresip-mod-alsa := USE_ALSA
|
||||
baresip-mod-avcodec := USE_FFMPEG
|
||||
baresip-mod-avformat := USE_FFMPEG_AVFORMAT
|
||||
baresip-mod-cons := USE_CONS
|
||||
baresip-mod-evdev := USE_EVDEV
|
||||
baresip-mod-g711 := USE_G711
|
||||
baresip-mod-g722 := USE_G722
|
||||
baresip-mod-oss := USE_OSS
|
||||
baresip-mod-sdl := USE_SDL
|
||||
baresip-mod-speex := USE_SPEEX
|
||||
baresip-mod-stdio := USE_STDIO
|
||||
baresip-mod-uuid := USE_UUID
|
||||
baresip-mod-v4l := USE_V4L
|
||||
baresip-mod-v4l2 := USE_V4L2
|
||||
|
||||
BARESIP_MOD_OPTIONS:= \
|
||||
MOD_AUTODETECT= \
|
||||
$(foreach m,$(baresip-mods),$(baresip-mod-$(m))=$(if $(CONFIG_PACKAGE_baresip-mod-$(m)),1))
|
||||
|
||||
TARGET_CFLAGS += $(FPIC)
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
LIBRE_MK="$(STAGING_DIR)/usr/share/re/re.mk" \
|
||||
LIBRE_INC="$(STAGING_DIR)/usr/include/re" \
|
||||
LIBRE_SO="$(STAGING_DIR)/usr/lib" \
|
||||
LIBREM_PATH="../rem" \
|
||||
CC="$(TARGET_CC)" \
|
||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||
EXTRA_CFLAGS="$(TARGET_CFLAGS) -DOPENWRT" \
|
||||
SYSROOT="$$$$($(FIND) $(TOOLCHAIN_DIR) -path '*/include/pthread.h' | sed -ne '1s#/include/pthread.h##p')" \
|
||||
SYSROOT_ALT="$(STAGING_DIR)/usr" \
|
||||
RELEASE=1 \
|
||||
CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||
OS="linux" \
|
||||
$(BARESIP_MOD_OPTIONS) \
|
||||
all install
|
||||
endef
|
||||
|
||||
define Package/baresip/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/baresip $(1)/usr/bin/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/baresip/modules
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/baresip/modules/ice.so \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/baresip/modules/stun.so \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/baresip/modules/turn.so \
|
||||
$(1)/usr/lib/baresip/modules/.
|
||||
$(INSTALL_DIR) $(1)/usr/share/baresip
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/share/baresip/* $(1)/usr/share/baresip/.
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/baresip.init $(1)/etc/init.d/baresip
|
||||
endef
|
||||
|
||||
|
||||
#
|
||||
# 1. Name
|
||||
# 2. Title
|
||||
# 3. Files
|
||||
# 4. Depends
|
||||
#
|
||||
define BuildPlugin
|
||||
|
||||
define Package/baresip-mod-$(1)
|
||||
$$(call Package/baresip/Default)
|
||||
TITLE:= baresip $(2) module
|
||||
DEPENDS:= baresip $(4)
|
||||
endef
|
||||
|
||||
define Package/baresip-mod-$(1)/install
|
||||
[ -z "$(3)" ] || $(INSTALL_DIR) $$(1)/usr/lib/baresip/modules
|
||||
for f in $(3); do \
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/baresip/modules/$$$$$$$${f}.so \
|
||||
$$(1)/usr/lib/baresip/modules/ ; \
|
||||
done
|
||||
endef
|
||||
|
||||
$$(eval $$(call BuildPackage,baresip-mod-$(1)))
|
||||
endef
|
||||
|
||||
|
||||
$(eval $(call BuildPackage,baresip))
|
||||
|
||||
$(eval $(call BuildPlugin,alsa,ALSA audio driver,alsa,+PACKAGE_baresip-mod-alsa:alsa-lib))
|
||||
$(eval $(call BuildPlugin,avcodec,FFmpeg video codecs,avcodec,+PACKAGE_baresip-mod-avcodec:libffmpeg-full))
|
||||
$(eval $(call BuildPlugin,avformat,FFmpeg video source,avformat,+PACKAGE_baresip-mod-avformat:libffmpeg-full))
|
||||
$(eval $(call BuildPlugin,cons,console UI,cons,))
|
||||
$(eval $(call BuildPlugin,evdev,input event device UI,evdev,))
|
||||
$(eval $(call BuildPlugin,g711,G.711 audio codec,g711,))
|
||||
$(eval $(call BuildPlugin,g722,G.722 audio codec,g722,+PACKAGE_baresip-mod-g722:libspandsp))
|
||||
$(eval $(call BuildPlugin,sdl,SDL video display,sdl,+libsdl))
|
||||
$(eval $(call BuildPlugin,oss,OSS audio driver,oss,))
|
||||
$(eval $(call BuildPlugin,speex,Speex audio codec,speex,+PACKAGE_baresip-mod-speex:libspeex))
|
||||
$(eval $(call BuildPlugin,stdio,standard I/O UI,stdio,))
|
||||
$(eval $(call BuildPlugin,uuid,UUID,uuid,+libuuid))
|
||||
$(eval $(call BuildPlugin,v4l,Video4Linux video source,v4l,+PACKAGE_baresip-mod-v4l:libv4l))
|
||||
$(eval $(call BuildPlugin,v4l2,Video4Linux2 video source,v4l2,+PACKAGE_baresip-mod-v4l2:libv4l))
|
@ -1,14 +0,0 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2010-2011 OpenWrt.org
|
||||
# Copyright (C) 2010 Alfred E. Heggestad
|
||||
#
|
||||
|
||||
START=92
|
||||
|
||||
start() {
|
||||
service_start /usr/bin/baresip -d
|
||||
}
|
||||
|
||||
stop() {
|
||||
service_stop /usr/bin/baresip
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
--- a/modules/v4l/v4l.c
|
||||
+++ b/modules/v4l/v4l.c
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#undef __STRICT_ANSI__ /* needed for RHEL4 kernel 2.6.9 */
|
||||
-#include <linux/videodev.h>
|
||||
+#include <libv4l1-videodev.h>
|
||||
#include <pthread.h>
|
||||
#include <re.h>
|
||||
#include <baresip.h>
|
File diff suppressed because it is too large
Load Diff
@ -1,11 +0,0 @@
|
||||
|
||||
config 'global' 'state'
|
||||
option 'started' '0'
|
||||
|
||||
config 'profile_top' 'internal_top'
|
||||
|
||||
config 'profile_top' 'external_top'
|
||||
|
||||
config 'external_gateway' 'external_example'
|
||||
|
||||
|
@ -1,11 +0,0 @@
|
||||
#FS_DIR="/opt"
|
||||
FS_DIR_ETC="$FS_DIR/etc/freeswitch"
|
||||
FS_DIR_MOD="$FS_DIR/usr/lib/freeswitch"
|
||||
FS_DIR_DB="$FS_DIR/tmp/freeswitch/db"
|
||||
FS_DIR_LOG="$FS_DIR/tmp/freeswitch/log"
|
||||
FS_DIR_SCRIPTS="$FS_DIR/usr/share/freeswitch/scripts"
|
||||
FS_DIR_HTDOCS="$FS_DIR/usr/share/freeswitch/htdocs"
|
||||
FS_DIR_RECORDINGS="/var/lib/freeswitch/recordings" # NOTE: must be changed in config as well
|
||||
FS_DIR_VM_STORAGE="/var/lib/freeswitch/storage" # NOTE: must be changed in config as well
|
||||
|
||||
OPTIONS="-conf $FS_DIR_ETC -log $FS_DIR_LOG -db $FS_DIR_DB -mod $FS_DIR_MOD -htdocs $FS_DIR_HTDOCS -scripts $FS_DIR_SCRIPTS"
|
@ -1,65 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /lib/functions.sh
|
||||
LOAD_STATE=1
|
||||
|
||||
if [ "$ACTION" = "ifup" ]; then
|
||||
/etc/init.d/freeswitch enabled && {
|
||||
local not_all_up="$(sh -c '
|
||||
. /lib/functions.sh
|
||||
|
||||
LOAD_STATE=1
|
||||
local if_is_down=0
|
||||
local network_ignore=""
|
||||
|
||||
check_if_down () {
|
||||
local cfg="$1"
|
||||
local up
|
||||
local proto
|
||||
config_get_bool up "$1" up 0
|
||||
config_get proto "$1" proto
|
||||
if [ "$proto" != "none" ] && [ "$up" -ne 1 ]; then
|
||||
local new_down=1
|
||||
local oIFS="$IFS"
|
||||
local ignore
|
||||
IFS=" "
|
||||
for ignore in $network_ignore; do
|
||||
[ "$cfg" = "$ignore" ] && new_down=0
|
||||
done
|
||||
IFS="$oIFS"
|
||||
[ "$new_down" = "1" ] && if_is_down=1
|
||||
fi
|
||||
}
|
||||
|
||||
append_ignore() {
|
||||
local cfg="$1"
|
||||
local network
|
||||
config_get network "$1" network
|
||||
append network_ignore "$network"
|
||||
}
|
||||
|
||||
LOAD_STATE=1
|
||||
config_load freeswitch
|
||||
config_foreach append_ignore network_ignore
|
||||
config_load network
|
||||
config_foreach check_if_down interface
|
||||
|
||||
echo "$if_is_down"
|
||||
')"
|
||||
[ "$not_all_up" = "0" ] && {
|
||||
local started
|
||||
{
|
||||
mkdir -p /tmp/freeswitch
|
||||
lock /tmp/freeswitch/.start.lck
|
||||
config_load freeswitch
|
||||
config_get started "state" started
|
||||
[ "$started" != "1" ] && {
|
||||
/etc/init.d/freeswitch start
|
||||
uci_set_state freeswitch global state started 1
|
||||
}
|
||||
lock -u /tmp/freeswitch/.start.lck
|
||||
} &
|
||||
}
|
||||
}
|
||||
fi
|
||||
|
@ -1,40 +0,0 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2006 OpenWrt.org
|
||||
START=90
|
||||
|
||||
DEFAULT=/etc/default/freeswitch
|
||||
OPTIONS=""
|
||||
|
||||
boot() {
|
||||
# Do nothing on boot
|
||||
exit 0
|
||||
}
|
||||
|
||||
start() {
|
||||
[ -f $DEFAULT ] && . $DEFAULT
|
||||
mkdir -p $FS_DIR_DB
|
||||
mkdir -p $FS_DIR_LOG
|
||||
mkdir -p $FS_DIR_RECORDINGS
|
||||
mkdir -p $FS_DIR_VM_STORAGE
|
||||
ulimit -s 240
|
||||
$FS_DIR/usr/bin/freeswitch $OPTIONS -nc
|
||||
}
|
||||
|
||||
stop() {
|
||||
[ -f $DEFAULT ] && . $DEFAULT
|
||||
$FS_DIR/usr/bin/freeswitch $OPTIONS -stop
|
||||
}
|
||||
|
||||
restart() {
|
||||
# stopping freeswitch is non-blocking, so we wait until freeswitch's
|
||||
# event socket is down, and then wait an additional ten seconds so that
|
||||
# freeswitch should be completely shutdown before we start it again
|
||||
local retval
|
||||
stop
|
||||
fs_cli -x status >/dev/null 2>&1
|
||||
retval=$?
|
||||
while [ $retval -eq 0 ]; do sleep 1; fs_cli -x status >/dev/null 2>&1; retval=$?; done
|
||||
sleep 10
|
||||
start
|
||||
}
|
||||
|
@ -1,10 +0,0 @@
|
||||
--- /dev/null
|
||||
+++ b/build/openwrt_rules.mk
|
||||
@@ -0,0 +1,7 @@
|
||||
+OPENWRT_DIR=$(shell (cd $(BASE)/../../..;pwd))
|
||||
+STAGING_PREFIX=$(OPENWRT_DIR)/staging_dir/host
|
||||
+STAGING_DIR=$(OPENWRT_DIR)/staging_dir/$(shell (cd $(BASE)/..;basename `pwd`))
|
||||
+ARCH="$(shell grep CONFIG_ARCH $(OPENWRT_DIR)/.config|cut -d= -d'"' -f2)"
|
||||
+GNU_TARGET_NAME=$(ARCH)-openwrt-linux
|
||||
+
|
||||
+include $(OPENWRT_DIR)/rules.mk
|
@ -1,65 +0,0 @@
|
||||
--- a/build/modules.conf.in
|
||||
+++ b/build/modules.conf.in
|
||||
@@ -3,6 +3,9 @@
|
||||
#applications/mod_blacklist
|
||||
#applications/mod_callcenter
|
||||
#applications/mod_cidlookup
|
||||
+#applications/mod_skel
|
||||
+#applications/mod_mp4
|
||||
+#applications/mod_protovm
|
||||
applications/mod_cluechoo
|
||||
applications/mod_commands
|
||||
applications/mod_conference
|
||||
@@ -27,6 +30,7 @@ applications/mod_httapi
|
||||
#applications/mod_memcache
|
||||
#applications/mod_mongo
|
||||
#applications/mod_nibblebill
|
||||
+#applications/mod_oreka
|
||||
#applications/mod_osp
|
||||
#applications/mod_redis
|
||||
#applications/mod_rss
|
||||
@@ -34,6 +38,7 @@ applications/mod_sms
|
||||
#applications/mod_snapshot
|
||||
#applications/mod_snipe_hunt
|
||||
#applications/mod_snom
|
||||
+#applications/mod_sonar
|
||||
#applications/mod_soundtouch
|
||||
applications/mod_spandsp
|
||||
#applications/mod_spy
|
||||
@@ -61,17 +66,20 @@ codecs/mod_h26x
|
||||
codecs/mod_vp8
|
||||
#codecs/mod_ilbc
|
||||
#codecs/mod_isac
|
||||
+#codecs/mod_mp4v
|
||||
#codecs/mod_opus
|
||||
#codecs/mod_sangoma_codec
|
||||
#codecs/mod_silk
|
||||
#codecs/mod_siren
|
||||
codecs/mod_speex
|
||||
+#codecs/mod_theora
|
||||
dialplans/mod_dialplan_asterisk
|
||||
#dialplans/mod_dialplan_directory
|
||||
dialplans/mod_dialplan_xml
|
||||
#directories/mod_ldap
|
||||
#endpoints/mod_alsa
|
||||
#endpoints/mod_dingaling
|
||||
+#endpoints/mod_gsmopen
|
||||
#endpoints/mod_h323
|
||||
#endpoints/mod_html5
|
||||
#endpoints/mod_khomp
|
||||
@@ -88,6 +96,7 @@ event_handlers/mod_cdr_csv
|
||||
event_handlers/mod_cdr_sqlite
|
||||
#event_handlers/mod_erlang_event
|
||||
#event_handlers/mod_event_multicast
|
||||
+#event_handlers/mod_json_cdr
|
||||
event_handlers/mod_event_socket
|
||||
#event_handlers/mod_event_zmq
|
||||
#event_handlers/mod_radius_cdr
|
||||
@@ -113,6 +122,7 @@ loggers/mod_syslog
|
||||
#say/mod_say_de
|
||||
say/mod_say_en
|
||||
#say/mod_say_es
|
||||
+#say/mod_say_fa
|
||||
#say/mod_say_fr
|
||||
#say/mod_say_he
|
||||
#say/mod_say_hu
|
@ -1,20 +0,0 @@
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -152,7 +152,7 @@ if test "${enable_optimizer}" = "yes" ;
|
||||
AX_CC_MAXOPT
|
||||
fi
|
||||
|
||||
-AX_PATH_LIBGNUTLS()
|
||||
+#AX_PATH_LIBGNUTLS()
|
||||
|
||||
# set defaults for use on all platforms
|
||||
SWITCH_AM_CFLAGS="-I${switch_srcdir}/src/include -I${switch_builddir}/src/include -I${switch_srcdir}/libs/libteletone/src -I${switch_srcdir}/libs/stfu"
|
||||
@@ -581,7 +581,7 @@ AC_CHECK_LIB(pthread, pthread_setschedpa
|
||||
|
||||
AC_CHECK_FUNC(socket, , AC_CHECK_LIB(socket, socket))
|
||||
|
||||
-AC_CHECK_FILE(/dev/ptmx, [AC_DEFINE(HAVE_DEV_PTMX, 1, [Define if you have /dev/ptmx])])
|
||||
+# AC_CHECK_FILE(/dev/ptmx, [AC_DEFINE(HAVE_DEV_PTMX, 1, [Define if you have /dev/ptmx])])
|
||||
AC_CHECK_LIB(util, openpty, [AC_DEFINE(HAVE_OPENPTY, 1, [Define if you have openpty()])])
|
||||
|
||||
AC_CHECK_MEMBERS([struct tm.tm_gmtoff],,,[
|
@ -1,48 +0,0 @@
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -1,3 +1,7 @@
|
||||
+BASE=.
|
||||
+
|
||||
+include $(BASE)/build/openwrt_rules.mk
|
||||
+
|
||||
EXTRA_DIST =
|
||||
SUBDIRS = . src
|
||||
AUTOMAKE_OPTIONS = foreign
|
||||
@@ -164,7 +168,6 @@ ZRTP_LIBS = -lbn -lzrtp
|
||||
libfreeswitch_la_LDFLAGS += $(ZRTP_LDFLAGS)
|
||||
libfreeswitch_la_LIBADD += $(ZRTP_LIBS)
|
||||
CORE_LIBS += libs/libzrtp/libzrtp.a
|
||||
-LIBS += libs/libzrtp/third_party/bnlib/libbn.a
|
||||
endif
|
||||
|
||||
library_includedir = $(includedir)
|
||||
@@ -422,7 +425,7 @@ $(switch_builddir)/quiet_libtool: $(swit
|
||||
@cat libtool | sed -e 's|$$show "$$command"|if test -z "$$suppress_output" ; then $$show "Compiling $$srcfile ..." ; fi|' > $(switch_builddir)/quiet_libtool
|
||||
|
||||
build/print_git_revision: build/print_git_revision.c
|
||||
- $(CC) -o $@ $<
|
||||
+ $(HOSTCC) -o $@ $<
|
||||
|
||||
src/include/switch_version.h: src/include/switch_version.h.in Makefile build/print_git_revision $(libfreeswitch_la_SOURCES) $(library_include_HEADERS)
|
||||
@cat $< > $@; \
|
||||
@@ -648,7 +651,9 @@ sndfile-reconf:
|
||||
|
||||
tiff-reconf:
|
||||
cd libs/tiff-4.0.2 && autoreconf -fi
|
||||
- cd libs/tiff-4.0.2 && sh ./configure.gnu
|
||||
+ cd libs/tiff-4.0.2 && sh ./configure.gnu --host="$(GNU_TARGET_NAME)" --prefix="/usr"
|
||||
+ cd libs/spandsp && autoreconf -fi
|
||||
+ cd libs/spandsp && sh ./configure.gnu --host="$(GNU_TARGET_NAME)" --prefix="/usr"
|
||||
cd libs/tiff-4.0.2 && make
|
||||
|
||||
python-reconf:
|
||||
@@ -673,9 +678,6 @@ iks-reconf:
|
||||
$(MAKE) mod_dingaling-clean
|
||||
|
||||
spandsp-reconf: tiff-reconf
|
||||
- cd libs/spandsp && $(MAKE) clean || echo
|
||||
- cd libs/spandsp && autoreconf -fi
|
||||
- cd libs/spandsp && sh ./configure.gnu --prefix=$(prefix)
|
||||
cd libs/spandsp && $(MAKE)
|
||||
|
||||
sofia-reconf:
|
@ -1,22 +0,0 @@
|
||||
--- a/libs/esl/Makefile
|
||||
+++ b/libs/esl/Makefile
|
||||
@@ -7,7 +7,7 @@ PICKY=-O2
|
||||
CFLAGS=$(BASE_FLAGS) $(PICKY)
|
||||
CXXFLAGS=$(BASE_FLAGS)
|
||||
MYLIB=libesl.a
|
||||
-LIBS=-lncurses -lesl -lpthread -lm
|
||||
+LIBS=-L$(STAGING_DIR)/usr/lib -lncurses -lesl -lpthread -lm
|
||||
LDFLAGS=-L.
|
||||
OBJS=src/esl.o src/esl_event.o src/esl_threadmutex.o src/esl_config.o src/esl_json.o src/esl_buffer.o
|
||||
SRC=src/esl.c src/esl_json.c src/esl_event.c src/esl_threadmutex.c src/esl_config.c src/esl_oop.cpp src/esl_json.c src/esl_buffer.c
|
||||
@@ -19,8 +19,8 @@ OBJS += src/esl_oop.o
|
||||
all: $(MYLIB) fs_cli testclient testserver ivrd
|
||||
|
||||
$(MYLIB): $(OBJS) $(HEADERS) $(SRC)
|
||||
- ar rcs $(MYLIB) $(OBJS)
|
||||
- ranlib $(MYLIB)
|
||||
+ $(AR) rcs $(MYLIB) $(OBJS)
|
||||
+ $(RANLIB) $(MYLIB)
|
||||
|
||||
testserver: $(MYLIB) testserver.c
|
||||
$(CC) $(CC_CFLAGS) $(CFLAGS) testserver.c -o testserver $(LDFLAGS) $(LIBS)
|
@ -1,11 +0,0 @@
|
||||
--- a/libs/spandsp/src/spandsp/fast_convert.h
|
||||
+++ b/libs/spandsp/src/spandsp/fast_convert.h
|
||||
@@ -195,7 +195,7 @@ extern "C"
|
||||
{
|
||||
return (long int) (x);
|
||||
}
|
||||
-#elif defined(__ppc__) || defined(__powerpc__)
|
||||
+#elif 0 /* defined(__ppc__) || defined(__powerpc__) */
|
||||
static __inline__ long int lfastrint(register double x)
|
||||
{
|
||||
int res[2];
|
@ -1,11 +0,0 @@
|
||||
--- a/libs/spandsp/src/t4_rx.c
|
||||
+++ b/libs/spandsp/src/t4_rx.c
|
||||
@@ -45,7 +45,7 @@
|
||||
#include <math.h>
|
||||
#endif
|
||||
#include "floating_fudge.h"
|
||||
-#include <tiffio.h>
|
||||
+#include <tiffiop.h>
|
||||
|
||||
#include "spandsp/telephony.h"
|
||||
#include "spandsp/logging.h"
|
@ -1,11 +0,0 @@
|
||||
--- a/libs/spandsp/src/t4_tx.c
|
||||
+++ b/libs/spandsp/src/t4_tx.c
|
||||
@@ -45,7 +45,7 @@
|
||||
#include <math.h>
|
||||
#endif
|
||||
#include "floating_fudge.h"
|
||||
-#include <tiffio.h>
|
||||
+#include <tiffiop.h>
|
||||
|
||||
#include "spandsp/telephony.h"
|
||||
#include "spandsp/logging.h"
|
@ -1,13 +0,0 @@
|
||||
--- a/libs/xmlrpc-c/config.mk.in
|
||||
+++ b/libs/xmlrpc-c/config.mk.in
|
||||
@@ -335,8 +335,8 @@ endif
|
||||
# The cross compiling user can update config.mk or override
|
||||
# BUILDTOOL_CC on a make command.
|
||||
|
||||
-BUILDTOOL_CC = $(CC)
|
||||
-BUILDTOOL_CCLD = $(CCLD)
|
||||
+BUILDTOOL_CC = $(HOSTCC)
|
||||
+BUILDTOOL_CCLD = $(HOSTCC)
|
||||
|
||||
# Here are the commands 'make install' uses to install various kinds of files:
|
||||
|
@ -1,16 +0,0 @@
|
||||
--- a/libs/xmlrpc-c/lib/expat/gennmtab/Makefile
|
||||
+++ b/libs/xmlrpc-c/lib/expat/gennmtab/Makefile
|
||||
@@ -1,3 +1,5 @@
|
||||
+TOPDIR=$(shell (cd $(SRCDIR)/../../../../..; pwd))
|
||||
+
|
||||
ifeq ($(SRCDIR),)
|
||||
updir = $(shell echo $(dir $(1)) | sed 's/.$$//')
|
||||
EXPATDIR := $(call updir,$(CURDIR))
|
||||
@@ -7,6 +9,7 @@ ifeq ($(SRCDIR),)
|
||||
endif
|
||||
SUBDIR := lib/expat/gennmtab
|
||||
|
||||
+include $(TOPDIR)/rules.mk
|
||||
include $(BLDDIR)/config.mk
|
||||
|
||||
LDFLAGS = $(LADD)
|
@ -1,20 +0,0 @@
|
||||
--- a/libs/libzrtp/include/zrtp_config.h
|
||||
+++ b/libs/libzrtp/include/zrtp_config.h
|
||||
@@ -66,8 +66,16 @@
|
||||
* If the byte order is not specified manually in zrtp_config_user.h - try to detect it automatically
|
||||
*/
|
||||
#if !defined(ZRTP_BYTE_ORDER)
|
||||
+#if defined(linux) || defined(__linux)
|
||||
|
||||
-#if defined(_i386_) || defined(i_386_) || defined(_X86_) || defined(x86) || defined(__i386__) || \
|
||||
+#include <endian.h>
|
||||
+#if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||
+#define ZRTP_BYTE_ORDER ZBO_LITTLE_ENDIAN
|
||||
+#elif __BYTE_ORDER == __BIG_ENDIAN
|
||||
+#define ZRTP_BYTE_ORDER ZBO_BIG_ENDIAN
|
||||
+#endif
|
||||
+
|
||||
+#elif defined(_i386_) || defined(i_386_) || defined(_X86_) || defined(x86) || defined(__i386__) || \
|
||||
defined(__i386) || defined(_M_IX86) || defined(__I86__)
|
||||
/*
|
||||
* Generic i386 processor family, little-endian
|
@ -1,27 +0,0 @@
|
||||
--- a/src/include/timerfd_wrap.h
|
||||
+++ b/src/include/timerfd_wrap.h
|
||||
@@ -55,20 +55,12 @@ SWITCH_BEGIN_EXTERN_C
|
||||
|
||||
|
||||
#ifndef __NR_timerfd
|
||||
-#if defined(__x86_64__)
|
||||
-#define __NR_timerfd_create 283
|
||||
-#define __NR_timerfd_settime 286
|
||||
-#define __NR_timerfd_gettime 287
|
||||
-#elif defined(__i386__)
|
||||
-#define __NR_timerfd_create 322
|
||||
-#define __NR_timerfd_settime 325
|
||||
-#define __NR_timerfd_gettime 326
|
||||
-#else
|
||||
-#error invalid system
|
||||
-#endif
|
||||
+#include <linux/unistd.h>
|
||||
#endif
|
||||
|
||||
-#define TFD_TIMER_ABSTIME (1 << 0)
|
||||
+#ifndef TFD_TIMER_ABSTIME
|
||||
+#include <sys/timerfd.h>
|
||||
+#endif
|
||||
|
||||
int timerfd_create(int clockid, int flags)
|
||||
{
|
@ -1,13 +0,0 @@
|
||||
--- a/src/mod/applications/mod_mp4/mp4_helper.hpp
|
||||
+++ b/src/mod/applications/mod_mp4/mp4_helper.hpp
|
||||
@@ -22,8 +22,9 @@ the Initial Developer. All Rights Reserv
|
||||
#ifndef MP4_HELPER_HPP_
|
||||
#define MP4_HELPER_HPP_
|
||||
|
||||
+#include <string.h>
|
||||
+#include <sys/types.h>
|
||||
#include <mp4.h>
|
||||
-#include <string>
|
||||
#include <exception>
|
||||
#include <string>
|
||||
|
@ -1,17 +0,0 @@
|
||||
--- a/src/mod/codecs/mod_opus/Makefile
|
||||
+++ b/src/mod/codecs/mod_opus/Makefile
|
||||
@@ -12,12 +12,13 @@ OPUS_LA=$(OPUS_BUILDDIR)/.libs/libopus.l
|
||||
LOCAL_LIBADD=$(OPUS_LA)
|
||||
|
||||
include $(BASE)/build/modmake.rules
|
||||
+include $(BASE)/build/openwrt_rules.mk
|
||||
|
||||
$(OPUS_DIR):
|
||||
$(GETLIB) $(OPUS).tar.gz
|
||||
|
||||
$(OPUS_DIR)/Makefile: $(OPUS_DIR)
|
||||
- cd $(OPUS_BUILDDIR) && $(DEFAULT_VARS) $(OPUS_DIR)/configure --disable-shared --with-pic --srcdir=$(OPUS_DIR)
|
||||
+ cd $(OPUS_BUILDDIR) && $(DEFAULT_VARS) $(OPUS_DIR)/configure --host=$(GNU_TARGET_NAME) --disable-shared --with-pic --srcdir=$(OPUS_DIR)
|
||||
$(TOUCH_TARGET)
|
||||
|
||||
$(OPUS_LA): $(OPUS_DIR)/Makefile
|
@ -1,15 +0,0 @@
|
||||
--- a/src/mod/codecs/mod_silk/Makefile
|
||||
+++ b/src/mod/codecs/mod_silk/Makefile
|
||||
@@ -1,4 +1,5 @@
|
||||
BASE=../../../..
|
||||
+include $(BASE)/build/openwrt_rules.mk
|
||||
SILK_DIR=$(switch_srcdir)/libs/silk
|
||||
SILK_BUILDDIR=$(switch_builddir)/libs/silk
|
||||
LOCAL_CFLAGS=-I$(SILK_DIR)/src -I$(SILK_DIR)/interface
|
||||
@@ -8,5 +9,5 @@ LOCAL_OBJS=$(BASE)/libs/stfu/stfu.o
|
||||
include $(BASE)/build/modmake.rules
|
||||
|
||||
$(SILK_LA): $(SILK_DIR)/.update
|
||||
- cd $(SILK_BUILDDIR) && ./configure --disable-shared && make clean && $(MAKE)
|
||||
+ cd $(SILK_BUILDDIR) && ./configure --host=$(GNU_TARGET_NAME) --disable-shared && make clean && $(MAKE)
|
||||
$(TOUCH_TARGET)
|
@ -1,11 +0,0 @@
|
||||
--- a/src/mod/directories/mod_ldap/Makefile
|
||||
+++ b/src/mod/directories/mod_ldap/Makefile
|
||||
@@ -21,7 +21,7 @@ $(LDAP_DIR):
|
||||
|
||||
$(LDAP_BUILDDIR)/Makefile: $(LDAP_DIR)
|
||||
mkdir -p $(LDAP_BUILDDIR)
|
||||
- cd $(LDAP_BUILDDIR) && $(DEFAULT_VARS) $(LDAP_DIR)/configure $(DEFAULT_ARGS) --srcdir=$(LDAP_DIR)
|
||||
+ cd $(LDAP_BUILDDIR) && $(DEFAULT_VARS) $(LDAP_DIR)/configure $(DEFAULT_ARGS) --srcdir=$(LDAP_DIR) --with-yielding_select=yes
|
||||
$(TOUCH_TARGET)
|
||||
|
||||
$(LDAPLA) $(LIBLBERLA): $(LDAP_BUILDDIR)/Makefile
|
@ -1,20 +0,0 @@
|
||||
--- a/src/mod/endpoints/mod_gsmopen/Makefile
|
||||
+++ b/src/mod/endpoints/mod_gsmopen/Makefile
|
||||
@@ -1,5 +1,15 @@
|
||||
+BASE=../../../..
|
||||
MODNAME=mod_gsmopen
|
||||
-LOCAL_CFLAGS += -I../../../../libs/spandsp/src -I../../../..//libs/tiff-4.0.2/libtiff -DGSMOPEN_C_VER=\"`git log -1 --format="%h" gsmopen_protocol.cpp`\" -DMODGSMOPEN_C_VER=\"`git log -1 --format="%h" mod_gsmopen.cpp`\"
|
||||
-LOCAL_LDFLAGS=-L../../../../libs/spandsp/src -lspandsp -lctb-0.16 -lgsmme
|
||||
+SVNDEF := -D'GSMOPEN_SVN_VERSION="$(shell svnversion -n .)"'
|
||||
+
|
||||
+TIFF_DIR="$(shell ls -d $(switch_srcdir)/libs/tiff*)"
|
||||
+TIFF_BUILDDIR=$(TIFF_DIR)
|
||||
+TIFF_LA=$(TIFF_BUILDDIR)/libtiff/libtiff.la
|
||||
+
|
||||
+SPANDSP_DIR=$(switch_srcdir)/libs/spandsp
|
||||
+SPANDSP_BUILDDIR=$(switch_builddir)/libs/spandsp
|
||||
+SPANDSP_LA=$(SPANDSP_BUILDDIR)/src/libspandsp.la
|
||||
+LOCAL_CFLAGS += $(SVNDEF) -I$(BASE)/libs/spandsp/src -I$(TIFF_DIR)/libtiff -I$(BASE)/src/mod/endpoints/mod_gsmopen/libctb-0.16/include -fpermissive
|
||||
+LOCAL_LDFLAGS=-L$(BASE)/libs/spandsp/src -lspandsp -L$(BASE)/src/mod/endpoints/mod_gsmopen/libctb-0.16/lib -lctb-0.16
|
||||
LOCAL_OBJS=gsmopen_protocol.o
|
||||
include ../../../../build/modmake.rules
|
@ -1,16 +0,0 @@
|
||||
--- a/src/mod/event_handlers/mod_snmp/Makefile
|
||||
+++ b/src/mod/event_handlers/mod_snmp/Makefile
|
||||
@@ -1,7 +1,10 @@
|
||||
-include ../../../../build/modmake.rules
|
||||
+BASE=../../../..
|
||||
+
|
||||
+include $(BASE)/build/modmake.rules
|
||||
+include $(BASE)/build/openwrt_rules.mk
|
||||
+
|
||||
+LOCAL_CFLAGS=$(shell $(STAGING_DIR)/host/bin/net-snmp-config --cflags --agent-libs) -DNETSNMP_NO_INLINE
|
||||
|
||||
-LOCAL_CFLAGS=`net-snmp-config --cflags`
|
||||
-LOCAL_LDFLAGS=`net-snmp-config --agent-libs`
|
||||
LOCAL_OBJS=subagent.o
|
||||
|
||||
local_depend: $(LOCAL_OBJS)
|
@ -1,11 +0,0 @@
|
||||
--- a/src/mod/xml_int/mod_xml_ldap/Makefile
|
||||
+++ b/src/mod/xml_int/mod_xml_ldap/Makefile
|
||||
@@ -14,7 +14,7 @@ LOCAL_LIBADD=$(LDAPLA) $(LIBLBERLA) $(LI
|
||||
|
||||
include $(BASE)/build/modmake.rules
|
||||
|
||||
-DEFAULT_ARGS+= --disable-slapd --disable-slurpd --disable-relay --disable-bdb --disable-hdb
|
||||
+DEFAULT_ARGS+= --disable-slapd --disable-slurpd --disable-relay --disable-bdb --disable-hdb --with-yielding_select=yes
|
||||
|
||||
$(LDAP_DIR):
|
||||
$(GETLIB) $(LDAP).tar.gz
|
@ -1,10 +0,0 @@
|
||||
--- a/src/mod/xml_int/mod_xml_rpc/Makefile
|
||||
+++ b/src/mod/xml_int/mod_xml_rpc/Makefile
|
||||
@@ -14,7 +14,6 @@ $(XMLRPC_DIR)/lib/abyss/src/date.o\
|
||||
$(XMLRPC_DIR)/src/double.o\
|
||||
$(XMLRPC_DIR)/lib/libutil/error.o\
|
||||
$(XMLRPC_DIR)/lib/abyss/src/file.o\
|
||||
-$(XMLRPC_DIR)/lib/expat/gennmtab/gennmtab.o\
|
||||
$(XMLRPC_DIR)/lib/util/getoptx.o\
|
||||
$(XMLRPC_DIR)/lib/abyss/src/handler.o\
|
||||
$(XMLRPC_DIR)/lib/abyss/src/http.o\
|
@ -1,11 +0,0 @@
|
||||
--- a/src/mod/codecs/mod_isac/typedefs.h
|
||||
+++ b/src/mod/codecs/mod_isac/typedefs.h
|
||||
@@ -66,7 +66,7 @@
|
||||
#define WEBRTC_ARCH_X86
|
||||
#define WEBRTC_ARCH_32_BITS
|
||||
#define WEBRTC_ARCH_LITTLE_ENDIAN
|
||||
-#elif defined(__ARMEL__)
|
||||
+#elif defined(__ARMEL__) || defined(__mips__)
|
||||
// TODO(andrew): We'd prefer to control platform defines here, but this is
|
||||
// currently provided by the Android makefiles. Commented to avoid duplicate
|
||||
// definition warnings.
|
@ -1,10 +0,0 @@
|
||||
--- a/src/mod/endpoints/mod_dingaling/Makefile
|
||||
+++ b/src/mod/endpoints/mod_dingaling/Makefile
|
||||
@@ -10,7 +10,6 @@ DING_DIR=$(BASE)/libs/libdingaling
|
||||
LOCAL_CFLAGS += -I$(DING_DIR)/src -I$(BASE)/libs/iksemel/include
|
||||
LOCAL_OBJS=$(DING_DIR)/src/libdingaling.o $(DING_DIR)/src/sha1.o $(IKS_LA)
|
||||
LOCAL_SOURCES=$(DING_DIR)/src/libdingaling.c $(DING_DIR)/src/sha1.c $(DING_DIR)/src/libdingaling.h
|
||||
-LOCAL_LDFLAGS=$(LIBGNUTLS_LIBS)
|
||||
include $(BASE)/build/modmake.rules
|
||||
|
||||
|
@ -1,268 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2009 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=kamailio
|
||||
PKG_VERSION:=1.5.2
|
||||
PKG_RELEASE:=1
|
||||
PKG_VARIANT:=-tls
|
||||
|
||||
PKG_SOURCE_URL:=http://www.kamailio.org/pub/kamailio/1.5.2/src/
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)$(PKG_VARIANT)_src.tar.gz
|
||||
PKG_MD5SUM:=26b0d0d3c67c2d981bee86a803cca51f
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)$(PKG_VARIANT)
|
||||
|
||||
PKG_BUILD_DEPENDS:=curl expat libxml2 mysql openldap openssl pcre postgresql radiusclient-ng
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
TARGET_CFLAGS += $(FPIC)
|
||||
|
||||
define Package/kamailio/Default
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=Telephony
|
||||
URL:=http://www.kamailio.org/
|
||||
endef
|
||||
|
||||
|
||||
define Package/kamailio
|
||||
$(call Package/kamailio/Default)
|
||||
TITLE:=Mature and flexible open source SIP server
|
||||
MENU:=1
|
||||
endef
|
||||
|
||||
define Package/kamailio-example
|
||||
$(call Package/kamailio/Default)
|
||||
TITLE:=Kamailio example config
|
||||
DEPENDS:=kamailio \
|
||||
+kamailio-mod-acc \
|
||||
+kamailio-mod-maxfwd \
|
||||
+kamailio-mod-mi-fifo \
|
||||
+kamailio-mod-pv \
|
||||
+kamailio-mod-registrar \
|
||||
+kamailio-mod-rr \
|
||||
+kamailio-mod-sl \
|
||||
+kamailio-mod-siputils \
|
||||
+kamailio-mod-textops \
|
||||
+kamailio-mod-tm \
|
||||
+kamailio-mod-uri-db \
|
||||
+kamailio-mod-usrloc \
|
||||
+kamailio-mod-xlog
|
||||
endef
|
||||
|
||||
define Package/kamailio-example/conffiles
|
||||
/etc/default/kamailio
|
||||
/etc/kamailio/kamailio.cfg
|
||||
endef
|
||||
|
||||
|
||||
define Package/kamailio-tools
|
||||
$(call Package/kamailio/Default)
|
||||
TITLE:=Kamailio control tools
|
||||
DEPENDS:=kamailio
|
||||
endef
|
||||
|
||||
define Package/kamailio-tools/conffiles
|
||||
/etc/kamailio/kamctlrc
|
||||
endef
|
||||
|
||||
|
||||
PKG_EXCL_MODULES:= \
|
||||
auth_diameter \
|
||||
carrierroute \
|
||||
db_berkeley \
|
||||
db_oracle \
|
||||
db_unixodbc \
|
||||
mediaproxy \
|
||||
mi_xmlrpc \
|
||||
osp \
|
||||
perl \
|
||||
perlvdb \
|
||||
purple \
|
||||
snmpstats \
|
||||
|
||||
PKG_MAKE_ARGS:= \
|
||||
cfg-dir="etc/kamailio/" \
|
||||
bin-dir="usr/sbin/" \
|
||||
data-dir="var/lib/kamailio/" \
|
||||
lib-dir="usr/lib/kamailio/" \
|
||||
modules-dir="usr/lib/kamailio/modules/" \
|
||||
exclude_modules="$(PKG_EXCL_MODULES)" \
|
||||
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
|
||||
prefix=/ \
|
||||
extra_defs="-DUSE_PTHREAD_MUTEX " \
|
||||
CC="$(TARGET_CC)" \
|
||||
ARCH="$(ARCH)" \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
ISSMP="no" \
|
||||
LOCALBASE="$(STAGING_DIR)/usr" \
|
||||
SYSBASE="$(STAGING_DIR)/usr" \
|
||||
PCREDEFS:="$(TARGET_CPPFLAGS)" \
|
||||
PCRELIBS:="$(TARGET_LDFLAGS)" \
|
||||
CROSS_COMPILE=1 \
|
||||
all
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
|
||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||
install
|
||||
endef
|
||||
|
||||
define Package/kamailio/install
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/sbin/kamailio \
|
||||
$(1)/usr/sbin/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/kamailio/modules
|
||||
endef
|
||||
|
||||
define Package/kamailio-example/install
|
||||
$(INSTALL_DIR) $(1)/etc/kamailio
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/etc/kamailio/kamailio.cfg \
|
||||
$(1)/etc/kamailio/
|
||||
$(SED) 's,$(PKG_INSTALL_DIR),,g' \
|
||||
$(1)/etc/kamailio/kamailio.cfg
|
||||
$(INSTALL_DIR) $(1)/etc/default
|
||||
$(INSTALL_DATA) ./files/kamailio.default $(1)/etc/default/kamailio
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/kamailio.init $(1)/etc/init.d/kamailio
|
||||
endef
|
||||
|
||||
define Package/kamailio-tools/install
|
||||
$(INSTALL_DIR) $(1)/etc/kamailio
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/etc/kamailio/kamctlrc \
|
||||
$(1)/etc/kamailio/
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/sbin/kam{ctl,dbctl,unix} \
|
||||
$(1)/usr/sbin/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/kamailio
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/kamailio/kamctl \
|
||||
$(1)/usr/lib/kamailio/
|
||||
$(SED) 's,/bin/bash,/bin/sh,g' \
|
||||
-e 's,$(PKG_INSTALL_DIR),,g' \
|
||||
$(1)/usr/sbin/kam{ctl,dbctl}
|
||||
endef
|
||||
|
||||
define BuildPlugin
|
||||
define Package/kamailio-mod-$(1)
|
||||
$$(call Package/kamailio/Default)
|
||||
TITLE:= kamailio $(3) module
|
||||
DEPENDS:=kamailio $$(foreach m,$(4),+kamailio-mod-$$m) $(5)
|
||||
endef
|
||||
|
||||
define Package/kamailio-mod-$(1)/install
|
||||
[ -z "$(2)" ] || $(INSTALL_DIR) $$(1)/usr/lib/kamailio/modules/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/kamailio/modules/$(2).so \
|
||||
$$(1)/usr/lib/kamailio/modules/ ;
|
||||
endef
|
||||
|
||||
$$(eval $$(call BuildPackage,kamailio-mod-$(1)))
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,kamailio))
|
||||
$(eval $(call BuildPackage,kamailio-example))
|
||||
$(eval $(call BuildPackage,kamailio-tools))
|
||||
$(eval $(call BuildPlugin,acc,acc,Accounting,tm,))
|
||||
$(eval $(call BuildPlugin,alias-db,alias_db,Database-backend aliases,,))
|
||||
$(eval $(call BuildPlugin,auth,auth,Authentication Framework,,))
|
||||
$(eval $(call BuildPlugin,auth-db,auth_db,Database-backend authentication,auth,))
|
||||
#$(eval $(call BuildPlugin,auth-diameter,auth_diameter,Diameter-backend authentication,sl,))
|
||||
$(eval $(call BuildPlugin,auth-radius,auth_radius,RADIUS-backend authentication,auth,+libradiusclient-ng))
|
||||
$(eval $(call BuildPlugin,avpops,avpops,AVP operation,,))
|
||||
$(eval $(call BuildPlugin,benchmark,benchmark,Config benchmark,,))
|
||||
#$(eval $(call BuildPlugin,carrierroute,carrierroute,Carrier Routing,,+libconfuse))
|
||||
$(eval $(call BuildPlugin,cfgutils,cfgutils,Config utilities,,))
|
||||
$(eval $(call BuildPlugin,cpl-c,cpl-c,Call Processing language interpreter,tm sl usrloc,+libxml2))
|
||||
#$(eval $(call BuildPlugin,db-berkeley,db_berkeley,Berkeley DB Database-backend,,))
|
||||
$(eval $(call BuildPlugin,db-flatstore,db_flatstore,Fast writing-only text database-backed,,))
|
||||
$(eval $(call BuildPlugin,db-mysql,db_mysql,MySQL database-backend,,+libmysqlclient))
|
||||
#$(eval $(call BuildPlugin,db-oracle,db_oracle,Oracle Database-backend,,))
|
||||
$(eval $(call BuildPlugin,db-postgres,db_postgres,PostgreSQL Database-backend,,+libpq))
|
||||
$(eval $(call BuildPlugin,db-text,db_text,Text database-backend,,))
|
||||
#$(eval $(call BuildPlugin,db-unixodbc,db_unixodbc,UnixODBC Database-backend,,))
|
||||
$(eval $(call BuildPlugin,dialog,dialog,Dialog support,rr tm,))
|
||||
$(eval $(call BuildPlugin,dialplan,dialplan,Dialplan management,,+libpcre))
|
||||
$(eval $(call BuildPlugin,dispatcher,dispatcher,Dispatcher,,))
|
||||
$(eval $(call BuildPlugin,diversion,diversion,Diversion header insertion,,))
|
||||
$(eval $(call BuildPlugin,domain,domain,Multi-domain support,,))
|
||||
$(eval $(call BuildPlugin,domainpolicy,domainpolicy,Domain policy,,))
|
||||
$(eval $(call BuildPlugin,enum,enum,ENUM lookup,,))
|
||||
$(eval $(call BuildPlugin,exec,exec,External exec,,))
|
||||
$(eval $(call BuildPlugin,group,group,Database-backend user-groups,,))
|
||||
$(eval $(call BuildPlugin,h350,h350,H.350,ldap,+libopenldap))
|
||||
$(eval $(call BuildPlugin,htable,htable,Hash Table,,))
|
||||
$(eval $(call BuildPlugin,imc,imc,IM conferencing,db-mysql tm,))
|
||||
$(eval $(call BuildPlugin,jabber,jabber,Jabber,tm,+libexpat))
|
||||
$(eval $(call BuildPlugin,lcr,lcr,Least Cost Routing,tm,+libpcre))
|
||||
$(eval $(call BuildPlugin,ldap,ldap,LDAP connector,,+libopenldap))
|
||||
$(eval $(call BuildPlugin,maxfwd,maxfwd,Max-Forward processor,,))
|
||||
$(eval $(call BuildPlugin,mi-datagram,mi_datagram,Datagram support for Management Interface,,))
|
||||
$(eval $(call BuildPlugin,mi-fifo,mi_fifo,FIFO support for Management Interface,,))
|
||||
#$(eval $(call BuildPlugin,mi-xmlrpc,mi_xmlrpc,XML-RPC support for Management Interface,,+xmlrpc-c))
|
||||
#$(eval $(call BuildPlugin,mediaproxy,mediaproxy,NAT traversal,,+mediaproxy))
|
||||
$(eval $(call BuildPlugin,misc_radius,misc_radius,Generic RADIUS,,+libradiusclient-ng))
|
||||
$(eval $(call BuildPlugin,msilo,msilo,SIP message silo,tm,))
|
||||
$(eval $(call BuildPlugin,nat_traversal,nat_traversal,NAT traversal,dialog sl tm,))
|
||||
$(eval $(call BuildPlugin,nathelper,nathelper,NAT traversal helper,,+rtpproxy))
|
||||
#$(eval $(call BuildPlugin,osp,osp,OSP peering,auth rr sl tm textops,+libosp))
|
||||
$(eval $(call BuildPlugin,path,path,SIP path insertion,rr,))
|
||||
$(eval $(call BuildPlugin,pdt,pdt,Prefix-to-Domain translator,,))
|
||||
$(eval $(call BuildPlugin,peering,peering,Perring,,+libradiusclient-ng))
|
||||
#$(eval $(call BuildPlugin,perl,perl,Perl,sl,+perl))
|
||||
#$(eval $(call BuildPlugin,perlvdb,perlvdb,Perl Virtual DB,perl,))
|
||||
$(eval $(call BuildPlugin,permissions,permissions,Permissions control,,))
|
||||
$(eval $(call BuildPlugin,pike,pike,Flood detector,,))
|
||||
$(eval $(call BuildPlugin,presence,presence,Presence server,sl tm,+libxml2))
|
||||
$(eval $(call BuildPlugin,presence-dialoginfo,presence_dialoginfo,Dialog Event presence,presence,))
|
||||
$(eval $(call BuildPlugin,presence-mwi,presence_mwi,Message Waiting Indication presence,presence,))
|
||||
$(eval $(call BuildPlugin,presence-xml,presence_xml,XCAP presence,presence xcap-client,))
|
||||
$(eval $(call BuildPlugin,pua,pua,Presence User Agent,tm,+libxml2))
|
||||
$(eval $(call BuildPlugin,pua-bla,pua_bla,Bridged Line Appearence PUA,presence pua usrloc,))
|
||||
$(eval $(call BuildPlugin,pua-dialoginfo,pua_dialoginfo,Dialog Event PUA,dialog pua,))
|
||||
$(eval $(call BuildPlugin,pua-mi,pua_mi,PUA Management Interface,pua,))
|
||||
$(eval $(call BuildPlugin,pua-usrloc,pua_usrloc,PUA User Location,pua usrloc,))
|
||||
$(eval $(call BuildPlugin,pua-xmpp,pua_xmpp,PUA XMPP,presence pua xmpp,))
|
||||
#$(eval $(call BuildPlugin,purple,purple,Multi-protocol IM gateway,presence pua,+libpurple))
|
||||
$(eval $(call BuildPlugin,pv,pv,Pseudo-Variables,,))
|
||||
$(eval $(call BuildPlugin,qos,qos,QoS control,dialog,))
|
||||
$(eval $(call BuildPlugin,ratelimit,ratelimit,Traffic shapping,,))
|
||||
$(eval $(call BuildPlugin,regex,regex,Regular Expression,,+libpcre))
|
||||
$(eval $(call BuildPlugin,registrar,registrar,SIP Registrar,usrloc,))
|
||||
$(eval $(call BuildPlugin,rls,rls,Resource List Server,presence pua tm,+libxml2))
|
||||
$(eval $(call BuildPlugin,rr,rr,Record-Route and Route,,))
|
||||
$(eval $(call BuildPlugin,rtimer,rtimer,Routing Timer,,))
|
||||
$(eval $(call BuildPlugin,sanity,sanity,SIP sanity checks,sl,))
|
||||
#$(eval $(call BuildPlugin,seas,seas,SIP Express Application Server,tm,))
|
||||
$(eval $(call BuildPlugin,siptrace,siptrace,SIP trace,,))
|
||||
$(eval $(call BuildPlugin,siputils,siputils,SIP utilities,sl,))
|
||||
$(eval $(call BuildPlugin,sl,sl,Stateless replier,,))
|
||||
$(eval $(call BuildPlugin,sms,sms,SIP-to-SMS IM gateway,tm,))
|
||||
#$(eval $(call BuildPlugin,snmpstats,snmpstats,SNMP,presence usrloc,+libnetsnmp))
|
||||
$(eval $(call BuildPlugin,speeddial,speeddial,Per-user speed-dial controller,,))
|
||||
$(eval $(call BuildPlugin,sqlops,sqlops,SQL operations,,))
|
||||
$(eval $(call BuildPlugin,statistics,statistics,Script statistics,,))
|
||||
$(eval $(call BuildPlugin,sst,sst,SIP Session Timer,dialog sl,))
|
||||
$(eval $(call BuildPlugin,textops,textops,Text operations,,))
|
||||
$(eval $(call BuildPlugin,tlsops,tlsops,TLS operations,,+libopenssl))
|
||||
$(eval $(call BuildPlugin,tm,tm,Transaction,,))
|
||||
$(eval $(call BuildPlugin,uac,uac,User Agent Client,tm,))
|
||||
$(eval $(call BuildPlugin,uac-redirect,uac_redirect,User Agent Client redirection,tm,))
|
||||
$(eval $(call BuildPlugin,uri-db,uri_db,Database-backend SIP URI checking,,))
|
||||
$(eval $(call BuildPlugin,userblacklist,userblacklist,User blacklists,,))
|
||||
$(eval $(call BuildPlugin,usrloc,usrloc,User location,,))
|
||||
$(eval $(call BuildPlugin,utils,utils,Misc utilities,,+libcurl))
|
||||
$(eval $(call BuildPlugin,xcap-client,xcap_client,XCAP Client,,+libcurl))
|
||||
$(eval $(call BuildPlugin,xlog,xlog,Advanced logger,,))
|
||||
$(eval $(call BuildPlugin,xmpp,xmpp,SIP-to-XMPP Gateway,tm,+libexpat))
|
@ -1,13 +0,0 @@
|
||||
# OPTIONS
|
||||
# -n COUNT
|
||||
# Specifies the number of children processes forked per interface
|
||||
# -N COUNT
|
||||
# Specifies the number of children processes forked to handle tcp incoming connections
|
||||
# -m SIZE
|
||||
# Size of the shared memory which will be allocated (in Megabytes).
|
||||
# -u UID
|
||||
# Changes the user id under which
|
||||
# -g GID
|
||||
# Changes the group id under which
|
||||
|
||||
OPTIONS="-n 4 -m 4 - m 8"
|
@ -1,19 +0,0 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2009 OpenWrt.org
|
||||
START=50
|
||||
|
||||
BIN=kamailio
|
||||
DEFAULT=/etc/default/$BIN
|
||||
RUN_D=/var/run
|
||||
PID_F=$RUN_D/$BIN.pid
|
||||
|
||||
start() {
|
||||
[ -f $DEFAULT ] && . $DEFAULT
|
||||
mkdir -p $RUN_D
|
||||
$BIN -P $PID_F $OPTIONS >/dev/null 2>&1
|
||||
}
|
||||
|
||||
stop() {
|
||||
[ -f $PID_F ] && kill $(cat $PID_F)
|
||||
}
|
||||
|
@ -1,20 +0,0 @@
|
||||
--- a/config.h
|
||||
+++ b/config.h
|
||||
@@ -48,7 +48,7 @@
|
||||
|
||||
#define MAX_LISTEN 16 /*!< maximum number of addresses on which we will listen */
|
||||
|
||||
-#define CHILD_NO 8 /*!< default number of child processes started */
|
||||
+#define CHILD_NO 4 /*!< default number of child processes started */
|
||||
|
||||
#ifndef RT_NO
|
||||
#define RT_NO 80 /*!< routing tables number */
|
||||
@@ -119,7 +119,7 @@
|
||||
#define PKG_MEM_POOL_SIZE 4*1024*1024 /*!< Used only if PKG_MALLOC is defined*/
|
||||
#endif
|
||||
|
||||
-#define SHM_MEM_SIZE 32 /*!< Used if SH_MEM is defined*/
|
||||
+#define SHM_MEM_SIZE 8 /*!< Used if SH_MEM is defined*/
|
||||
|
||||
#define TIMER_TICK 1 /*!< one second */
|
||||
#define UTIMER_TICK 100*1000 /*!< 100 miliseconds*/
|
@ -1,137 +0,0 @@
|
||||
--- a/modules/carrierroute/Makefile
|
||||
+++ b/modules/carrierroute/Makefile
|
||||
@@ -12,10 +12,8 @@ NAME=carrierroute.so
|
||||
BUILDER = $(shell which confuse-config)
|
||||
|
||||
ifeq ($(BUILDER),)
|
||||
- CONFUSEDEFS=-I$(LOCALBASE)/include -I/usr/local/include -I/opt/include \
|
||||
- -I/usr/sfw/include
|
||||
- CONFUSELIBS=-L$(LOCALBASE)/lib -L/usr/local/lib -L/usr/sfw/lib \
|
||||
- -L/opt/lib -lconfuse
|
||||
+ CONFUSEDEFS=-I$(LOCALBASE)/include
|
||||
+ CONFUSELIBS=-L$(LOCALBASE)/lib
|
||||
else
|
||||
CONFUSEDEFS = $(shell confuse-config --cflags)
|
||||
CONFUSELIBS = $(shell confuse-config --libs)
|
||||
--- a/modules/h350/Makefile
|
||||
+++ b/modules/h350/Makefile
|
||||
@@ -9,7 +9,8 @@ include ../../Makefile.defs
|
||||
|
||||
auto_gen=
|
||||
NAME=h350.so
|
||||
-LIBS=
|
||||
+
|
||||
DEFS+=-I$(LOCALBASE)/include
|
||||
+LIBS=-L$(LOCALBASE)/lib -lldap
|
||||
|
||||
include ../../Makefile.modules
|
||||
--- a/modules/ldap/Makefile
|
||||
+++ b/modules/ldap/Makefile
|
||||
@@ -12,8 +12,8 @@ include ../../Makefile.defs
|
||||
auto_gen=
|
||||
NAME=ldap.so
|
||||
|
||||
-LIBS=-L$(LOCALBASE)/lib -lldap
|
||||
DEFS+=-I$(LOCALBASE)/include
|
||||
+LIBS=-L$(LOCALBASE)/lib -lldap
|
||||
|
||||
ifeq ($(OS),solaris)
|
||||
DEFS+=-I$(LOCALBASE)/include -I/usr/sfw/include -I/usr/local/include -I/opt/sfw/include -I/opt/csw/include
|
||||
--- a/modules/pua_bla/Makefile
|
||||
+++ b/modules/pua_bla/Makefile
|
||||
@@ -9,8 +9,8 @@ include ../../Makefile.defs
|
||||
auto_gen=
|
||||
NAME=pua_bla.so
|
||||
LIBS=
|
||||
-DEFS+=-I/usr/include/libxml2 -I$(LOCALBASE)/include/libxml2 -I$(LOCALBASE)/include
|
||||
-LIBS+=-L/usr/include/lib -L$(LOCALBASE)/lib -lxml2
|
||||
+DEFS+=-I$(LOCALBASE)/include/libxml2 -I$(LOCALBASE)/include
|
||||
+LIBS+=-L$(LOCALBASE)/lib -lxml2
|
||||
|
||||
include ../../Makefile.modules
|
||||
|
||||
--- a/modules/pua_xmpp/Makefile
|
||||
+++ b/modules/pua_xmpp/Makefile
|
||||
@@ -10,7 +10,7 @@ auto_gen=
|
||||
NAME= pua_xmpp.so
|
||||
LIBS=
|
||||
|
||||
-DEFS+=-I/usr/include/libxml2 -I$(LOCALBASE)/include/libxml2 -I$(LOCALBASE)/include
|
||||
-LIBS+=-L/usr/include/lib -L$(LOCALBASE)/lib -lxml2
|
||||
+DEFS+=-I$(LOCALBASE)/include/libxml2 -I$(LOCALBASE)/include
|
||||
+LIBS+=-L$(LOCALBASE)/lib -lxml2
|
||||
|
||||
include ../../Makefile.modules
|
||||
--- a/modules/regex/Makefile
|
||||
+++ b/modules/regex/Makefile
|
||||
@@ -7,10 +7,8 @@ NAME=regex.so
|
||||
BUILDER = $(shell which pcre-config)
|
||||
|
||||
ifeq ($(BUILDER),)
|
||||
- PCREDEFS=-I$(LOCALBASE)/include -I/usr/local/include -I/opt/include \
|
||||
- -I/usr/sfw/include
|
||||
- PCRELIBS=-L$(LOCALBASE)/lib -L/usr/local/lib -L/usr/sfw/lib \
|
||||
- -L/opt/lib -lpcre
|
||||
+ PCREDEFS=-I$(LOCALBASE)/include
|
||||
+ PCRELIBS=-L$(LOCALBASE)/lib -lpcre
|
||||
else
|
||||
PCREDEFS = $(shell pcre-config --cflags)
|
||||
PCRELIBS = $(shell pcre-config --libs)
|
||||
--- a/modules/tlsops/Makefile
|
||||
+++ b/modules/tlsops/Makefile
|
||||
@@ -7,8 +7,8 @@ auto_gen=
|
||||
NAME=tlsops.so
|
||||
LIBS=
|
||||
|
||||
-DEFS+= -I$(LOCALBASE)/ssl/include
|
||||
-LIBS+= -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib -lssl -lcrypto
|
||||
+DEFS+= -I$(LOCALBASE)/include
|
||||
+LIBS+= -L$(LOCALBASE)/lib -lssl -lcrypto
|
||||
|
||||
include ../../Makefile.modules
|
||||
|
||||
--- a/modules/dialplan/Makefile
|
||||
+++ b/modules/dialplan/Makefile
|
||||
@@ -9,10 +9,8 @@ NAME=dialplan.so
|
||||
BUILDER = $(shell which pcre-config)
|
||||
|
||||
ifeq ($(BUILDER),)
|
||||
- PCREDEFS=-I$(LOCALBASE)/include -I/usr/local/include -I/opt/include \
|
||||
- -I/usr/sfw/include
|
||||
- PCRELIBS=-L$(LOCALBASE)/lib -L/usr/local/lib -L/usr/sfw/lib \
|
||||
- -L/opt/lib -lpcre
|
||||
+ PCREDEFS=-I$(LOCALBASE)/include
|
||||
+ PCRELIBS=-L$(LOCALBASE)/lib -lpcre
|
||||
else
|
||||
PCREDEFS = $(shell pcre-config --cflags)
|
||||
PCRELIBS = $(shell pcre-config --libs)
|
||||
--- a/modules/lcr/Makefile
|
||||
+++ b/modules/lcr/Makefile
|
||||
@@ -11,10 +11,8 @@ NAME=lcr.so
|
||||
BUILDER = $(shell which pcre-config)
|
||||
|
||||
ifeq ($(BUILDER),)
|
||||
- PCREDEFS=-I$(LOCALBASE)/include -I/usr/local/include -I/opt/include \
|
||||
- -I/usr/sfw/include
|
||||
- PCRELIBS=-L$(LOCALBASE)/lib -L/usr/local/lib -L/usr/sfw/lib \
|
||||
- -L/opt/lib -lpcre
|
||||
+ PCREDEFS=-I$(LOCALBASE)/include
|
||||
+ PCRELIBS=-L$(LOCALBASE)/lib -lpcre
|
||||
else
|
||||
PCREDEFS = $(shell pcre-config --cflags)
|
||||
PCRELIBS = $(shell pcre-config --libs)
|
||||
--- a/modules/purple/Makefile
|
||||
+++ b/modules/purple/Makefile
|
||||
@@ -3,9 +3,9 @@ auto_gen=
|
||||
NAME=purple.so
|
||||
LIBS=
|
||||
|
||||
-DEFS+=-I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0 \
|
||||
- -I/usr/include/libxml2
|
||||
-LIBS+=-lglib-2.0 -lpurple -lxml2
|
||||
+DEFS+=-I$(LOCALBASE)/include/glib-2.0/include -I$(LOCALBASE)/include/glib-2.0 \
|
||||
+ -I$(LOCALBASE)/incldue/libxml2
|
||||
+LIBS+=-L$(LOCALBASE)/lib -lglib-2.0 -lpurple -lxml2
|
||||
|
||||
|
||||
include ../../Makefile.modules
|
@ -1,284 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2013 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=kamailio3
|
||||
PKG_VERSION:=3.3.4
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_URL:=http://www.kamailio.org/pub/kamailio/$(PKG_VERSION)/src/
|
||||
PKG_SOURCE:=kamailio-$(PKG_VERSION)$(PKG_VARIANT)_src.tar.gz
|
||||
PKG_MD5SUM:=24d6a0c852d49791f7e0d0694e128d43
|
||||
|
||||
INCL_MODULES:=
|
||||
KAM_MODULES:=
|
||||
|
||||
include $(INCLUDE_DIR)/nls.mk
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
TARGET_CFLAGS += $(FPIC)
|
||||
PREBUILT_STAMP=$(STAGING_DIR)/stamp/.$(PKG_NAME)_prebuilt
|
||||
TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS)
|
||||
|
||||
define Package/kamailio3/Default
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=Telephony
|
||||
URL:=http://www.kamailio.org/
|
||||
DEPENDS:=$(ICONV_DEPENDS) +libncurses +libpthread +libreadline
|
||||
endef
|
||||
|
||||
define Package/kamailio3
|
||||
$(call Package/kamailio3/Default)
|
||||
TITLE:=Mature and flexible open source SIP server version 3.x
|
||||
MENU:=1
|
||||
endef
|
||||
|
||||
define Package/kamailio3-example
|
||||
$(call Package/kamailio3/Default)
|
||||
TITLE:=Kamailio3 example config
|
||||
DEPENDS:=kamailio3 \
|
||||
+kamailio3-mod-acc \
|
||||
+kamailio3-mod-maxfwd \
|
||||
+kamailio3-mod-mi-fifo \
|
||||
+kamailio3-mod-pv \
|
||||
+kamailio3-mod-registrar \
|
||||
+kamailio3-mod-rr \
|
||||
+kamailio3-mod-sl \
|
||||
+kamailio3-mod-siputils \
|
||||
+kamailio3-mod-textops \
|
||||
+kamailio3-mod-tm \
|
||||
+kamailio3-mod-uri-db \
|
||||
+kamailio3-mod-usrloc \
|
||||
+kamailio3-mod-xlog
|
||||
endef
|
||||
|
||||
define Package/kamailio3-example/conffiles
|
||||
/etc/default/kamailio
|
||||
/etc/kamailio/kamailio.cfg
|
||||
endef
|
||||
|
||||
define Package/kamailio3-tools
|
||||
$(call Package/kamailio3/Default)
|
||||
TITLE:=Kamailio3 control tools
|
||||
DEPENDS:=kamailio3 +bash
|
||||
endef
|
||||
|
||||
define Package/kamailio3-tools/conffiles
|
||||
/etc/kamailio/kamctlrc
|
||||
endef
|
||||
|
||||
define Package/kamailio3/install
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/sbin/kamailio \
|
||||
$(1)/usr/sbin/
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/sbin/sercmd \
|
||||
$(1)/usr/sbin/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/kamailio/modules
|
||||
$(INSTALL_DIR) $(1)/usr/lib/kamailio/modules_k
|
||||
$(INSTALL_DIR) $(1)/usr/lib/kamailio/modules_s
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/kamailio/lib*.so* \
|
||||
$(1)/usr/lib/kamailio/
|
||||
endef
|
||||
|
||||
define Package/kamailio3-example/install
|
||||
$(INSTALL_DIR) $(1)/etc/kamailio
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/etc/kamailio/kamailio.cfg \
|
||||
$(1)/etc/kamailio/
|
||||
$(SED) 's,$(PKG_INSTALL_DIR),,g' \
|
||||
$(1)/etc/kamailio/kamailio.cfg
|
||||
$(SED) 's,//lib/kamailio,/usr/lib/kamailio,g' \
|
||||
$(1)/etc/kamailio/kamailio.cfg
|
||||
$(INSTALL_DIR) $(1)/etc/default
|
||||
$(INSTALL_DATA) ./files/kamailio.default $(1)/etc/default/kamailio
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/kamailio.init $(1)/etc/init.d/kamailio
|
||||
endef
|
||||
|
||||
define Package/kamailio3-tools/install
|
||||
$(INSTALL_DIR) $(1)/etc/kamailio
|
||||
$(CP) \
|
||||
$(PKG_BUILD_DIR)/utils/kamctl/kamctlrc \
|
||||
$(1)/etc/kamailio/
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/sbin/kam{ctl,dbctl} \
|
||||
$(1)/usr/sbin/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/kamailio
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/kamailio/kamctl \
|
||||
$(1)/usr/lib/kamailio/
|
||||
endef
|
||||
|
||||
define BuildPlugin
|
||||
define Package/kamailio3-mod-$(1)
|
||||
$$(call Package/kamailio3/Default)
|
||||
TITLE:= kamailio3 $(3) module
|
||||
DEPENDS:=kamailio3 $$(foreach m,$(4),+kamailio3-mod-$$m) $(5)
|
||||
endef
|
||||
|
||||
define Package/kamailio3-mod-$(1)/install
|
||||
[ -z "$(2)" ] || $(INSTALL_DIR) $$(1)/usr/lib/kamailio/$(6)
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/kamailio/$(6)/$(2).so \
|
||||
$$(1)/usr/lib/kamailio/$(6)/ ;
|
||||
endef
|
||||
|
||||
INCL_MODULES+=$(2)
|
||||
KAM_MODULES+=kamailio3-mod-$(1)
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPlugin,acc,acc,Accounting,tm,,modules_k))
|
||||
$(eval $(call BuildPlugin,acc-radius,acc_radius,Accounting for RADIUS backend,acc,+libradiusclient-ng,modules_k))
|
||||
$(eval $(call BuildPlugin,alias-db,alias_db,Database-backend aliases,db-sqlite,,modules_k))
|
||||
$(eval $(call BuildPlugin,auth,auth,Authentication Framework,,,modules))
|
||||
$(eval $(call BuildPlugin,auth-db,auth_db,Database-backend authentication,auth db-sqlite,,modules_k))
|
||||
#$(eval $(call BuildPlugin,auth-diameter,auth_diameter,Diameter-backend authentication,sl,,modules_k))
|
||||
$(eval $(call BuildPlugin,auth-radius,auth_radius,RADIUS-backend authentication,auth,+libradiusclient-ng,modules_k))
|
||||
$(eval $(call BuildPlugin,avpops,avpops,AVP operation,,,modules))
|
||||
$(eval $(call BuildPlugin,benchmark,benchmark,Config benchmark,,,modules_k))
|
||||
#$(eval $(call BuildPlugin,carrierroute,carrierroute,Carrier Routing,,+libconfuse,modules))
|
||||
$(eval $(call BuildPlugin,cfgutils,cfgutils,Config utilities,,,modules_k))
|
||||
$(eval $(call BuildPlugin,cfg-db,cfg_db,Load core and module parameters from database,db-sqlite,,modules))
|
||||
$(eval $(call BuildPlugin,cfg-rpc,cfg_rpc,Update core and module parameters at runtime via RPC interface,,,modules))
|
||||
#$(eval $(call BuildPlugin,cpl-c,cpl-c,Call Processing language interpreter,tm sl usrloc,+libxml2,modules_k))
|
||||
$(eval $(call BuildPlugin,ctl,ctl,BINRPC transport interface,,,modules))
|
||||
#$(eval $(call BuildPlugin,db-berkeley,db_berkeley,Berkeley DB Database-backend,,,modules))
|
||||
$(eval $(call BuildPlugin,db-flatstore,db_flatstore,Fast writing-only text database-backed,,,modules))
|
||||
$(eval $(call BuildPlugin,db-mysql,db_mysql,MySQL database-backend,,+libmysqlclient,modules))
|
||||
#$(eval $(call BuildPlugin,db-oracle,db_oracle,Oracle Database-backend,,,modules_k))
|
||||
#$(eval $(call BuildPlugin,db-postgres,db_postgres,PostgreSQL Database-backend,,+libpq,modules))
|
||||
$(eval $(call BuildPlugin,db-sqlite,db_sqlite,Sqlite DB support,,+libsqlite3,modules_k))
|
||||
$(eval $(call BuildPlugin,db-text,db_text,Text database-backend,,,modules_k))
|
||||
$(eval $(call BuildPlugin,db-unixodbc,db_unixodbc,UnixODBC Database-backend,,+unixodbc,modules_k))
|
||||
$(eval $(call BuildPlugin,dialog,dialog,Dialog support,rr tm,,modules_k))
|
||||
$(eval $(call BuildPlugin,dialplan,dialplan,Dialplan management,,+libpcre,modules))
|
||||
$(eval $(call BuildPlugin,dispatcher,dispatcher,Dispatcher,,,modules_s))
|
||||
$(eval $(call BuildPlugin,diversion,diversion,Diversion header insertion,,,modules_s))
|
||||
$(eval $(call BuildPlugin,domain,domain,Multi-domain support,,,modules_k))
|
||||
$(eval $(call BuildPlugin,domainpolicy,domainpolicy,Domain policy,,,modules_k))
|
||||
$(eval $(call BuildPlugin,enum,enum,ENUM lookup,,,modules))
|
||||
$(eval $(call BuildPlugin,exec,exec,External exec,,,modules_k))
|
||||
$(eval $(call BuildPlugin,group,group,Database-backend user-groups,,,modules_k))
|
||||
$(eval $(call BuildPlugin,h350,h350,H.350,ldap,+libopenldap,modules_k))
|
||||
$(eval $(call BuildPlugin,htable,htable,Hash Table,,,modules_k))
|
||||
$(eval $(call BuildPlugin,imc,imc,IM conferencing,db-mysql tm,,modules_k))
|
||||
$(eval $(call BuildPlugin,ipops,ipops,IP and IPv6 operations module,,,modules))
|
||||
$(eval $(call BuildPlugin,kex,kex,Core extensions,,,modules_k))
|
||||
$(eval $(call BuildPlugin,lcr,lcr,Least Cost Routing,tm,+libpcre,modules))
|
||||
$(eval $(call BuildPlugin,ldap,ldap,LDAP connector,,+libopenldap,modules_k))
|
||||
$(eval $(call BuildPlugin,maxfwd,maxfwd,Max-Forward processor,,,modules_k))
|
||||
$(eval $(call BuildPlugin,mediaproxy,mediaproxy,Automatic NAT traversal,dialog,,modules))
|
||||
$(eval $(call BuildPlugin,mi-datagram,mi_datagram,Datagram support for Management Interface,,,modules_k))
|
||||
$(eval $(call BuildPlugin,mi-fifo,mi_fifo,FIFO support for Management Interface,,,modules_k))
|
||||
#$(eval $(call BuildPlugin,mi-xmlrpc,mi_xmlrpc,XML-RPC support for Management Interface,,+xmlrpc-c,modules_k))
|
||||
$(eval $(call BuildPlugin,mi-rpc,mi_rpc,RPC support for Management Interface,,,modules))
|
||||
$(eval $(call BuildPlugin,misc_radius,misc_radius,Generic RADIUS,,+libradiusclient-ng,modules_k))
|
||||
$(eval $(call BuildPlugin,msilo,msilo,SIP message silo,tm,,modules_k))
|
||||
$(eval $(call BuildPlugin,nat_traversal,nat_traversal,NAT traversal,dialog sl tm,,modules_k))
|
||||
$(eval $(call BuildPlugin,nathelper,nathelper,NAT traversal helper,,+rtpproxy,modules_k))
|
||||
#$(eval $(call BuildPlugin,osp,osp,OSP peering,auth rr sl tm textops,+libosp,modules_k))
|
||||
$(eval $(call BuildPlugin,path,path,SIP path insertion,rr,,modules_k))
|
||||
$(eval $(call BuildPlugin,pdt,pdt,Prefix-to-Domain translator,,,modules_k))
|
||||
$(eval $(call BuildPlugin,peering,peering,Perring,,+libradiusclient-ng,modules))
|
||||
#$(eval $(call BuildPlugin,perl,perl,Perl,sl,+perl,modules_k))
|
||||
#$(eval $(call BuildPlugin,perlvdb,perlvdb,Perl Virtual DB,perl,,modules_k))
|
||||
$(eval $(call BuildPlugin,permissions,permissions,Permissions control,,,modules_k))
|
||||
$(eval $(call BuildPlugin,pike,pike,Flood detector,,,modules_k))
|
||||
$(eval $(call BuildPlugin,presence,presence,Presence server,sl tm,+libxml2,modules_k))
|
||||
$(eval $(call BuildPlugin,presence-dialoginfo,presence_dialoginfo,Dialog Event presence,presence,,modules_k))
|
||||
$(eval $(call BuildPlugin,presence-mwi,presence_mwi,Message Waiting Indication presence,presence,,modules_k))
|
||||
$(eval $(call BuildPlugin,presence-xml,presence_xml,XCAP presence,presence xcap-client,,modules_k))
|
||||
$(eval $(call BuildPlugin,pua,pua,Presence User Agent,tm,+libxml2,modules_k))
|
||||
$(eval $(call BuildPlugin,pua-bla,pua_bla,Bridged Line Appearence PUA,presence pua usrloc,,modules_k))
|
||||
$(eval $(call BuildPlugin,pua-dialoginfo,pua_dialoginfo,Dialog Event PUA,dialog pua,,modules_k))
|
||||
$(eval $(call BuildPlugin,pua-mi,pua_mi,PUA Management Interface,pua,,modules_k))
|
||||
$(eval $(call BuildPlugin,pua-usrloc,pua_usrloc,PUA User Location,pua usrloc,,modules_k))
|
||||
$(eval $(call BuildPlugin,pua-xmpp,pua_xmpp,PUA XMPP,presence pua xmpp,,modules_k))
|
||||
#$(eval $(call BuildPlugin,purple,purple,Multi-protocol IM gateway,presence pua,+libpurple,modules_k))
|
||||
$(eval $(call BuildPlugin,pv,pv,Pseudo-Variables,,,modules_k))
|
||||
$(eval $(call BuildPlugin,qos,qos,QoS control,dialog,,modules_k))
|
||||
$(eval $(call BuildPlugin,ratelimit,ratelimit,Traffic shapping,,,modules))
|
||||
$(eval $(call BuildPlugin,regex,regex,Regular Expression,,+libpcre,modules_k))
|
||||
$(eval $(call BuildPlugin,registrar,registrar,SIP Registrar,usrloc,,modules_k))
|
||||
$(eval $(call BuildPlugin,rls,rls,Resource List Server,presence pua tm,+libxml2,modules_k))
|
||||
$(eval $(call BuildPlugin,rr,rr,Record-Route and Route,,,modules_k))
|
||||
$(eval $(call BuildPlugin,rtimer,rtimer,Routing Timer,,,modules_k))
|
||||
$(eval $(call BuildPlugin,sanity,sanity,SIP sanity checks,sl,,modules))
|
||||
#$(eval $(call BuildPlugin,seas,seas,SIP Express Application Server,tm,,modules_k))
|
||||
$(eval $(call BuildPlugin,sipcapture,sipcapture,SIP capture module,,,modules))
|
||||
$(eval $(call BuildPlugin,siptrace,siptrace,SIP trace,,,modules_k))
|
||||
$(eval $(call BuildPlugin,siputils,siputils,SIP utilities,sl,,modules_k))
|
||||
$(eval $(call BuildPlugin,sl,sl,Stateless replier,,,modules))
|
||||
$(eval $(call BuildPlugin,sms,sms,SIP-to-SMS IM gateway,tm,,modules))
|
||||
#$(eval $(call BuildPlugin,snmpstats,snmpstats,SNMP,presence usrloc,+libnetsnmp,modules_k))
|
||||
$(eval $(call BuildPlugin,speeddial,speeddial,Per-user speed-dial controller,,,modules_k))
|
||||
$(eval $(call BuildPlugin,sqlops,sqlops,SQL operations,,,modules_k))
|
||||
$(eval $(call BuildPlugin,statistics,statistics,Script statistics,,,modules_k))
|
||||
$(eval $(call BuildPlugin,sst,sst,SIP Session Timer,dialog sl,,modules_k))
|
||||
$(eval $(call BuildPlugin,textops,textops,Text operations,,,modules_k))
|
||||
$(eval $(call BuildPlugin,tls,tls,TLS operations,,+libopenssl,modules))
|
||||
$(eval $(call BuildPlugin,tm,tm,Transaction,,,modules))
|
||||
$(eval $(call BuildPlugin,tmx,tmx,Transaction module extensions,,,modules_k))
|
||||
$(eval $(call BuildPlugin,uac,uac,User Agent Client,tm,,modules_k))
|
||||
$(eval $(call BuildPlugin,uac-redirect,uac_redirect,User Agent Client redirection,tm,,modules_k))
|
||||
$(eval $(call BuildPlugin,uri-db,uri_db,Database-backend SIP URI checking,,,modules_k))
|
||||
$(eval $(call BuildPlugin,userblacklist,userblacklist,User blacklists,,,modules_k))
|
||||
$(eval $(call BuildPlugin,usrloc,usrloc,User location,,,modules_k))
|
||||
$(eval $(call BuildPlugin,utils,utils,Misc utilities,,+libcurl +libxml2,modules))
|
||||
$(eval $(call BuildPlugin,xcap-client,xcap_client,XCAP Client,,+libcurl,modules_k))
|
||||
$(eval $(call BuildPlugin,xlog,xlog,Advanced logger,,,modules_k))
|
||||
$(eval $(call BuildPlugin,xmpp,xmpp,SIP-to-XMPP Gateway,tm,+libexpat,modules_k))
|
||||
|
||||
PKG_MAKE_ARGS:= \
|
||||
cfg-dir="/etc/kamailio/" \
|
||||
bin-dir="/usr/sbin/" \
|
||||
data-dir="/var/lib/kamailio/" \
|
||||
lib-dir="/usr/lib/kamailio/" \
|
||||
modules-dir="/usr/lib/kamailio/modules/" \
|
||||
include_modules="$(INCL_MODULES)" \
|
||||
$(KAM3_EXTRA_ARGS) \
|
||||
TLS_HOOKS=1 extra_defs="-DUSE_PTHREAD_MUTEX " \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
ISSMP="no" \
|
||||
LOCALBASE="$(STAGING_DIR)/usr" \
|
||||
SYSBASE="$(STAGING_DIR)/usr" \
|
||||
PCREDEFS:="$(TARGET_CPPFLAGS)" \
|
||||
PCRELIBS:="$(TARGET_LDFLAGS)" \
|
||||
cfg_target:=/etc/kamailio/ \
|
||||
PREFIX:=/usr \
|
||||
prefix:=/usr quiet=verbose
|
||||
|
||||
define Build/Compile
|
||||
if ! [ -f $(PREBUILT_STAMP) ]; then echo $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
|
||||
CC="$(TARGET_CC)" \
|
||||
ARCH="$(ARCH)" \
|
||||
EXTRA_LIBS=-L$(STAGING_DIR)/usr/lib/ \
|
||||
all && touch $(PREBUILT_STAMP); \
|
||||
fi
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
|
||||
CC="$(TARGET_CC)" \
|
||||
ARCH="$(ARCH)" \
|
||||
DESTDIR=$(PKG_INSTALL_DIR) \
|
||||
prefix=/ \
|
||||
install-cfg
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
|
||||
CC="$(TARGET_CC)" \
|
||||
ARCH="$(ARCH)" \
|
||||
DESTDIR=$(PKG_INSTALL_DIR) \
|
||||
prefix=/usr \
|
||||
install-bin install-modules-all install-utils
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,kamailio3))
|
||||
$(eval $(call BuildPackage,kamailio3-example))
|
||||
$(eval $(call BuildPackage,kamailio3-tools))
|
||||
$(foreach m,$(KAM_MODULES),$(eval $(call BuildPackage,$(m))))
|
@ -1,13 +0,0 @@
|
||||
# OPTIONS
|
||||
# -n COUNT
|
||||
# Specifies the number of children processes forked per interface
|
||||
# -N COUNT
|
||||
# Specifies the number of children processes forked to handle tcp incoming connections
|
||||
# -m SIZE
|
||||
# Size of the shared memory which will be allocated (in Megabytes).
|
||||
# -u UID
|
||||
# Changes the user id under which
|
||||
# -g GID
|
||||
# Changes the group id under which
|
||||
|
||||
OPTIONS="-n 4 -m 4 - m 8"
|
@ -1,15 +0,0 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2012 OpenWrt.org
|
||||
START=99
|
||||
APP=kamailio
|
||||
BIN_FILE="/usr/sbin/"$APP
|
||||
PID_FILE="/var/run/"$APP".pid"
|
||||
|
||||
start() {
|
||||
start-stop-daemon -S -x $BIN_FILE -p $PID_FILE -b -m
|
||||
}
|
||||
|
||||
stop() {
|
||||
start-stop-daemon -K -x $BIN_FILE -p $PID_FILE -q
|
||||
rm -rf $PID_FILE
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
Index: kamailio3-3.3.0/modules_s/ldap/Makefile
|
||||
===================================================================
|
||||
--- kamailio3-3.3.0.orig/modules_s/ldap/Makefile 2012-08-14 17:14:01.000000000 +0200
|
||||
+++ kamailio3-3.3.0/modules_s/ldap/Makefile 2012-08-14 17:14:12.000000000 +0200
|
||||
@@ -14,7 +14,7 @@
|
||||
# LD_SCOPE_CHILDREN defined
|
||||
#DEFS += -DHAVE_SCOPE_CHILDREN
|
||||
|
||||
-LIBS=-L$(LOCALBASE)/lib -L /usr/lib -lldap
|
||||
+LIBS=-L$(LOCALBASE)/lib -lldap
|
||||
|
||||
DEFS+=-DSER_MOD_INTERFACE
|
||||
|
@ -1,51 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2006-2009 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=miax
|
||||
PKG_VERSION:=1.4
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=@SF/miax
|
||||
PKG_MD5SUM:=44f0d2ef46ee2697d890b7b96846adc7
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/miax
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=Telephony
|
||||
DEPENDS:=+libpthread +bluez-libs
|
||||
TITLE:=A console iax (asterisk) client
|
||||
URL:=http://www.eja.it/?l=en&n=miax
|
||||
endef
|
||||
|
||||
define Package/miax/description
|
||||
miax is a console iax (asterisk) client, it can work with
|
||||
a soundcard as a normal voip phone, taking input/output from
|
||||
keyboard, analog/gsm/isdn modem or bluetooth phones.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C "$(PKG_BUILD_DIR)" \
|
||||
CC="$(TARGET_CC)" \
|
||||
OFLAGS="$(TARGET_CFLAGS)" \
|
||||
CPPFLAGS="$(TARGET_CPPFLAGS)" \
|
||||
LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||
all
|
||||
endef
|
||||
|
||||
define Package/miax/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/miax $(1)/usr/bin/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,miax))
|
@ -1,24 +0,0 @@
|
||||
diff -ruN miax-1.4-old/Makefile miax-1.4-new/Makefile
|
||||
--- miax-1.4-old/Makefile 2005-04-27 18:56:13.000000000 +0200
|
||||
+++ miax-1.4-new/Makefile 2005-11-30 01:07:21.000000000 +0100
|
||||
@@ -1,4 +1,5 @@
|
||||
-CFLAGS= -Iiax/ -Igsm/inc -DIAXC_IAX2 -DLIBIAX -g -DPOSIXSLEEP -DLINUX -O2
|
||||
+OFLAGS= -02 -g
|
||||
+CFLAGS= -Iiax/ -Igsm/inc $(CPPFLAGS) -DIAXC_IAX2 -DLIBIAX -DPOSIXSLEEP -DLINUX $(OFLAGS)
|
||||
SYSLIBS=-lpthread -lm -lbluetooth
|
||||
|
||||
|
||||
@@ -32,11 +33,10 @@
|
||||
miax.o
|
||||
|
||||
all: $(OBJS)
|
||||
- gcc $(OBJS) $(CFLAGS) $(SYSLIBS) -o miax
|
||||
- cp miax /bin/miax
|
||||
+ $(CC) $(OBJS) $(CFLAGS) $(LDFLAGS) $(SYSLIBS) -o miax
|
||||
|
||||
static: $(OBJS) bluetooth.o
|
||||
- gcc $(OBJS) $(CFLAGS) $(SYSLIBS) -static -o miax
|
||||
+ $(CC) $(OBJS) $(CFLAGS) $(LDFLAGS) $(SYSLIBS) -static -o miax
|
||||
|
||||
clean:
|
||||
rm -f $(OBJS) miax
|
@ -1,339 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2006 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=openser
|
||||
PKG_VERSION:=1.0.1
|
||||
PKG_RELEASE:=1
|
||||
PKG_MD5SUM:=eebc16665003ee92daf96b216d6f9563
|
||||
# PKG_VARIANT:=-tls # for tls version
|
||||
PKG_VARIANT:=
|
||||
|
||||
PKG_SOURCE_URL:=http://openser.org/pub/openser/$(PKG_VERSION)/src
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)$(PKG_VARIANT)_src.tar.gz
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/openser
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=Telephony
|
||||
TITLE:=Configurable, free SIP server
|
||||
URL:=http://www.openser.org
|
||||
MENU:=1
|
||||
endef
|
||||
|
||||
define Package/openser/conffiles
|
||||
/etc/openser/openser.cfg
|
||||
endef
|
||||
|
||||
define Package/openser-mod-acc
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser +libradiusclient-ng
|
||||
TITLE:=Accounting support
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
define Package/openser-mod-auth
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser
|
||||
TITLE:=Authentication support
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
define Package/openser-mod-auth-db
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser
|
||||
TITLE:=Authentication with database support
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
define Package/openser-mod-auth-radius
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser +libradiusclient-ng
|
||||
TITLE:=Authentication with RADIUS support
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
define Package/openser-mod-avp-radius
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser +libradiusclient-ng
|
||||
TITLE:=AVP with RADIUS support
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
define Package/openser-mod-avpops
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser
|
||||
TITLE:=AVP options support
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
define Package/openser-mod-dispatcher
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser
|
||||
TITLE:=Dispatcher support
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
define Package/openser-mod-diversion
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser
|
||||
TITLE:=Diversion support
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
define Package/openser-mod-flatstore
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser
|
||||
TITLE:=Flatstore support
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
define Package/openser-mod-gflags
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser
|
||||
TITLE:=Gflags support
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
define Package/openser-mod-group
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser
|
||||
TITLE:=Group support
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
define Package/openser-mod-group-radius
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser +libradiusclient-ng
|
||||
TITLE:=Group with RADIUS support
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
define Package/openser-mod-lcr
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser openser-mod-mysql
|
||||
TITLE:=Least Cost Routing support
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
define Package/openser-mod-mediaproxy
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser
|
||||
TITLE:=Mediaproxy support
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
define Package/openser-mod-msilo
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser
|
||||
TITLE:=MSilo support
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
define Package/openser-mod-mysql
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser +libmysqlclient
|
||||
TITLE:=MySQL support
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
define Package/openser-mod-nathelper
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser
|
||||
TITLE:=NAT helper support
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
define Package/openser-mod-options
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser
|
||||
TITLE:=Options support
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
define Package/openser-mod-pdt
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser
|
||||
TITLE:=PDT support
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
define Package/openser-mod-permissions
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser
|
||||
TITLE:=Permissions support
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
define Package/openser-mod-pike
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser
|
||||
TITLE:=PIKE support
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
define Package/openser-mod-sms
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser
|
||||
TITLE:=SMS support
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
define Package/openser-mod-speeddial
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser
|
||||
TITLE:=Speeddial supporte
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
define Package/openser-mod-uac
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser
|
||||
TITLE:=UAC support
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
define Package/openser-mod-uac-redirect
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser
|
||||
TITLE:=UAC with redirect support
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
define Package/openser-mod-uri
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser
|
||||
TITLE:=URI support
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
define Package/openser-mod-uri-db
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser +openser-mod-mysql
|
||||
TITLE:=URI with database support
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
define Package/openser-mod-uri-radius
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser +libradiusclient-ng
|
||||
TITLE:=URI with RADIUS support
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
define Package/openser-mod-xlog
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=openser
|
||||
TITLE:=Advanced logging support
|
||||
SUBMENU:=Telephony
|
||||
endef
|
||||
|
||||
# Select here the modules for the ipk package
|
||||
OPENSER_MODULES := sl tm rr maxfwd usrloc registrar dbtext textops exec
|
||||
|
||||
OPENSER_MODULE_FILES := $(foreach module,$(OPENSER_MODULES),modules/$(module)/$(module).so)
|
||||
OPENSER_MODULES := $(patsubst %,modules/%,$(OPENSER_MODULES))
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
prefix=/ \
|
||||
extra_defs="-DUSE_PTHREAD_MUTEX " \
|
||||
CC="$(TARGET_CC)" \
|
||||
ARCH="$(ARCH)" \
|
||||
CFLAGS="$(TARGET_CFLAGS) $(FPIC)" \
|
||||
LOCALBASE="$(STAGING_DIR)/usr" \
|
||||
all utils/gen_ha1/gen_ha1
|
||||
endef
|
||||
|
||||
define Package/openser/install
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
|
||||
$(CP) $(PKG_BUILD_DIR)/utils/gen_ha1/gen_ha1 $(1)/usr/sbin/openser_gen_ha1
|
||||
$(CP) $(PKG_BUILD_DIR)/scripts/sc $(1)/usr/sbin/openserctl
|
||||
chmod 744 $(1)/usr/sbin/openserctl
|
||||
$(CP) $(PKG_BUILD_DIR)/scripts/sc.dbtext $(1)/usr/sbin/dbtextctl
|
||||
chmod 744 $(1)/usr/sbin/dbtextctl
|
||||
$(INSTALL_DIR) $(1)/usr/lib/openser/modules
|
||||
(cd $(PKG_BUILD_DIR);\
|
||||
$(CP) $(OPENSER_MODULE_FILES) $(1)/usr/lib/openser/modules/; \
|
||||
)
|
||||
$(INSTALL_DIR) $(1)/etc/openser
|
||||
$(CP) $(PKG_BUILD_DIR)/etc/openser.cfg $(1)/etc/openser/
|
||||
endef
|
||||
|
||||
define BuildPlugin
|
||||
define Package/$(1)/install
|
||||
[ -z "$(2)" ] || $(INSTALL_DIR) $$(1)/usr/lib/openser/modules/
|
||||
$(CP) $(PKG_BUILD_DIR)/modules/$(2)/$(2).so \
|
||||
$$(1)/usr/lib/openser/modules/ ;
|
||||
endef
|
||||
|
||||
$$(eval $$(call BuildPackage,$(1)))
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,openser))
|
||||
$(eval $(call BuildPlugin,openser-mod-acc,acc))
|
||||
$(eval $(call BuildPlugin,openser-mod-auth,auth))
|
||||
$(eval $(call BuildPlugin,openser-mod-auth-db,auth_db))
|
||||
$(eval $(call BuildPlugin,openser-mod-auth-radius,auth_radius))
|
||||
$(eval $(call BuildPlugin,openser-mod-avp-radius,avp_radius))
|
||||
$(eval $(call BuildPlugin,openser-mod-avpops,avpops))
|
||||
$(eval $(call BuildPlugin,openser-mod-dispatcher,dispatcher))
|
||||
$(eval $(call BuildPlugin,openser-mod-diversion,diversion))
|
||||
$(eval $(call BuildPlugin,openser-mod-flatstore,flatstore))
|
||||
$(eval $(call BuildPlugin,openser-mod-gflags,gflags))
|
||||
$(eval $(call BuildPlugin,openser-mod-group,group))
|
||||
$(eval $(call BuildPlugin,openser-mod-group-radius,group_radius))
|
||||
$(eval $(call BuildPlugin,openser-mod-lcr,lcr))
|
||||
$(eval $(call BuildPlugin,openser-mod-mediaproxy,mediaproxy))
|
||||
$(eval $(call BuildPlugin,openser-mod-msilo,msilo))
|
||||
$(eval $(call BuildPlugin,openser-mod-mysql,mysql))
|
||||
$(eval $(call BuildPlugin,openser-mod-nathelper,nathelper))
|
||||
$(eval $(call BuildPlugin,openser-mod-options,options))
|
||||
$(eval $(call BuildPlugin,openser-mod-pdt,pdt))
|
||||
$(eval $(call BuildPlugin,openser-mod-permissions,permissions))
|
||||
$(eval $(call BuildPlugin,openser-mod-pike,pike))
|
||||
$(eval $(call BuildPlugin,openser-mod-sms,sms))
|
||||
$(eval $(call BuildPlugin,openser-mod-speeddial,speeddial))
|
||||
$(eval $(call BuildPlugin,openser-mod-uac,uac))
|
||||
$(eval $(call BuildPlugin,openser-mod-uac-redirect,uac_redirect))
|
||||
$(eval $(call BuildPlugin,openser-mod-uri,uri))
|
||||
$(eval $(call BuildPlugin,openser-mod-uri-db,uri_db))
|
||||
$(eval $(call BuildPlugin,openser-mod-uri-radius,uri_radius))
|
||||
$(eval $(call BuildPlugin,openser-mod-xlog,xlog))
|
@ -1,33 +0,0 @@
|
||||
--- openser-1.0.0-tls.orig/etc/openser.cfg 2005-10-28 21:45:33.000000000 +0200
|
||||
+++ openser-1.0.0-tls/etc/openser.cfg 2006-01-07 01:39:01.077134312 +0100
|
||||
@@ -36,20 +36,20 @@
|
||||
# ------------------ module loading ----------------------------------
|
||||
|
||||
# Uncomment this if you want to use SQL database
|
||||
-#loadmodule "/usr/local/lib/openser/modules/mysql.so"
|
||||
+#loadmodule "/usr/lib/openser/modules/mysql.so"
|
||||
|
||||
-loadmodule "/usr/local/lib/openser/modules/sl.so"
|
||||
-loadmodule "/usr/local/lib/openser/modules/tm.so"
|
||||
-loadmodule "/usr/local/lib/openser/modules/rr.so"
|
||||
-loadmodule "/usr/local/lib/openser/modules/maxfwd.so"
|
||||
-loadmodule "/usr/local/lib/openser/modules/usrloc.so"
|
||||
-loadmodule "/usr/local/lib/openser/modules/registrar.so"
|
||||
-loadmodule "/usr/local/lib/openser/modules/textops.so"
|
||||
+loadmodule "/usr/lib/openser/modules/sl.so"
|
||||
+loadmodule "/usr/lib/openser/modules/tm.so"
|
||||
+loadmodule "/usr/lib/openser/modules/rr.so"
|
||||
+loadmodule "/usr/lib/openser/modules/maxfwd.so"
|
||||
+loadmodule "/usr/lib/openser/modules/usrloc.so"
|
||||
+loadmodule "/usr/lib/openser/modules/registrar.so"
|
||||
+loadmodule "/usr/lib/openser/modules/textops.so"
|
||||
|
||||
# Uncomment this if you want digest authentication
|
||||
# mysql.so must be loaded !
|
||||
-#loadmodule "/usr/local/lib/openser/modules/auth.so"
|
||||
-#loadmodule "/usr/local/lib/openser/modules/auth_db.so"
|
||||
+#loadmodule "/usr/lib/openser/modules/auth.so"
|
||||
+#loadmodule "/usr/lib/openser/modules/auth_db.so"
|
||||
|
||||
# ----------------- setting module-specific parameters ---------------
|
||||
|
@ -1,41 +0,0 @@
|
||||
--- openser-1.0.0-tls.orig/scripts/sc 2005-08-11 14:08:02.000000000 +0200
|
||||
+++ openser-1.0.0-tls/scripts/sc 2006-01-29 02:18:43.319054456 +0100
|
||||
@@ -48,11 +48,15 @@
|
||||
STARTOPTIONS= # for example -dddd
|
||||
fi
|
||||
if [ -z "$DIR" ] ; then
|
||||
- DIR=`dirname $0`
|
||||
+ DIR=/usr/sbin
|
||||
fi
|
||||
if [ -z "$SERBIN" ] ; then
|
||||
SERBIN=$DIR/openser
|
||||
fi
|
||||
+if [ -z "$SIP_DOMAIN" ] ; then
|
||||
+ SIP_DOMAIN=$(nvram get sip_domain)
|
||||
+fi
|
||||
+
|
||||
|
||||
##### ----------------------------------------------- #####
|
||||
### openser's FIFO server
|
||||
@@ -415,7 +419,7 @@
|
||||
fi
|
||||
|
||||
if [ -z "$SERDOMAIN" ] ; then
|
||||
- echo "domain unknown: use usernames with domain or set default domain in SIP_DOMAIN"
|
||||
+ echo "domain unknown: use usernames with domain or set default domain in SIP_DOMAIN (with 'nvram set sip_domain=YOUR_SIP_DOMAIN')"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
@@ -671,11 +675,7 @@
|
||||
set_user $2
|
||||
fifo_cmd ul_show_contact $USRLOC_TABLE "$SERUSER@$SERDOMAIN"
|
||||
elif [ $# -eq 1 ] ; then
|
||||
- printf "Dumping all contacts may take long: are you sure you want to proceed? [Y|N] " > /dev/stderr
|
||||
- read answer
|
||||
- if [ "$answer" = "y" -o "$answer" = "Y" ] ; then
|
||||
- fifo_cmd ul_dump
|
||||
- fi
|
||||
+ fifo_cmd ul_dump
|
||||
else
|
||||
echo "wrong number of params for usrloc show"
|
||||
usage
|
@ -1,71 +0,0 @@
|
||||
--- openser-1.0.0-tls.orig/Makefile.defs 2005-10-28 18:32:39.000000000 +0200
|
||||
+++ openser-1.0.0-tls/Makefile.defs 2006-01-15 23:40:18.391547040 +0100
|
||||
@@ -917,7 +917,7 @@
|
||||
endif
|
||||
YACC_FLAGS=-d -b cfg
|
||||
# on solaris add -lxnet (e.g. LIBS= -lxnet)
|
||||
-LIBS= -lfl -ldl -lresolv
|
||||
+LIBS= -ldl -lresolv
|
||||
|
||||
|
||||
#os specific stuff
|
||||
@@ -955,7 +955,7 @@
|
||||
endif
|
||||
OLD_SOLARIS= $(shell echo "$(OSREL)" | \
|
||||
sed -e 's/^5\.[0-6][^0-9]*$$/yes/' )
|
||||
- LIBS+= -L$(LOCALBASE)/lib -lfl -lxnet -lnsl
|
||||
+ LIBS+= -L$(LOCALBASE)/lib -lxnet -lnsl
|
||||
ifeq ($(OLD_SOLARIS), yes)
|
||||
LIBS+=-lposix4
|
||||
else
|
||||
@@ -970,9 +970,9 @@
|
||||
ifneq ($(found_lock_method), yes)
|
||||
DEFS+= -DUSE_PTHREAD_MUTEX # try pthread sems
|
||||
found_lock_method=yes
|
||||
- LIBS= -pthread -lfl #dlopen is in libc
|
||||
+ LIBS= -pthread #dlopen is in libc
|
||||
else
|
||||
- LIBS= -lfl #dlopen is in libc
|
||||
+ LIBS= #dlopen is in libc
|
||||
endif
|
||||
YACC=yacc
|
||||
endif
|
||||
@@ -987,7 +987,7 @@
|
||||
# (symbols on openbsd are prefixed by "_")
|
||||
YACC=yacc
|
||||
# no sched_yield on openbsd unless linking with c_r (not recommended)
|
||||
- LIBS= -lfl
|
||||
+ LIBS=
|
||||
OPENBSD_IS_AOUT= $(shell echo "$(OSREL)" | \
|
||||
sed -e 's/^3\.[0-3][^0-9]*$$/yes/' |sed -e 's/^[0-2]\..*/yes/')
|
||||
# exception: on sparc openbsd 3.2 is elf and not aout
|
||||
@@ -1014,7 +1014,7 @@
|
||||
found_lock_method=yes
|
||||
endif
|
||||
YACC=yacc
|
||||
- LIBS= -lfl
|
||||
+ LIBS=
|
||||
endif
|
||||
|
||||
# OS X support, same as freebsd
|
||||
@@ -1028,9 +1028,9 @@
|
||||
ifneq ($(found_lock_method), yes)
|
||||
DEFS+= -DUSE_PTHREAD_MUTEX # try pthread sems
|
||||
found_lock_method=yes
|
||||
- LIBS= -pthread -lfl -lresolv #dlopen is in libc
|
||||
+ LIBS= -pthread -lresolv #dlopen is in libc
|
||||
else
|
||||
- LIBS= -lfl -lresolv #dlopen is in libc
|
||||
+ LIBS= -lresolv #dlopen is in libc
|
||||
endif
|
||||
LDFLAGS= # darwin doesn't like -O2 or -E
|
||||
MOD_LDFLAGS= -bundle -bundle_loader ../../$(MAIN_NAME)
|
||||
@@ -1047,7 +1047,7 @@
|
||||
|
||||
#add libssl if needed
|
||||
ifneq ($(TLS),)
|
||||
-DEFS+= -I$(LOCALBASE)/ssl/include
|
||||
+DEFS+= -I$(LOCALBASE)/include
|
||||
LIBS+= -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib -lssl -lcrypto
|
||||
endif
|
||||
|
@ -1,13 +0,0 @@
|
||||
--- openser-1.0.0-tls.orig/cfg.lex 2005-09-02 17:34:41.000000000 +0200
|
||||
+++ openser-1.0.0-tls/cfg.lex 2006-01-05 01:34:50.279630928 +0100
|
||||
@@ -85,6 +85,10 @@
|
||||
static char* addstr(struct str_buf *, char*, int);
|
||||
static void count();
|
||||
|
||||
+ int yywrap(void)
|
||||
+ {
|
||||
+ return 1;
|
||||
+ }
|
||||
|
||||
%}
|
||||
|
@ -1,33 +0,0 @@
|
||||
--- openser-1.0.0-tls.orig/config.h 2005-08-23 19:31:12.000000000 +0200
|
||||
+++ openser-1.0.0-tls/config.h 2006-01-05 01:42:14.101159800 +0100
|
||||
@@ -48,7 +48,7 @@
|
||||
#define MAX_LISTEN 16
|
||||
|
||||
/* default number of child processes started */
|
||||
-#define CHILD_NO 8
|
||||
+#define CHILD_NO 4
|
||||
|
||||
#define RT_NO 40 /* routing tables number */
|
||||
#define FAILURE_RT_NO RT_NO /* on_failure routing tables number */
|
||||
@@ -68,10 +68,10 @@
|
||||
#define CONTENT_LENGTH "Content-Length: "
|
||||
#define CONTENT_LENGTH_LEN (sizeof(CONTENT_LENGTH)-1)
|
||||
|
||||
-#define USER_AGENT "User-Agent: OpenSer (" VERSION " (" ARCH "/" OS"))"
|
||||
+#define USER_AGENT "User-Agent: OpenSer " VERSION " (boozy.milkfish.org)"
|
||||
#define USER_AGENT_LEN (sizeof(USER_AGENT)-1)
|
||||
|
||||
-#define SERVER_HDR "Server: OpenSer (" VERSION " (" ARCH "/" OS"))"
|
||||
+#define SERVER_HDR "Server: OpenSer " VERSION " (boozy.milkfish.org)"
|
||||
#define SERVER_HDR_LEN (sizeof(SERVER_HDR)-1)
|
||||
|
||||
#define MAX_WARNING_LEN 256
|
||||
@@ -113,7 +113,7 @@
|
||||
#define PKG_MEM_POOL_SIZE 1024*1024
|
||||
|
||||
/*used if SH_MEM is defined*/
|
||||
-#define SHM_MEM_SIZE 32
|
||||
+#define SHM_MEM_SIZE 8
|
||||
|
||||
#define TIMER_TICK 1
|
||||
|
@ -1,22 +0,0 @@
|
||||
--- openser-1.0.0-tls.orig/scripts/sc.dbtext 2005-07-29 21:05:36.000000000 +0200
|
||||
+++ openser-1.0.0-tls/scripts/sc.dbtext 2006-01-29 02:30:31.795349688 +0100
|
||||
@@ -62,6 +62,10 @@
|
||||
##### ----------------------------------------------- #####
|
||||
#### table names
|
||||
|
||||
+if [ -z "$SIP_DOMAIN" ] ; then
|
||||
+ SIP_DOMAIN=$(nvram get sip_domain)
|
||||
+fi
|
||||
+
|
||||
# UsrLoc Table
|
||||
if [ -z "$UL_TABLE" ] ; then
|
||||
UL_TABLE=location
|
||||
@@ -247,7 +251,7 @@
|
||||
fi
|
||||
|
||||
if [ -z "$SERDOMAIN" ] ; then
|
||||
- echo -e "\nDomain unknown: use usernames with domain or set default domain in SIP_DOMAIN\n"
|
||||
+ echo -e "\nDomain unknown: use usernames with domain or set default domain in SIP_DOMAIN (with 'nvram set sip_domain=YOUR_SIP_DOMAIN')\n"
|
||||
exit 1
|
||||
fi
|
||||
}
|
@ -1,57 +0,0 @@
|
||||
--- openser-1.0.1/Makefile 2006-02-15 20:52:21.000000000 +0100
|
||||
+++ openser-1.0.1.new/Makefile 2006-03-17 11:01:27.417488936 +0100
|
||||
@@ -46,8 +46,7 @@
|
||||
skip_modules?=
|
||||
|
||||
# if not set on the cmd. line or the env, exclude this modules:
|
||||
-exclude_modules?= jabber cpl-c pa postgres mysql \
|
||||
- avp_radius auth_radius group_radius uri_radius
|
||||
+exclude_modules?= jabber cpl-c pa postgres
|
||||
# always exclude the CVS dir
|
||||
override exclude_modules+= CVS $(skip_modules)
|
||||
|
||||
diff -urN openser-1.0.1/modules/acc/Makefile openser-1.0.1.new/modules/acc/Makefile
|
||||
--- openser-1.0.1/modules/acc/Makefile 2005-09-05 21:32:02.000000000 +0200
|
||||
+++ openser-1.0.1.new/modules/acc/Makefile 2006-03-17 10:38:14.333269928 +0100
|
||||
@@ -14,8 +14,8 @@
|
||||
DEFS+=-DSQL_ACC
|
||||
|
||||
# uncomment the next two lines if you wish to enable RADIUS accounting
|
||||
-#DEFS+=-DRAD_ACC -I$(LOCALBASE)/include
|
||||
-#LIBS=-L$(LOCALBASE)/lib -lradiusclient-ng
|
||||
+DEFS+=-DRAD_ACC -I$(LOCALBASE)/include
|
||||
+LIBS=-L$(LOCALBASE)/lib -lradiusclient-ng
|
||||
|
||||
# uncomment the next two lines if you wish to enable DIAMETER accounting
|
||||
#DEFS+=-DDIAM_ACC
|
||||
diff -urN openser-1.0.1/modules/mysql/Makefile openser-1.0.1.new/modules/mysql/Makefile
|
||||
--- openser-1.0.1/modules/mysql/Makefile 2005-06-13 18:47:40.000000000 +0200
|
||||
+++ openser-1.0.1.new/modules/mysql/Makefile 2006-03-17 11:12:16.218856136 +0100
|
||||
@@ -9,14 +9,12 @@
|
||||
# mysql.h locations (freebsd,openbsd solaris)
|
||||
DEFS +=-I$(LOCALBASE)/include -I$(LOCALBASE)/include/mysql \
|
||||
-I$(LOCALBASE)/mysql/include \
|
||||
- -I/usr/include/mysql
|
||||
|
||||
# libmysqlclient locations on RH/Suse, Solaris /OpenBSD, FreeBSD
|
||||
# (Debian does the right thing and puts it in /usr/lib)
|
||||
LIBS=-L/usr/lib/mysql -L$(LOCALBASE)/lib -L$(LOCALBASE)/lib/mysql \
|
||||
-L$(LOCALBASE)/mysql/lib/mysql/ \
|
||||
-L$(LOCALBASE)/mysql/lib \
|
||||
- -L/usr/lib64/mysql \
|
||||
-lmysqlclient -lz
|
||||
|
||||
include ../../Makefile.modules
|
||||
diff -urN openser-1.0.1/modules/postgres/Makefile openser-1.0.1.new/modules/postgres/Makefile
|
||||
--- openser-1.0.1/modules/postgres/Makefile 2005-07-01 16:52:34.000000000 +0200
|
||||
+++ openser-1.0.1.new/modules/postgres/Makefile 2006-03-17 11:13:22.150832952 +0100
|
||||
@@ -7,8 +7,7 @@
|
||||
NAME=postgres.so
|
||||
|
||||
# libpq-fe.h locations
|
||||
-DEFS +=-I$(LOCALBASE)/include -I$(LOCALBASE)/pgsql/include \
|
||||
- -I/usr/include/postgresql -I/usr/include/postgresql/8.0
|
||||
+DEFS +=-I$(LOCALBASE)/include -I$(LOCALBASE)/pgsql/include -I$(LOCALBASE)/include/postgresql
|
||||
LIBS=-L$(LOCALBASE)/lib -L$(LOCALBASE)/pgsql/lib -L$(LOCALBASE)/lib/pgsql \
|
||||
-lpq
|
||||
|
@ -1,272 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2009 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=opensips
|
||||
PKG_VERSION:=1.5.3
|
||||
PKG_RELEASE:=1
|
||||
PKG_VARIANT:=-tls
|
||||
|
||||
PKG_SOURCE_URL:=http://opensips.org/pub/opensips/$(PKG_VERSION)/src
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)$(PKG_VARIANT)_src.tar.gz
|
||||
PKG_MD5SUM:=8a03167420c31da15405bed7630ed3e2
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)$(PKG_VARIANT)
|
||||
|
||||
PKG_BUILD_DEPENDS:=curl expat libxml2 mysql openldap openssl pcre postgresql radiusclient-ng
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
TARGET_CFLAGS += $(FPIC)
|
||||
|
||||
define Package/opensips/Default
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=Telephony
|
||||
URL:=http://www.opensips.org/
|
||||
endef
|
||||
|
||||
|
||||
define Package/opensips
|
||||
$(call Package/opensips/Default)
|
||||
TITLE:=Open SIP Server
|
||||
MENU:=1
|
||||
endef
|
||||
|
||||
define Package/opensips-example
|
||||
$(call Package/opensips/Default)
|
||||
TITLE:=OpenSIPS example config
|
||||
DEPENDS:=opensips \
|
||||
+opensips-mod-acc \
|
||||
+opensips-mod-maxfwd \
|
||||
+opensips-mod-mi-fifo \
|
||||
+opensips-mod-registrar \
|
||||
+opensips-mod-rr \
|
||||
+opensips-mod-signaling \
|
||||
+opensips-mod-sl \
|
||||
+opensips-mod-textops \
|
||||
+opensips-mod-tm \
|
||||
+opensips-mod-uri \
|
||||
+opensips-mod-uri-db \
|
||||
+opensips-mod-usrloc \
|
||||
+opensips-mod-xlog
|
||||
endef
|
||||
|
||||
define Package/opensips-example/conffiles
|
||||
/etc/default/opensips
|
||||
/etc/opensips/opensips.cfg
|
||||
endef
|
||||
|
||||
|
||||
define Package/opensips-tools
|
||||
$(call Package/opensips/Default)
|
||||
TITLE:=OpenSIPS control tools
|
||||
DEPENDS:=opensips
|
||||
endef
|
||||
|
||||
define Package/opensips-tools/conffiles
|
||||
/etc/opensips/opensipsctlrc
|
||||
endef
|
||||
|
||||
|
||||
PKG_EXCL_MODULES:= \
|
||||
auth_diameter \
|
||||
carrierroute \
|
||||
db_berkeley \
|
||||
db_oracle \
|
||||
db_unixodbc \
|
||||
mediaproxy \
|
||||
mi_xmlrpc \
|
||||
mmgeoip \
|
||||
osp \
|
||||
perl \
|
||||
perlvdb \
|
||||
snmpstats \
|
||||
|
||||
PKG_MAKE_ARGS:= \
|
||||
cfg-dir="etc/opensips/" \
|
||||
bin-dir="usr/sbin/" \
|
||||
data-dir="var/lib/opensips/" \
|
||||
lib-dir="usr/lib/opensips/" \
|
||||
modules-dir="usr/lib/opensips/modules/" \
|
||||
exclude_modules="$(PKG_EXCL_MODULES)" \
|
||||
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
|
||||
prefix=/ \
|
||||
extra_defs="-DUSE_PTHREAD_MUTEX " \
|
||||
CC="$(TARGET_CC)" \
|
||||
ARCH="$(ARCH)" \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
ISSMP="no" \
|
||||
LOCALBASE="$(STAGING_DIR)/usr" \
|
||||
SYSBASE="$(STAGING_DIR)/usr" \
|
||||
PCRECFG= \
|
||||
all
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
|
||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||
install
|
||||
endef
|
||||
|
||||
define Package/opensips/install
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/sbin/opensips \
|
||||
$(1)/usr/sbin/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/opensips/modules
|
||||
endef
|
||||
|
||||
define Package/opensips-example/install
|
||||
$(INSTALL_DIR) $(1)/etc/opensips
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/etc/opensips/opensips.cfg \
|
||||
$(1)/etc/opensips/
|
||||
$(SED) 's,$(PKG_INSTALL_DIR),,g' \
|
||||
$(1)/etc/opensips/opensips.cfg
|
||||
$(INSTALL_DIR) $(1)/etc/default
|
||||
$(INSTALL_DATA) ./files/opensips.default $(1)/etc/default/opensips
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/opensips.init $(1)/etc/init.d/opensips
|
||||
endef
|
||||
|
||||
define Package/opensips-tools/install
|
||||
$(INSTALL_DIR) $(1)/etc/opensips
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/etc/opensips/opensipsctlrc \
|
||||
$(1)/etc/opensips/
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/sbin/opensips{ctl,dbctl,unix} \
|
||||
$(1)/usr/sbin/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/opensips
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/opensips/opensipsctl \
|
||||
$(1)/usr/lib/opensips/
|
||||
$(SED) 's,/bin/bash,/bin/sh,g' \
|
||||
-e 's,$(PKG_INSTALL_DIR),,g' \
|
||||
$(1)/usr/sbin/opensips{ctl,dbctl}
|
||||
endef
|
||||
|
||||
define BuildPlugin
|
||||
define Package/opensips-mod-$(1)
|
||||
$$(call Package/opensips/Default)
|
||||
TITLE:= OpenSIPS $(3) module
|
||||
DEPENDS:=opensips $$(foreach m,$(4),+opensips-mod-$$m) $(5)
|
||||
endef
|
||||
|
||||
define Package/opensips-mod-$(1)/install
|
||||
[ -z "$(2)" ] || $(INSTALL_DIR) $$(1)/usr/lib/opensips/modules/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/opensips/modules/$(2).so \
|
||||
$$(1)/usr/lib/opensips/modules/ ;
|
||||
endef
|
||||
|
||||
$$(eval $$(call BuildPackage,opensips-mod-$(1)))
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,opensips))
|
||||
$(eval $(call BuildPackage,opensips-example))
|
||||
$(eval $(call BuildPackage,opensips-tools))
|
||||
$(eval $(call BuildPlugin,acc,acc,Accounting,tm,))
|
||||
$(eval $(call BuildPlugin,alias-db,alias_db,Database-backend aliases,,))
|
||||
$(eval $(call BuildPlugin,auth,auth,Authentication Framework,signaling,))
|
||||
$(eval $(call BuildPlugin,auth-db,auth_db,Database-backend authentication,auth,))
|
||||
$(eval $(call BuildPlugin,auth-radius,auth_radius,RADIUS-backend authentication,auth,+libradiusclient-ng))
|
||||
$(eval $(call BuildPlugin,avp-radius,avp_radius,RADIUS-backend for AVP loading,,+libradiusclient-ng))
|
||||
$(eval $(call BuildPlugin,avpops,avpops,AVP operation,,))
|
||||
$(eval $(call BuildPlugin,benchmark,benchmark,Config benchmark,,))
|
||||
$(eval $(call BuildPlugin,call-control,call_control,Prepair application,dialog,))
|
||||
#$(eval $(call BuildPlugin,carrierroute,carrierroute,Carrier Routing,,+libconfuse))
|
||||
$(eval $(call BuildPlugin,cfgutils,cfgutils,Config utilities,,))
|
||||
$(eval $(call BuildPlugin,closeddial,closeddial,PBX-like features,,))
|
||||
$(eval $(call BuildPlugin,cpl-c,cpl-c,Call Processing language interpreter,tm sl usrloc,+libxml2))
|
||||
#$(eval $(call BuildPlugin,db-berkeley,db_berkeley,Berkeley DB Database-backend,,))
|
||||
$(eval $(call BuildPlugin,db-flatstore,db_flatstore,Fast writing-only text database-backed,,))
|
||||
$(eval $(call BuildPlugin,db-mysql,db_mysql,MySQL database-backend,,+libmysqlclient))
|
||||
#$(eval $(call BuildPlugin,db-oracle,db_oracle,Oracle Database-backend,,))
|
||||
$(eval $(call BuildPlugin,db-postgres,db_postgres,PostgreSQL Database-backend,,+libpq))
|
||||
$(eval $(call BuildPlugin,db-text,db_text,Text database-backend,,))
|
||||
#$(eval $(call BuildPlugin,db-unixodbc,db_unixodbc,UnixODBC Database-backend,,))
|
||||
$(eval $(call BuildPlugin,dialog,dialog,Dialog support,rr tm,))
|
||||
$(eval $(call BuildPlugin,dialplan,dialplan,Dialplan management,,))
|
||||
$(eval $(call BuildPlugin,dispatcher,dispatcher,Dispatcher,,))
|
||||
$(eval $(call BuildPlugin,diversion,diversion,Diversion header insertion,,))
|
||||
$(eval $(call BuildPlugin,domain,domain,Multi-domain support,,))
|
||||
$(eval $(call BuildPlugin,domainpolicy,domainpolicy,Domain policy,,))
|
||||
$(eval $(call BuildPlugin,drouting,drouting,Dynaming routing,,))
|
||||
$(eval $(call BuildPlugin,enum,enum,ENUM lookup,,))
|
||||
$(eval $(call BuildPlugin,exec,exec,External exec,,))
|
||||
$(eval $(call BuildPlugin,gflags,gflags,Global shared flags,,))
|
||||
$(eval $(call BuildPlugin,group,group,Database-backend user-groups,,))
|
||||
$(eval $(call BuildPlugin,group-radius,group_radius,RADIUS-backend user-groups,,+libradiusclient-ng))
|
||||
$(eval $(call BuildPlugin,h350,h350,H.350,ldap,+libopenldap))
|
||||
$(eval $(call BuildPlugin,identity,identity,Identity,,+libopenssl))
|
||||
$(eval $(call BuildPlugin,imc,imc,IM conferencing,db-mysql tm,))
|
||||
$(eval $(call BuildPlugin,jabber,jabber,Jabber,tm,+libexpat))
|
||||
$(eval $(call BuildPlugin,lcr,lcr,Least Cost Routing,tm,))
|
||||
$(eval $(call BuildPlugin,ldap,ldap,LDAP connector,,+libopenldap))
|
||||
$(eval $(call BuildPlugin,load_balancer,load_balancer,Load balancer,dialog,))
|
||||
$(eval $(call BuildPlugin,localcache,localcache,Local cache,,))
|
||||
$(eval $(call BuildPlugin,mangler,mangler,SIP mangler,,))
|
||||
$(eval $(call BuildPlugin,maxfwd,maxfwd,Max-Forward processor,,))
|
||||
$(eval $(call BuildPlugin,mi-datagram,mi_datagram,Datagram support for Management Interface,,))
|
||||
$(eval $(call BuildPlugin,mi-fifo,mi_fifo,FIFO support for Management Interface,,))
|
||||
#$(eval $(call BuildPlugin,mi-xmlrpc,mi_xmlrpc,XML-RPC support for Management Interface,,+xmlrpc-c))
|
||||
#$(eval $(call BuildPlugin,mediaproxy,mediaproxy,NAT traversal,,+mediaproxy))
|
||||
#$(eval $(call BuildPlugin,mmgeoip,mmgeoip,MaxMind GeoIP,,+libgeoip))
|
||||
$(eval $(call BuildPlugin,msilo,msilo,SIP message silo,tm,))
|
||||
$(eval $(call BuildPlugin,nat_traversal,nat_traversal,NAT traversal,dialog sl tm,))
|
||||
$(eval $(call BuildPlugin,nathelper,nathelper,NAT traversal helper,,+rtpproxy))
|
||||
$(eval $(call BuildPlugin,options,options,OPTIONS server replier,sl,))
|
||||
#$(eval $(call BuildPlugin,osp,osp,OSP peering,auth rr sl tm textops,+libosp))
|
||||
$(eval $(call BuildPlugin,path,path,SIP path insertion,rr,))
|
||||
$(eval $(call BuildPlugin,pdt,pdt,Prefix-to-Domain translator,,))
|
||||
$(eval $(call BuildPlugin,peering,peering,Perring,,+libradiusclient-ng))
|
||||
#$(eval $(call BuildPlugin,perl,perl,Perl,sl,+perl))
|
||||
#$(eval $(call BuildPlugin,perlvdb,perlvdb,Perl Virtual DB,perl,))
|
||||
$(eval $(call BuildPlugin,permissions,permissions,Permissions control,,))
|
||||
$(eval $(call BuildPlugin,pike,pike,Flood detector,,))
|
||||
$(eval $(call BuildPlugin,presence,presence,Presence server,signaling,+libxml2))
|
||||
$(eval $(call BuildPlugin,presence-dialoginfo,presence_dialoginfo,Dialog Event presence,presence,))
|
||||
$(eval $(call BuildPlugin,presence-mwi,presence_mwi,Message Waiting Indication presence,presence,))
|
||||
$(eval $(call BuildPlugin,presence-xcapdiff,presence_xcapdiff,XCAP-Diff presence,presence pua,))
|
||||
$(eval $(call BuildPlugin,presence-xml,presence_xml,XCAP presence,presence xcap-client,))
|
||||
$(eval $(call BuildPlugin,pua,pua,Presence User Agent,tm,+libxml2))
|
||||
$(eval $(call BuildPlugin,pua-bla,pua_bla,Bridged Line Appearence PUA,presence pua usrloc,))
|
||||
$(eval $(call BuildPlugin,pua-dialoginfo,pua_dialoginfo,Dialog Event PUA,dialog pua,))
|
||||
$(eval $(call BuildPlugin,pua-mi,pua_mi,PUA Management Interface,pua,))
|
||||
$(eval $(call BuildPlugin,pua-usrloc,pua_usrloc,PUA User Location,pua usrloc,))
|
||||
$(eval $(call BuildPlugin,pua-xmpp,pua_xmpp,PUA XMPP,presence pua xmpp,))
|
||||
$(eval $(call BuildPlugin,qos,qos,QoS control,dialog,))
|
||||
$(eval $(call BuildPlugin,ratelimit,ratelimit,Traffic shapping,,))
|
||||
$(eval $(call BuildPlugin,regex,regex,Regular Expression,,+libpcre))
|
||||
$(eval $(call BuildPlugin,registrar,registrar,SIP Registrar,signaling usrloc,))
|
||||
$(eval $(call BuildPlugin,rls,rls,Resource List Server,presence pua signaling tm,+libxml2))
|
||||
$(eval $(call BuildPlugin,rr,rr,Record-Route and Route,,))
|
||||
$(eval $(call BuildPlugin,seas,seas,SIP Express Application Server,tm,))
|
||||
$(eval $(call BuildPlugin,signaling,signaling,Signaling,sl tm,))
|
||||
$(eval $(call BuildPlugin,siptrace,siptrace,SIP trace,,))
|
||||
$(eval $(call BuildPlugin,sl,sl,Stateless replier,,))
|
||||
$(eval $(call BuildPlugin,sms,sms,SIP-to-SMS IM gateway,tm,))
|
||||
#$(eval $(call BuildPlugin,snmpstats,snmpstats,SNMP,presence usrloc,+libnetsnmp))
|
||||
$(eval $(call BuildPlugin,speeddial,speeddial,Per-user speed-dial controller,,))
|
||||
$(eval $(call BuildPlugin,statistics,statistics,Script statistics,,))
|
||||
$(eval $(call BuildPlugin,sst,sst,SIP Session Timer,dialog sl,))
|
||||
$(eval $(call BuildPlugin,textops,textops,Text operations,,))
|
||||
$(eval $(call BuildPlugin,tlsops,tlsops,TLS operations,,+libopenssl))
|
||||
$(eval $(call BuildPlugin,tm,tm,Transaction,,))
|
||||
$(eval $(call BuildPlugin,uac,uac,User Agent Client,tm,))
|
||||
$(eval $(call BuildPlugin,uac-redirect,uac_redirect,User Agent Client redirection,tm,))
|
||||
$(eval $(call BuildPlugin,uri,uri,Generic URI operation,,))
|
||||
$(eval $(call BuildPlugin,uri-db,uri_db,Database-backend SIP URI checking,,))
|
||||
$(eval $(call BuildPlugin,uri-radius,uri_radius,RADIUS-backend SIP URI checking,,+libradiusclient-ng))
|
||||
$(eval $(call BuildPlugin,userblacklist,userblacklist,User blacklists,,))
|
||||
$(eval $(call BuildPlugin,usrloc,usrloc,User location,,))
|
||||
$(eval $(call BuildPlugin,xcap-client,xcap_client,XCAP Client,,+libcurl +libxml2))
|
||||
$(eval $(call BuildPlugin,xlog,xlog,Advanced logger,,))
|
||||
$(eval $(call BuildPlugin,xmpp,xmpp,SIP-to-XMPP Gateway,tm,+libexpat))
|
@ -1,13 +0,0 @@
|
||||
# OPTIONS
|
||||
# -n COUNT
|
||||
# Specifies the number of children processes forked per interface
|
||||
# -N COUNT
|
||||
# Specifies the number of children processes forked to handle tcp incoming connections
|
||||
# -m SIZE
|
||||
# Size of the shared memory which will be allocated (in Megabytes).
|
||||
# -u UID
|
||||
# Changes the user id under which
|
||||
# -g GID
|
||||
# Changes the group id under which
|
||||
|
||||
OPTIONS="-n 4 -m 4 - m 8"
|
@ -1,19 +0,0 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2009 OpenWrt.org
|
||||
START=50
|
||||
|
||||
BIN=opensips
|
||||
DEFAULT=/etc/default/$BIN
|
||||
RUN_D=/var/run
|
||||
PID_F=$RUN_D/$BIN.pid
|
||||
|
||||
start() {
|
||||
[ -f $DEFAULT ] && . $DEFAULT
|
||||
mkdir -p $RUN_D
|
||||
$BIN -P $PID_F $OPTIONS >/dev/null 2>&1
|
||||
}
|
||||
|
||||
stop() {
|
||||
[ -f $PID_F ] && kill $(cat $PID_F)
|
||||
}
|
||||
|
@ -1,21 +0,0 @@
|
||||
--- a/pvar.c.rej
|
||||
+++ /dev/null
|
||||
@@ -1,18 +0,0 @@
|
||||
-***************
|
||||
-*** 2409,2415 ****
|
||||
- LM_ERR("invalid socket specification\n");
|
||||
- return -1;
|
||||
- }
|
||||
-- si = grep_sock_info(&host, (unsigned short)port,
|
||||
- (unsigned short)proto);
|
||||
- if (si==NULL)
|
||||
- return -1;
|
||||
---- 2409,2416 ----
|
||||
- LM_ERR("invalid socket specification\n");
|
||||
- return -1;
|
||||
- }
|
||||
-+ set_sip_defaults( port, proto);
|
||||
-+ si = grep_sock_info(&host, (unsigned short)port,
|
||||
- (unsigned short)proto);
|
||||
- if (si==NULL)
|
||||
- return -1;
|
@ -1,20 +0,0 @@
|
||||
--- a/config.h
|
||||
+++ b/config.h
|
||||
@@ -48,7 +48,7 @@
|
||||
|
||||
#define MAX_LISTEN 16 /*!< maximum number of addresses on which we will listen */
|
||||
|
||||
-#define CHILD_NO 8 /*!< default number of child processes started */
|
||||
+#define CHILD_NO 4 /*!< default number of child processes started */
|
||||
|
||||
#define RT_NO 100 /*!< routing tables number */
|
||||
#define FAILURE_RT_NO RT_NO /*!< on_failure routing tables number */
|
||||
@@ -114,7 +114,7 @@
|
||||
#define SRV_MAX_PREFIX_LEN SRV_TLS_PREFIX_LEN
|
||||
|
||||
#define PKG_MEM_POOL_SIZE 1024*1024 /*!< Used only if PKG_MALLOC is defined*/
|
||||
-#define SHM_MEM_SIZE 32 /*!< Used if SH_MEM is defined*/
|
||||
+#define SHM_MEM_SIZE 8 /*!< Used if SH_MEM is defined*/
|
||||
|
||||
#define TIMER_TICK 1 /*!< one second */
|
||||
#define UTIMER_TICK 100*1000 /*!< 100 miliseconds*/
|
@ -1,102 +0,0 @@
|
||||
--- a/modules/carrierroute/Makefile
|
||||
+++ b/modules/carrierroute/Makefile
|
||||
@@ -12,10 +12,8 @@ NAME=carrierroute.so
|
||||
BUILDER = $(shell which confuse-config)
|
||||
|
||||
ifeq ($(BUILDER),)
|
||||
- CONFUSEDEFS=-I$(LOCALBASE)/include -I/usr/local/include -I/opt/include \
|
||||
- -I/usr/sfw/include
|
||||
- CONFUSELIBS=-L$(LOCALBASE)/lib -L/usr/local/lib -L/usr/sfw/lib \
|
||||
- -L/opt/lib -lconfuse
|
||||
+ CONFUSEDEFS=-I$(LOCALBASE)/include
|
||||
+ CONFUSELIBS=-L$(LOCALBASE)/lib
|
||||
else
|
||||
CONFUSEDEFS = $(shell confuse-config --cflags)
|
||||
CONFUSELIBS = $(shell confuse-config --libs)
|
||||
--- a/modules/h350/Makefile
|
||||
+++ b/modules/h350/Makefile
|
||||
@@ -9,6 +9,8 @@ include ../../Makefile.defs
|
||||
|
||||
auto_gen=
|
||||
NAME=h350.so
|
||||
-LIBS=
|
||||
+
|
||||
+DEFS+=-I$(LOCALBASE)/include
|
||||
+LIBS=-L$(LOCALBASE)/lib -lldap
|
||||
|
||||
include ../../Makefile.modules
|
||||
--- a/modules/identity/Makefile
|
||||
+++ b/modules/identity/Makefile
|
||||
@@ -9,7 +9,7 @@ include ../../Makefile.defs
|
||||
auto_gen=
|
||||
NAME=identity.so
|
||||
|
||||
-DEFS+= -I$(LOCALBASE)/ssl/include -I$(LOCALBASE)/include -I/usr/sfw/include -I/usr/local/ssl/include
|
||||
-LIBS= -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib -L/usr/sfw/lib -L/usr/local/ssl/lib -lssl -lcrypto
|
||||
+DEFS+= -I$(LOCALBASE)/include
|
||||
+LIBS= -L$(LOCALBASE)/lib -lssl -lcrypto
|
||||
|
||||
include ../../Makefile.modules
|
||||
--- a/modules/ldap/Makefile
|
||||
+++ b/modules/ldap/Makefile
|
||||
@@ -12,7 +12,8 @@ include ../../Makefile.defs
|
||||
auto_gen=
|
||||
NAME=ldap.so
|
||||
|
||||
-LIBS=-lldap
|
||||
+DEFS+=-I$(LOCALBASE)/include
|
||||
+LIBS=-L$(LOCALBASE)/lib -lldap
|
||||
|
||||
ifeq ($(OS),solaris)
|
||||
DEFS+=-I$(LOCALBASE)/include -I/usr/sfw/include -I/usr/local/include -I/opt/sfw/include -I/opt/csw/include
|
||||
--- a/modules/pua_bla/Makefile
|
||||
+++ b/modules/pua_bla/Makefile
|
||||
@@ -9,8 +9,8 @@ include ../../Makefile.defs
|
||||
auto_gen=
|
||||
NAME=pua_bla.so
|
||||
LIBS=
|
||||
-DEFS+=-I/usr/include/libxml2 -I$(LOCALBASE)/include/libxml2 -I$(LOCALBASE)/include
|
||||
-LIBS+=-L/usr/include/lib -L$(LOCALBASE)/lib -lxml2
|
||||
+DEFS+=-I$(LOCALBASE)/include/libxml2 -I$(LOCALBASE)/include
|
||||
+LIBS+=-L$(LOCALBASE)/lib -lxml2
|
||||
|
||||
include ../../Makefile.modules
|
||||
|
||||
--- a/modules/pua_xmpp/Makefile
|
||||
+++ b/modules/pua_xmpp/Makefile
|
||||
@@ -10,7 +10,7 @@ auto_gen=
|
||||
NAME= pua_xmpp.so
|
||||
LIBS=
|
||||
|
||||
-DEFS+=-I/usr/include/libxml2 -I$(LOCALBASE)/include/libxml2 -I$(LOCALBASE)/include
|
||||
-LIBS+=-L/usr/include/lib -L$(LOCALBASE)/lib -lxml2
|
||||
+DEFS+=-I$(LOCALBASE)/include/libxml2 -I$(LOCALBASE)/include
|
||||
+LIBS+=-L$(LOCALBASE)/lib -lxml2
|
||||
|
||||
include ../../Makefile.modules
|
||||
--- a/modules/regex/Makefile
|
||||
+++ b/modules/regex/Makefile
|
||||
@@ -20,8 +20,8 @@ ifneq ($(PCRECFG),)
|
||||
|
||||
else
|
||||
|
||||
- DEFS+=-I/usr/include -I/usr/sfw/include -I/usr/local/include -I/opt/csw/include -I$(LOCALBASE)/include
|
||||
- LIBS=-I/usr/lib -I/usr/sfw/lib -I/usr/local/lib -I/opt/csw/lib -I$(LOCALBASE)/lib -lpcre
|
||||
+ DEFS+=-I$(LOCALBASE)/include
|
||||
+ LIBS=-L$(LOCALBASE)/lib -lpcre
|
||||
|
||||
endif
|
||||
|
||||
--- a/modules/tlsops/Makefile
|
||||
+++ b/modules/tlsops/Makefile
|
||||
@@ -7,8 +7,8 @@ auto_gen=
|
||||
NAME=tlsops.so
|
||||
LIBS=
|
||||
|
||||
-DEFS+= -I$(LOCALBASE)/ssl/include -I$(LOCALBASE)/include -I/usr/sfw/include -I/usr/local/ssl/include
|
||||
-LIBS+= -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib -L/usr/sfw/lib -L/usr/local/ssl/lib -lssl -lcrypto
|
||||
+DEFS+= -I$(LOCALBASE)/include
|
||||
+LIBS+= -L$(LOCALBASE)/lib -lssl -lcrypto
|
||||
|
||||
include ../../Makefile.modules
|
||||
|
@ -1,50 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2009-2010 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=pcapsipdump
|
||||
PKG_VERSION:=0.1.4
|
||||
PKG_RELEASE:=3
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=@SF/psipdump
|
||||
PKG_MD5SUM:=95ed26caf66237a654cae2cacdaa3386
|
||||
|
||||
include $(INCLUDE_DIR)/uclibc++.mk
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/pcapsipdump
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=Telephony
|
||||
DEPENDS:=+libpcap $(CXX_DEPENDS)
|
||||
TITLE:=SIP sessions dumping tool
|
||||
URL:=http://sourceforge.net/projects/pcapsipdump/
|
||||
endef
|
||||
|
||||
define Package/pcapsipdump/description
|
||||
pcapsipdump is a tool for dumping SIP sessions (+RTP traffic, if available) to disk in a
|
||||
fashion similar to "tcpdump -w" (format is exactly the same), but one file per sip session
|
||||
(even if there is thousands of concurrect SIP sessions).
|
||||
endef
|
||||
|
||||
TARGET_CC=$(TARGET_CXX)
|
||||
|
||||
define Build/Compile
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
CPPFLAGS="$(TARGET_CXXFLAGS) -fno-rtti" \
|
||||
LIBS="-lpcap"
|
||||
endef
|
||||
|
||||
define Package/pcapsipdump/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/pcapsipdump $(1)/usr/bin/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,pcapsipdump))
|
@ -1,16 +0,0 @@
|
||||
diff -urN pcapsipdump-0.1.4/Makefile pcapsipdump-0.1.4.new/Makefile
|
||||
--- pcapsipdump-0.1.4/Makefile 2007-02-09 12:33:48.000000000 +0100
|
||||
+++ pcapsipdump-0.1.4.new/Makefile 2009-05-12 12:01:02.000000000 +0200
|
||||
@@ -1,10 +1,10 @@
|
||||
all: pcapsipdump
|
||||
|
||||
pcapsipdump: pcapsipdump.cpp calltable.cpp calltable.h
|
||||
- $(CC) $(CPPFLAGS) $(LDFLAGS) pcapsipdump.cpp calltable.cpp -o pcapsipdump -lpcap -lstdc++
|
||||
+ $(CC) $(CPPFLAGS) $(LDFLAGS) pcapsipdump.cpp calltable.cpp -o pcapsipdump $(LIBS)
|
||||
|
||||
pcapsipdump-debug: pcapsipdump.cpp calltable.cpp calltable.h
|
||||
- $(CC) $(CPPFLAGS) $(LDFLAGS) -ggdb pcapsipdump.cpp calltable.cpp -o pcapsipdump-debug -lpcap -lstdc++
|
||||
+ $(CC) $(CPPFLAGS) $(LDFLAGS) -ggdb pcapsipdump.cpp calltable.cpp -o pcapsipdump-debug $(LIBS)
|
||||
|
||||
clean:
|
||||
rm -f pcapsipdump
|
@ -1,12 +0,0 @@
|
||||
diff -urN pcapsipdump-0.1.4/pcapsipdump.h pcapsipdump-0.1.4.new/pcapsipdump.h
|
||||
--- pcapsipdump-0.1.4/pcapsipdump.h 2007-05-11 20:40:49.000000000 +0200
|
||||
+++ pcapsipdump-0.1.4.new/pcapsipdump.h 2010-03-29 09:52:20.000000000 +0200
|
||||
@@ -35,7 +35,7 @@
|
||||
#elif defined (__BIG_ENDIAN)
|
||||
uint8_t version:4,
|
||||
ihl:4;
|
||||
-#elif
|
||||
+#else
|
||||
#error Endian not defined
|
||||
#endif
|
||||
uint8_t tos;
|
@ -1,117 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2010-2011 OpenWrt.org
|
||||
# Copyright (C) 2010 Alfred E. Heggestad
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=restund
|
||||
PKG_VERSION:=0.4.1
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://www.creytiv.com/pub/
|
||||
PKG_MD5SUM:=e11da0acd10af42ce6101f3106cd34dc
|
||||
|
||||
restund-mods:= \
|
||||
mysql \
|
||||
|
||||
PKG_CONFIG_DEPENDS:= \
|
||||
$(patsubst %,CONFIG_PACKAGE_restund-mod-%,$(restund-mods)) \
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/restund/Default
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=Telephony
|
||||
URL:=http://www.creytiv.com/
|
||||
endef
|
||||
|
||||
define Package/restund
|
||||
$(call Package/restund/Default)
|
||||
TITLE:=Modular STUN/TURN server
|
||||
DEPENDS:=+libre +libpthread
|
||||
endef
|
||||
|
||||
|
||||
restund-mod-mysql := USE_MYSQL
|
||||
|
||||
RESTUND_MOD_OPTIONS:= \
|
||||
$(foreach m,$(restund-mods),$(restund-mod-$(m))=$(if $(CONFIG_PACKAGE_restund-mod-$(m)),1))
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
LIBRE_MK="$(STAGING_DIR)/usr/share/re/re.mk" \
|
||||
LIBRE_INC="$(STAGING_DIR)/usr/include/re" \
|
||||
LIBRE_SO="$(STAGING_DIR)/usr/lib" \
|
||||
CC="$(TARGET_CC)" \
|
||||
EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
|
||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||
SYSROOT="$$$$($(FIND) $(TOOLCHAIN_DIR) -path '*/include/pthread.h' | sed -ne '1s#/include/pthread.h##p')" \
|
||||
SYSROOT_ALT="$(STAGING_DIR)/usr" \
|
||||
RELEASE=1 \
|
||||
CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||
OS="linux" \
|
||||
$(RESTUND_MOD_OPTIONS) \
|
||||
all install
|
||||
endef
|
||||
|
||||
define Package/restund/install
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/restund $(1)/usr/sbin/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/restund/modules
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/restund/modules/auth.so \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/restund/modules/binding.so \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/restund/modules/stat.so \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/restund/modules/status.so \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/restund/modules/syslog.so \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/restund/modules/turn.so \
|
||||
$(1)/usr/lib/restund/modules/
|
||||
$(INSTALL_DIR) $(1)/etc
|
||||
$(INSTALL_CONF) $(PKG_BUILD_DIR)/etc/restund.conf $(1)/etc/
|
||||
$(SED) \
|
||||
's|^\(module_path\)\([ \t]\+\).*$$$$|\1\2/usr/lib/restund/modules|g' \
|
||||
$(1)/etc/restund.conf
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/restund.init $(1)/etc/init.d/restund
|
||||
endef
|
||||
|
||||
define Package/restund/conffiles
|
||||
/etc/restund.conf
|
||||
endef
|
||||
|
||||
#
|
||||
# 1. Name
|
||||
# 2. Title
|
||||
# 3. Files
|
||||
# 4. Depends
|
||||
#
|
||||
define BuildPlugin
|
||||
|
||||
define Package/restund-mod-$(1)
|
||||
$$(call Package/restund/Default)
|
||||
TITLE:= restund $(2) module
|
||||
DEPENDS:= restund $(4)
|
||||
endef
|
||||
|
||||
define Package/restund-mod-$(1)/install
|
||||
[ -z "$(3)" ] || $(INSTALL_DIR) $$(1)/usr/lib/restund/modules
|
||||
for f in $(3); do \
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/restund/modules/$$$$$$$${f}.so \
|
||||
$$(1)/usr/lib/restund/modules/ ; \
|
||||
done
|
||||
endef
|
||||
|
||||
$$(eval $$(call BuildPackage,restund-mod-$(1)))
|
||||
endef
|
||||
|
||||
|
||||
$(eval $(call BuildPackage,restund))
|
||||
|
||||
$(eval $(call BuildPlugin,mysql,MySQL database backend,mysql_ser,+PACKAGE_restund-mod-mysql:libmysqlclient))
|
@ -1,15 +0,0 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
#
|
||||
# Copyright (C) 2010-2011 OpenWrt.org
|
||||
# Copyright (C) 2010 Alfred E. Heggestad
|
||||
#
|
||||
|
||||
START=60
|
||||
|
||||
start() {
|
||||
service_start /usr/sbin/restund
|
||||
}
|
||||
|
||||
stop() {
|
||||
service_stop /usr/sbin/restund
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2009 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=rtpproxy
|
||||
PKG_VERSION:=1.2.1
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://b2bua.org/chrome/site/
|
||||
PKG_MD5SUM:=b0b5d6cdce3f17cdbbac473c11a2d0e5
|
||||
|
||||
PKG_INSTALL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/rtpproxy
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=Telephony
|
||||
DEPENDS:=+libpthread
|
||||
TITLE:=RTP (Realtime Transport Protocol) proxy
|
||||
URL:=http://www.rtpproxy.org/
|
||||
endef
|
||||
|
||||
# uses GNU configure
|
||||
|
||||
define Package/rtpproxy/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rtpproxy $(1)/usr/bin/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,rtpproxy))
|
@ -1,60 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2013 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=sipp
|
||||
PKG_VERSION:=3.3
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=@SF/sipp
|
||||
PKG_MD5SUM:=8c1d513423f9dabee799e738b737e311
|
||||
|
||||
include $(INCLUDE_DIR)/uclibc++.mk
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/sipp
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=Telephony
|
||||
DEPENDS:= +libncurses +libpthread $(CXX_DEPENDS)
|
||||
TITLE:=test tool / traffic generator for the SIP protocol
|
||||
URL:=http://sipp.sourceforge.net/
|
||||
endef
|
||||
|
||||
define Package/sipp/description
|
||||
SIPp is a free Open Source test tool / traffic generator for the SIP
|
||||
protocol. It includes a few basic SipStone user agent scenarios (UAC and
|
||||
UAS) and establishes and releases multiple calls with the INVITE and BYE
|
||||
methods.
|
||||
endef
|
||||
|
||||
TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS)
|
||||
|
||||
define Build/Configure
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CC_linux="$(TARGET_CXX)" \
|
||||
CPP_linux="$(TARGET_CXX)" \
|
||||
CCLINK_linux="$(TARGET_CXX)" \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
CPPFLAGS_linux="$(TARGET_CPPFLAGS) -fno-rtti" \
|
||||
LFLAGS_linux="$(TARGET_LDFLAGS)" \
|
||||
LIBS="-lncurses -ldl -lpthread -lm" \
|
||||
all
|
||||
endef
|
||||
|
||||
define Package/sipp/install
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/sipp $(1)/usr/sbin/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,sipp))
|
@ -1,86 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2006-2011 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=siproxd
|
||||
PKG_VERSION:=0.8.1
|
||||
PKG_RELEASE:=3
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=@SF/siproxd
|
||||
PKG_MD5SUM:=1a6f9d13aeb2d650375c9a346ac6cbaf
|
||||
|
||||
PKG_FIXUP:=autoreconf
|
||||
PKG_INSTALL:=1
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/siproxd/Default
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=Telephony
|
||||
URL:=http://siproxd.sourceforge.net/
|
||||
endef
|
||||
|
||||
define Package/siproxd
|
||||
$(call Package/siproxd/Default)
|
||||
DEPENDS:=+libltdl +libpthread +libosip2
|
||||
TITLE:=SIP (Session Initiation Protocol) proxy
|
||||
MENU:=1
|
||||
endef
|
||||
|
||||
define Package/siproxd/description
|
||||
Siproxd is a proxy/masquerading daemon for the SIP protocol.
|
||||
endef
|
||||
|
||||
define Package/siproxd/conffiles
|
||||
/etc/config/siproxd
|
||||
endef
|
||||
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-libosip-prefix="$(STAGING_DIR)/usr" \
|
||||
--disable-doc
|
||||
|
||||
MAKE_FLAGS+= \
|
||||
SUBDIRS="src scripts contrib" \
|
||||
LIBLTDL="$(STAGING_DIR)/usr/lib/libltdl.la" \
|
||||
|
||||
define Package/siproxd/install
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/siproxd $(1)/usr/sbin
|
||||
$(INSTALL_DIR) $(1)/etc/config
|
||||
$(INSTALL_CONF) ./files/siproxd.config $(1)/etc/config/siproxd
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/siproxd.init $(1)/etc/init.d/siproxd
|
||||
endef
|
||||
|
||||
define BuildPlugin
|
||||
define Package/siproxd-mod-$(1)
|
||||
$$(call Package/siproxd/Default)
|
||||
TITLE:= siproxd $(1) plugin
|
||||
DEPENDS:=siproxd
|
||||
endef
|
||||
|
||||
define Package/siproxd-mod-$(1)/install
|
||||
$(INSTALL_DIR) $$(1)/usr/lib/siproxd
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/siproxd/plugin_$(1)*.so* $$(1)/usr/lib/siproxd
|
||||
endef
|
||||
|
||||
$$(eval $$(call BuildPackage,siproxd-mod-$(1)))
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,siproxd))
|
||||
$(eval $(call BuildPlugin,defaulttarget))
|
||||
$(eval $(call BuildPlugin,demo))
|
||||
$(eval $(call BuildPlugin,fix_bogus_via))
|
||||
$(eval $(call BuildPlugin,logcall))
|
||||
$(eval $(call BuildPlugin,prefix))
|
||||
$(eval $(call BuildPlugin,regex))
|
||||
$(eval $(call BuildPlugin,shortdial))
|
||||
$(eval $(call BuildPlugin,stun))
|
@ -1,3 +0,0 @@
|
||||
config siproxd general
|
||||
option if_inbound lan
|
||||
option if_outbound wan
|
@ -1,235 +0,0 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2008 Alina Friedrichsen
|
||||
# Copyright (C) 2011 OpenWrt.org
|
||||
|
||||
START=50
|
||||
|
||||
SERVICE_USE_PID=1
|
||||
|
||||
siproxd_bin="/usr/sbin/siproxd"
|
||||
siproxd_conf_dir="/var/etc"
|
||||
siproxd_conf_prefix="$siproxd_conf_dir/siproxd-"
|
||||
siproxd_registration_dir="/var/lib/siproxd"
|
||||
siproxd_pid_dir="/var/run/siproxd"
|
||||
|
||||
deal_with_lists () {
|
||||
echo "$2" = "$1" >> "$siproxd_conf_prefix$cfg"
|
||||
}
|
||||
|
||||
start_instance() {
|
||||
local cfg="$1"
|
||||
|
||||
config_get if_inbound "$cfg" if_inbound
|
||||
config_get if_outbound "$cfg" if_outbound
|
||||
config_get host_outbound "$cfg" host_outbound
|
||||
config_get hosts_allow_reg "$cfg" hosts_allow_reg
|
||||
config_get hosts_allow_sip "$cfg" hosts_allow_sip
|
||||
config_get hosts_deny_sip "$cfg" hosts_deny_sip
|
||||
config_get sip_listen_port "$cfg" sip_listen_port 5060
|
||||
config_get_bool daemonize "$cfg" daemonize 1
|
||||
config_get silence_log "$cfg" silence_log 4
|
||||
config_get user "$cfg" user nobody
|
||||
config_get chrootjail "$cfg" chrootjail
|
||||
config_get registration_file "$cfg" registration_file "$siproxd_registration_dir/siproxd_registrations-$cfg"
|
||||
config_get autosave_registrations "$cfg" autosave_registrations 300
|
||||
config_get pid_file "$cfg" pid_file "$siproxd_pid_dir/siproxd-$cfg.pid"
|
||||
config_get_bool rtp_proxy_enable "$cfg" rtp_proxy_enable 1
|
||||
config_get rtp_port_low "$cfg" rtp_port_low 7070
|
||||
config_get rtp_port_high "$cfg" rtp_port_high 7089
|
||||
config_get rtp_timeout "$cfg" rtp_timeout 300
|
||||
config_get rtp_dscp "$cfg" rtp_dscp 46
|
||||
config_get sip_dscp "$cfg" sip_dscp 0
|
||||
config_get rtp_input_dejitter "$cfg" rtp_input_dejitter 0
|
||||
config_get rtp_output_dejitter "$cfg" rtp_output_dejitter 0
|
||||
config_get tcp_timeout "$cfg" tcp_timeout 600
|
||||
config_get tcp_connect_timeout "$cfg" tcp_connect_timeout 500
|
||||
config_get tcp_keepalive "$cfg" tcp_keepalive 20
|
||||
config_get default_expires "$cfg" default_expires 600
|
||||
config_get proxy_auth_realm "$cfg" proxy_auth_realm
|
||||
config_get proxy_auth_passwd "$cfg" proxy_auth_passwd
|
||||
config_get proxy_auth_pwfile "$cfg" proxy_auth_pwfile
|
||||
config_get debug_level "$cfg" debug_level 0x00000000
|
||||
config_get debug_port "$cfg" debug_port 0
|
||||
config_get mask_host "$cfg" mask_host
|
||||
config_get masked_host "$cfg" masked_host
|
||||
config_get ua_string "$cfg" ua_string Siproxd-UA
|
||||
config_get use_rport "$cfg" use_rport 0
|
||||
config_get outbound_proxy_host "$cfg" outbound_proxy_host
|
||||
config_get outbound_proxy_port "$cfg" outbound_proxy_port
|
||||
config_get outbound_domain_name "$cfg" outbound_domain_name
|
||||
config_get outbound_domain_host "$cfg" outbound_domain_host
|
||||
config_get outbound_domain_port "$cfg" outbound_domain_port
|
||||
|
||||
if [ -f "$siproxd_conf_prefix$cfg" ]; then
|
||||
rm "$siproxd_conf_prefix$cfg"
|
||||
fi
|
||||
if [ -n "$if_inbound" ]; then
|
||||
echo if_inbound = "$if_inbound" >> "$siproxd_conf_prefix$cfg"
|
||||
fi
|
||||
if [ -n "$if_outbound" ]; then
|
||||
echo if_outbound = "$if_outbound" >> "$siproxd_conf_prefix$cfg"
|
||||
fi
|
||||
if [ -n "$host_outbound" ]; then
|
||||
echo host_outbound = "$host_outbound" >> "$siproxd_conf_prefix$cfg"
|
||||
fi
|
||||
if [ -n "$hosts_allow_reg" ]; then
|
||||
echo hosts_allow_reg = "$hosts_allow_reg" >> "$siproxd_conf_prefix$cfg"
|
||||
fi
|
||||
if [ -n "$hosts_allow_sip" ]; then
|
||||
echo hosts_allow_sip = "$hosts_allow_sip" >> "$siproxd_conf_prefix$cfg"
|
||||
fi
|
||||
if [ -n "$hosts_deny_sip" ]; then
|
||||
echo hosts_deny_sip = "$hosts_deny_sip" >> "$siproxd_conf_prefix$cfg"
|
||||
fi
|
||||
echo sip_listen_port = "$sip_listen_port" >> "$siproxd_conf_prefix$cfg"
|
||||
echo daemonize = "$daemonize" >> "$siproxd_conf_prefix$cfg"
|
||||
echo silence_log = "$silence_log" >> "$siproxd_conf_prefix$cfg"
|
||||
echo user = "$user" >> "$siproxd_conf_prefix$cfg"
|
||||
if [ -n "$chrootjail" ]; then
|
||||
if [ ! -d "$chrootjail" ]; then
|
||||
mkdir -p "$chrootjail"
|
||||
chmod 0755 "$chrootjail"
|
||||
fi
|
||||
echo chrootjail = "$chrootjail" >> "$siproxd_conf_prefix$cfg"
|
||||
fi
|
||||
echo registration_file = "$registration_file" >> "$siproxd_conf_prefix$cfg"
|
||||
echo autosave_registrations = "$autosave_registrations" >> "$siproxd_conf_prefix$cfg"
|
||||
|
||||
echo pid_file = "$pid_file" >> "$siproxd_conf_prefix$cfg"
|
||||
echo rtp_proxy_enable = "$rtp_proxy_enable" >> "$siproxd_conf_prefix$cfg"
|
||||
echo rtp_port_low = "$rtp_port_low" >> "$siproxd_conf_prefix$cfg"
|
||||
echo rtp_port_high = "$rtp_port_high" >> "$siproxd_conf_prefix$cfg"
|
||||
echo rtp_timeout = "$rtp_timeout" >> "$siproxd_conf_prefix$cfg"
|
||||
echo rtp_dscp = "$rtp_dscp" >> "$siproxd_conf_prefix$cfg"
|
||||
echo sip_dscp = "$sip_dscp" >> "$siproxd_conf_prefix$cfg"
|
||||
echo rtp_input_dejitter = "$rtp_input_dejitter" >> "$siproxd_conf_prefix$cfg"
|
||||
echo rtp_output_dejitter = "$rtp_output_dejitter" >> "$siproxd_conf_prefix$cfg"
|
||||
echo tcp_timeout = "$tcp_timeout" >> "$siproxd_conf_prefix$cfg"
|
||||
echo tcp_connect_timeout = "$tcp_connect_timeout" >> "$siproxd_conf_prefix$cfg"
|
||||
echo tcp_keepalive = "$tcp_keepalive" >> "$siproxd_conf_prefix$cfg"
|
||||
echo default_expires = "$default_expires" >> "$siproxd_conf_prefix$cfg"
|
||||
if [ -n "$proxy_auth_realm" ]; then
|
||||
echo proxy_auth_realm = "$proxy_auth_realm" >> "$siproxd_conf_prefix$cfg"
|
||||
fi
|
||||
if [ -n "$proxy_auth_passwd" ]; then
|
||||
echo proxy_auth_passwd = "$proxy_auth_passwd" >> "$siproxd_conf_prefix$cfg"
|
||||
fi
|
||||
if [ -n "$proxy_auth_pwfile" ]; then
|
||||
echo proxy_auth_pwfile = "$proxy_auth_pwfile" >> "$siproxd_conf_prefix$cfg"
|
||||
fi
|
||||
echo debug_level = "$debug_level" >> "$siproxd_conf_prefix$cfg"
|
||||
echo debug_port = "$debug_port" >> "$siproxd_conf_prefix$cfg"
|
||||
if [ -n "$mask_host" ]; then
|
||||
echo mask_host = "$mask_host" >> "$siproxd_conf_prefix$cfg"
|
||||
fi
|
||||
if [ -n "$masked_host" ]; then
|
||||
echo masked_host = "$masked_host" >> "$siproxd_conf_prefix$cfg"
|
||||
fi
|
||||
echo ua_string = "$ua_string" >> "$siproxd_conf_prefix$cfg"
|
||||
echo use_rport = "$use_rport" >> "$siproxd_conf_prefix$cfg"
|
||||
if [ -n "$outbound_proxy_host" ]; then
|
||||
echo oubound_proxy_host = "$outbound_proxy_host" >> "$siproxd_conf_prefix$cfg"
|
||||
fi
|
||||
if [ -n "$outbound_proxy_port" ]; then
|
||||
echo outbound_proxy_port = "$outbound_proxy_port" >> "$siproxd_conf_prefix$cfg"
|
||||
fi
|
||||
if [ -n "$outbound_domain_name" ]; then
|
||||
echo outbound_domain_name = "$outbound_domain_name" >> "$siproxd_conf_prefix$cfg"
|
||||
fi
|
||||
if [ -n "$outbound_domain_host" ]; then
|
||||
echo outbound_domain_host = "$outbound_domain_host" >> "$siproxd_conf_prefix$cfg"
|
||||
fi
|
||||
if [ -n "$outbound_domain_port" ]; then
|
||||
echo outbound_domain_port = "$outbound_domain_port" >> "$siproxd_conf_prefix$cfg"
|
||||
fi
|
||||
|
||||
# handle plugins
|
||||
config_get plugindir "$cfg" plugindir "/usr/lib/siproxd/"
|
||||
echo plugindir = "$plugindir" >> "$siproxd_conf_prefix$cfg"
|
||||
|
||||
config_list_foreach "$cfg" 'load_plugin' deal_with_lists "load_plugin"
|
||||
|
||||
# plugin_demo.so
|
||||
config_get plugin_demo_string "$cfg" plugin_demo_string
|
||||
if [ -n "$plugin_demo_string" ]; then
|
||||
echo plugin_demo_string = "$plugin_demo_string" >> "$siproxd_conf_prefix$cfg"
|
||||
fi
|
||||
|
||||
# plugin_shortdial.so
|
||||
config_get plugin_shortdial_akey "$cfg" plugin_shortdial_akey
|
||||
if [ -n "$plugin_shortdial_akey" ]; then
|
||||
echo plugin_shortdial_akey = "$plugin_shortdial_akey" >> "$siproxd_conf_prefix$cfg"
|
||||
fi
|
||||
config_list_foreach "$cfg" 'plugin_shortdial_entry' deal_with_lists "plugin_shortdial_entry"
|
||||
|
||||
# plugin_defaulttarget.so
|
||||
config_get_bool plugin_defaulttarget_log "$cfg" plugin_defaulttarget_log
|
||||
if [ -n "$plugin_defaulttarget_log" ]; then
|
||||
echo plugin_defaulttarget_log = "$plugin_defaulttarget_log" >> "$siproxd_conf_prefix$cfg"
|
||||
fi
|
||||
config_get plugin_defaulttarget_target "$cfg" plugin_defaulttarget_target
|
||||
if [ -n "$plugin_defaulttarget_target" ]; then
|
||||
echo plugin_defaulttarget_target = "$plugin_defaulttarget_target" >> "$siproxd_conf_prefix$cfg"
|
||||
fi
|
||||
|
||||
# plugin_fix_bogus_via.so
|
||||
config_get plugin_fix_bogus_via_networks "$cfg" plugin_fix_bogus_via_networks
|
||||
if [ -n "$plugin_fix_bogus_via_networks" ]; then
|
||||
echo plugin_fix_bogus_via_networks = "$plugin_fix_bogus_via_networks" >> "$siproxd_conf_prefix$cfg"
|
||||
fi
|
||||
|
||||
# plugin_stun.so
|
||||
config_get plugin_stun_server "$cfg" plugin_stun_server
|
||||
if [ -n "$plugin_stun_server" ]; then
|
||||
echo plugin_stun_server = "$plugin_stun_server" >> "$siproxd_conf_prefix$cfg"
|
||||
fi
|
||||
config_get plugin_stun_port "$cfg" plugin_stun_port
|
||||
if [ -n "$plugin_stun_port" ]; then
|
||||
echo plugin_stun_port = "$plugin_stun_port" >> "$siproxd_conf_prefix$cfg"
|
||||
fi
|
||||
config_get plugin_stun_period "$cfg" plugin_stun_period
|
||||
if [ -n "$plugin_stun_period" ]; then
|
||||
echo plugin_stun_period = "$plugin_stun_period" >> "$siproxd_conf_prefix$cfg"
|
||||
fi
|
||||
|
||||
# plugin_prefix.so
|
||||
config_get plugin_prefix_akey "$cfg" plugin_prefix_akey
|
||||
if [ -n "$plugin_prefix_akey" ]; then
|
||||
echo plugin_prefix_akey = "$plugin_prefix_akey" >> "$siproxd_conf_prefix$cfg"
|
||||
fi
|
||||
|
||||
# plugin_regex.so
|
||||
config_list_foreach "$cfg" 'plugin_regex_desc' deal_with_lists "plugin_regex_desc"
|
||||
config_list_foreach "$cfg" 'plugin_regex_pattern' deal_with_lists "plugin_regex_pattern"
|
||||
config_list_foreach "$cfg" 'plugin_regex_replace' deal_with_lists "plugin_regex_replace"
|
||||
|
||||
SERVICE_PID_FILE="$pid_file" \
|
||||
service_start $siproxd_bin --config "$siproxd_conf_prefix$cfg"
|
||||
}
|
||||
|
||||
stop_instance() {
|
||||
local cfg="$1"
|
||||
|
||||
config_get pid_file "$cfg" pid_file "$siproxd_pid_dir/siproxd-$cfg.pid"
|
||||
|
||||
SERVICE_PID_FILE="$pid_file" \
|
||||
service_stop $siproxd_bin
|
||||
}
|
||||
|
||||
start() {
|
||||
mkdir -m 0755 -p "$siproxd_conf_dir"
|
||||
mkdir -m 0755 -p "$siproxd_registration_dir"
|
||||
[ -d "$siproxd_pid_dir" ] || {
|
||||
mkdir -m 0755 -p "$siproxd_pid_dir"
|
||||
chmod 0750 "$siproxd_pid_dir"
|
||||
chown nobody:nogroup "$siproxd_pid_dir"
|
||||
}
|
||||
|
||||
config_load 'siproxd'
|
||||
config_foreach start_instance 'siproxd'
|
||||
}
|
||||
|
||||
stop() {
|
||||
config_load 'siproxd'
|
||||
config_foreach stop_instance 'siproxd'
|
||||
}
|
@ -1,26 +0,0 @@
|
||||
--- a/src/Makefile.am
|
||||
+++ b/src/Makefile.am
|
||||
@@ -77,8 +77,8 @@ plugin_regex_la_LDFLAGS = -module -avoid
|
||||
# else Cygwin goes beserk when building...)
|
||||
#
|
||||
sbin_PROGRAMS = siproxd
|
||||
-siproxd_LDFLAGS=-export-dynamic
|
||||
-siproxd_LDADD = $(LIBLTDL) $(DLOPENPLUGINS)
|
||||
+siproxd_LDFLAGS=-export-dynamic -lltdl
|
||||
+siproxd_LDADD = $(DLOPENPLUGINS)
|
||||
siproxd_SOURCES = siproxd.c proxy.c register.c sock.c utils.c \
|
||||
sip_utils.c sip_layer.c log.c readconf.c rtpproxy.c \
|
||||
rtpproxy_relay.c accessctl.c route_processing.c \
|
||||
--- a/src/Makefile.in
|
||||
+++ b/src/Makefile.in
|
||||
@@ -326,8 +326,8 @@ plugin_prefix_la_LDFLAGS = -module -avoi
|
||||
#
|
||||
plugin_regex_la_SOURCES = plugin_regex.c
|
||||
plugin_regex_la_LDFLAGS = -module -avoid-version -shrext '.so'
|
||||
-siproxd_LDFLAGS = -export-dynamic
|
||||
-siproxd_LDADD = $(LIBLTDL) $(DLOPENPLUGINS)
|
||||
+siproxd_LDFLAGS = -export-dynamic -lltdl
|
||||
+siproxd_LDADD = $(DLOPENPLUGINS)
|
||||
siproxd_SOURCES = siproxd.c proxy.c register.c sock.c utils.c \
|
||||
sip_utils.c sip_layer.c log.c readconf.c rtpproxy.c \
|
||||
rtpproxy_relay.c accessctl.c route_processing.c \
|
@ -1,43 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2006-2009 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=sipsak
|
||||
PKG_VERSION:=0.9.6
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://download.berlios.de/sipsak/ \
|
||||
http://ftp.iptel.org/pub/sipsak/
|
||||
PKG_MD5SUM:=c4eb8e282902e75f4f040f09ea9d99d5
|
||||
|
||||
PKG_INSTALL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/sipsak
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=Telephony
|
||||
DEPENDS:=+libopenssl
|
||||
TITLE:=SIP (Session Initiation Protocol) stress and diagnostics utility
|
||||
URL:=http://www.sipsak.org/
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
$(call Build/Configure/Default, \
|
||||
--disable-gnutls \
|
||||
)
|
||||
endef
|
||||
|
||||
define Package/sipsak/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sipsak $(1)/usr/bin/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,sipsak))
|
@ -1,22 +0,0 @@
|
||||
--- a/acinclude.m4
|
||||
+++ b/acinclude.m4
|
||||
@@ -363,7 +363,7 @@ AC_DEFUN([SIPSAK_GCC_STACK_PROTECT_CC],[
|
||||
AC_MSG_CHECKING([whether ${CC} accepts -fstack-protector])
|
||||
ssp_old_cflags="$CFLAGS"
|
||||
CFLAGS="$CFLAGS -fstack-protector"
|
||||
- AC_TRY_COMPILE(,,, ssp_cc=no)
|
||||
+ AC_TRY_LINK(,,, ssp_cc=no)
|
||||
echo $ssp_cc
|
||||
if test "X$ssp_cc" = "Xno"; then
|
||||
CFLAGS="$ssp_old_cflags"
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -2923,7 +2923,7 @@ main ()
|
||||
_ACEOF
|
||||
rm -f conftest.$ac_objext
|
||||
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||
- (eval $ac_compile) 2>conftest.er1
|
||||
+ (eval $ac_link) 2>conftest.er1
|
||||
ac_status=$?
|
||||
grep -v '^ *+' conftest.er1 >conftest.err
|
||||
rm -f conftest.er1
|
@ -1,276 +0,0 @@
|
||||
diff -urN sipsak-0.9.6/configure sipsak-0.9.6.new/configure
|
||||
--- sipsak-0.9.6/configure 2006-01-28 22:11:34.000000000 +0100
|
||||
+++ sipsak-0.9.6.new/configure 2012-08-06 16:45:07.051588486 +0200
|
||||
@@ -5954,264 +5954,6 @@
|
||||
|
||||
|
||||
|
||||
- echo "$as_me:$LINENO: checking for ares_version.h" >&5
|
||||
-echo $ECHO_N "checking for ares_version.h... $ECHO_C" >&6
|
||||
-
|
||||
- ares_incdir=NONE
|
||||
- ares_libdir=NONE
|
||||
- ares_libcall=NONE
|
||||
- ares_incdirs="/usr/include /usr/local/include /sw/include"
|
||||
- ares_libdirs="/usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib /sw/lib"
|
||||
- ares_libexten=".so .dylib .a"
|
||||
-
|
||||
- for dir in $ares_incdirs; do
|
||||
- try="$dir/ares_version.h"
|
||||
- if test -f $try; then
|
||||
- ares_incdir=$dir;
|
||||
- break;
|
||||
- fi
|
||||
- done
|
||||
-
|
||||
- if test "$ares_incdir" = "NONE"; then
|
||||
- echo "$as_me:$LINENO: result: not found" >&5
|
||||
-echo "${ECHO_T}not found" >&6
|
||||
- else
|
||||
- echo "$as_me:$LINENO: result: found at $ares_incdir" >&5
|
||||
-echo "${ECHO_T}found at $ares_incdir" >&6
|
||||
-
|
||||
- echo "$as_me:$LINENO: checking for c-ares lib" >&5
|
||||
-echo $ECHO_N "checking for c-ares lib... $ECHO_C" >&6
|
||||
-
|
||||
- for dir in $ares_libdirs; do
|
||||
- for extension in $ares_libexten; do
|
||||
- try="$dir/libcares$extension"
|
||||
- if test -f $try; then
|
||||
- ares_libdir=$dir;
|
||||
- ares_libcall=cares;
|
||||
- break;
|
||||
- fi
|
||||
- done
|
||||
- if test "$ares_libdir" != "NONE"; then
|
||||
- break;
|
||||
- fi
|
||||
- done
|
||||
-
|
||||
- if test "$ares_libdir" = "NONE"; then
|
||||
- echo "$as_me:$LINENO: result: not found" >&5
|
||||
-echo "${ECHO_T}not found" >&6
|
||||
- else
|
||||
- echo "$as_me:$LINENO: result: found at $ares_libdir" >&5
|
||||
-echo "${ECHO_T}found at $ares_libdir" >&6
|
||||
- fi
|
||||
-
|
||||
- echo "$as_me:$LINENO: checking for ares_version in -lcares" >&5
|
||||
-echo $ECHO_N "checking for ares_version in -lcares... $ECHO_C" >&6
|
||||
-if test "${ac_cv_lib_cares_ares_version+set}" = set; then
|
||||
- echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
-else
|
||||
- ac_check_lib_save_LIBS=$LIBS
|
||||
-LIBS="-lcares $LIBS"
|
||||
-cat >conftest.$ac_ext <<_ACEOF
|
||||
-/* confdefs.h. */
|
||||
-_ACEOF
|
||||
-cat confdefs.h >>conftest.$ac_ext
|
||||
-cat >>conftest.$ac_ext <<_ACEOF
|
||||
-/* end confdefs.h. */
|
||||
-
|
||||
-/* Override any gcc2 internal prototype to avoid an error. */
|
||||
-#ifdef __cplusplus
|
||||
-extern "C"
|
||||
-#endif
|
||||
-/* We use char because int might match the return type of a gcc2
|
||||
- builtin and then its argument prototype would still apply. */
|
||||
-char ares_version ();
|
||||
-int
|
||||
-main ()
|
||||
-{
|
||||
-ares_version ();
|
||||
- ;
|
||||
- return 0;
|
||||
-}
|
||||
-_ACEOF
|
||||
-rm -f conftest.$ac_objext conftest$ac_exeext
|
||||
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
||||
- (eval $ac_link) 2>conftest.er1
|
||||
- ac_status=$?
|
||||
- grep -v '^ *+' conftest.er1 >conftest.err
|
||||
- rm -f conftest.er1
|
||||
- cat conftest.err >&5
|
||||
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
- (exit $ac_status); } &&
|
||||
- { ac_try='test -z "$ac_c_werror_flag"
|
||||
- || test ! -s conftest.err'
|
||||
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
- (eval $ac_try) 2>&5
|
||||
- ac_status=$?
|
||||
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
- (exit $ac_status); }; } &&
|
||||
- { ac_try='test -s conftest$ac_exeext'
|
||||
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
- (eval $ac_try) 2>&5
|
||||
- ac_status=$?
|
||||
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
- (exit $ac_status); }; }; then
|
||||
- ac_cv_lib_cares_ares_version=yes
|
||||
-else
|
||||
- echo "$as_me: failed program was:" >&5
|
||||
-sed 's/^/| /' conftest.$ac_ext >&5
|
||||
-
|
||||
-ac_cv_lib_cares_ares_version=no
|
||||
-fi
|
||||
-rm -f conftest.err conftest.$ac_objext \
|
||||
- conftest$ac_exeext conftest.$ac_ext
|
||||
-LIBS=$ac_check_lib_save_LIBS
|
||||
-fi
|
||||
-echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_version" >&5
|
||||
-echo "${ECHO_T}$ac_cv_lib_cares_ares_version" >&6
|
||||
-if test $ac_cv_lib_cares_ares_version = yes; then
|
||||
-
|
||||
-cat >>confdefs.h <<\_ACEOF
|
||||
-#define HAVE_CARES_H 1
|
||||
-_ACEOF
|
||||
-
|
||||
- LIBS="$LIBS -L$ares_libdir -l$ares_libcall"
|
||||
- CFLAGS="$CFLAGS -I$ares_incdir"
|
||||
- SIPSAK_HAVE_ARES="1"
|
||||
-
|
||||
-
|
||||
-fi
|
||||
-
|
||||
- fi
|
||||
-
|
||||
-if test "X$SIPSAK_HAVE_ARES" == "X"; then
|
||||
-
|
||||
- echo "$as_me:$LINENO: checking for ruli.h" >&5
|
||||
-echo $ECHO_N "checking for ruli.h... $ECHO_C" >&6
|
||||
-
|
||||
- ruli_incdir=NONE
|
||||
- ruli_libdir=NONE
|
||||
- ruli_incdirs="/usr/include /usr/local/include /sw/include"
|
||||
- ruli_libdirs="/usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib /sw/lib"
|
||||
- ruli_libexten=".so .dylib .a"
|
||||
-
|
||||
- for dir in $ruli_incdirs; do
|
||||
- try="$dir/ruli.h"
|
||||
- if test -f $try; then
|
||||
- ruli_incdir=$dir;
|
||||
- break;
|
||||
- fi
|
||||
- done
|
||||
-
|
||||
- if test "$ruli_incdir" = "NONE"; then
|
||||
- echo "$as_me:$LINENO: result: not found" >&5
|
||||
-echo "${ECHO_T}not found" >&6
|
||||
- else
|
||||
- echo "$as_me:$LINENO: result: found at $ruli_incdir" >&5
|
||||
-echo "${ECHO_T}found at $ruli_incdir" >&6
|
||||
-
|
||||
- echo "$as_me:$LINENO: checking for libruli" >&5
|
||||
-echo $ECHO_N "checking for libruli... $ECHO_C" >&6
|
||||
-
|
||||
- for dir in $ruli_libdirs; do
|
||||
- for extension in $ruli_libexten; do
|
||||
- try="$dir/libruli$extension"
|
||||
- if test -f $try; then
|
||||
- ruli_libdir=$dir;
|
||||
- break;
|
||||
- fi
|
||||
- done
|
||||
- if test "$ruli_libdir" != "NONE"; then
|
||||
- break;
|
||||
- fi
|
||||
- done
|
||||
-
|
||||
- if test "$ruli_libdir" = "NONE"; then
|
||||
- echo "$as_me:$LINENO: result: not found" >&5
|
||||
-echo "${ECHO_T}not found" >&6
|
||||
- else
|
||||
- echo "$as_me:$LINENO: result: found at $ruli_libdir" >&5
|
||||
-echo "${ECHO_T}found at $ruli_libdir" >&6
|
||||
- fi
|
||||
-
|
||||
- echo "$as_me:$LINENO: checking for ruli_sync_query in -lruli" >&5
|
||||
-echo $ECHO_N "checking for ruli_sync_query in -lruli... $ECHO_C" >&6
|
||||
-if test "${ac_cv_lib_ruli_ruli_sync_query+set}" = set; then
|
||||
- echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
-else
|
||||
- ac_check_lib_save_LIBS=$LIBS
|
||||
-LIBS="-lruli $LIBS"
|
||||
-cat >conftest.$ac_ext <<_ACEOF
|
||||
-/* confdefs.h. */
|
||||
-_ACEOF
|
||||
-cat confdefs.h >>conftest.$ac_ext
|
||||
-cat >>conftest.$ac_ext <<_ACEOF
|
||||
-/* end confdefs.h. */
|
||||
-
|
||||
-/* Override any gcc2 internal prototype to avoid an error. */
|
||||
-#ifdef __cplusplus
|
||||
-extern "C"
|
||||
-#endif
|
||||
-/* We use char because int might match the return type of a gcc2
|
||||
- builtin and then its argument prototype would still apply. */
|
||||
-char ruli_sync_query ();
|
||||
-int
|
||||
-main ()
|
||||
-{
|
||||
-ruli_sync_query ();
|
||||
- ;
|
||||
- return 0;
|
||||
-}
|
||||
-_ACEOF
|
||||
-rm -f conftest.$ac_objext conftest$ac_exeext
|
||||
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
||||
- (eval $ac_link) 2>conftest.er1
|
||||
- ac_status=$?
|
||||
- grep -v '^ *+' conftest.er1 >conftest.err
|
||||
- rm -f conftest.er1
|
||||
- cat conftest.err >&5
|
||||
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
- (exit $ac_status); } &&
|
||||
- { ac_try='test -z "$ac_c_werror_flag"
|
||||
- || test ! -s conftest.err'
|
||||
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
- (eval $ac_try) 2>&5
|
||||
- ac_status=$?
|
||||
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
- (exit $ac_status); }; } &&
|
||||
- { ac_try='test -s conftest$ac_exeext'
|
||||
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
- (eval $ac_try) 2>&5
|
||||
- ac_status=$?
|
||||
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
- (exit $ac_status); }; }; then
|
||||
- ac_cv_lib_ruli_ruli_sync_query=yes
|
||||
-else
|
||||
- echo "$as_me: failed program was:" >&5
|
||||
-sed 's/^/| /' conftest.$ac_ext >&5
|
||||
-
|
||||
-ac_cv_lib_ruli_ruli_sync_query=no
|
||||
-fi
|
||||
-rm -f conftest.err conftest.$ac_objext \
|
||||
- conftest$ac_exeext conftest.$ac_ext
|
||||
-LIBS=$ac_check_lib_save_LIBS
|
||||
-fi
|
||||
-echo "$as_me:$LINENO: result: $ac_cv_lib_ruli_ruli_sync_query" >&5
|
||||
-echo "${ECHO_T}$ac_cv_lib_ruli_ruli_sync_query" >&6
|
||||
-if test $ac_cv_lib_ruli_ruli_sync_query = yes; then
|
||||
-
|
||||
-cat >>confdefs.h <<\_ACEOF
|
||||
-#define HAVE_RULI_H 1
|
||||
-_ACEOF
|
||||
-
|
||||
- LIBS="$LIBS -L$ruli_libdir -lruli"
|
||||
- CFLAGS="$CFLAGS -I$ruli_incdir"
|
||||
-
|
||||
-fi
|
||||
-
|
||||
- fi
|
||||
-
|
||||
-else
|
||||
-
|
||||
for ac_header in arpa/nameser.h
|
||||
do
|
||||
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
||||
@@ -6361,7 +6103,6 @@
|
||||
|
||||
done
|
||||
|
||||
-fi
|
||||
|
||||
|
||||
# Check for T1 timer value
|
@ -1,64 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2009 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=smap
|
||||
PKG_VERSION:=0.6.0
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-20081016.tar.gz
|
||||
PKG_SOURCE_URL:=http://www.wormulon.net/smap/
|
||||
PKG_MD5SUM:=814456ccc8fea5688382b7ec55fe44eb
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/smap-$(PKG_VERSION)/smap
|
||||
PKG_FIXUP:=autoreconf
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
LIBTOOL="$(STAGING_DIR)/host/bin/libtool"
|
||||
|
||||
define Package/smap
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=Telephony
|
||||
TITLE:=A SIP network discovery tool
|
||||
MAINTAINER:=Daniel Dickinson <openwrt@cshore.neomailbox.net>
|
||||
URL:=http://www.wormulon.net/smap/
|
||||
DEPENDS:=+libpthread
|
||||
endef
|
||||
|
||||
define Package/smap/description
|
||||
Discovers and identifies SIP devices on the network including hardware
|
||||
phones, softphones, PBX software, and PBX equipment.
|
||||
endef
|
||||
|
||||
# define Package/smap/conffiles
|
||||
# /etc/config/smap
|
||||
# endef
|
||||
|
||||
define Build/Configure
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
CC="$(TARGET_CC)" \
|
||||
LD="$(TARGET_LD)" \
|
||||
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -DRAW_SOCKET -DHAVE_RANDOM -DSMAP_OS=linux" \
|
||||
LDFLAGS="$(TARGET_LDFLAGS) -lm -lpthread" \
|
||||
LIBTOOL="$(LIBTOOL)" \
|
||||
smap
|
||||
endef
|
||||
|
||||
define Package/smap/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/smap $(1)/usr/bin
|
||||
$(INSTALL_DIR) $(1)/usr/share/smap
|
||||
$(CP) $(PKG_BUILD_DIR)/fingerprint.db $(1)/usr/share/smap
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,smap))
|
@ -1,62 +0,0 @@
|
||||
diff -Naur smap.orig/icmpping.c smap/icmpping.c
|
||||
--- smap.orig/icmpping.c 2007-10-07 06:15:11.000000000 -0400
|
||||
+++ smap/icmpping.c 2009-06-13 11:57:28.000000000 -0400
|
||||
@@ -182,6 +182,7 @@
|
||||
struct sockaddr_in sin;
|
||||
#define ICMP_PKT_LEN (sizeof(struct icmp) + ICMP_PAYLOAD_LEN)
|
||||
char icmpbuf[ICMP_PKT_LEN];
|
||||
+ socklen_t socklen;
|
||||
|
||||
/* prepare ICMP packet */
|
||||
memset(&icmpbuf, 'A', ICMP_PKT_LEN);
|
||||
@@ -207,6 +208,8 @@
|
||||
if (setsockopt(sock, SOL_SOCKET, SO_REUSEPORT, &one, sizeof(one)) != 0)
|
||||
perror("setsockopt");
|
||||
#endif
|
||||
+ if (setsockopt(sock, SOL_SOCKET, SO_BROADCAST, &one, sizeof(one)) != 0)
|
||||
+ perror("setsockopt");
|
||||
icmp->icmp_cksum = icmp_in_cksum((unsigned short *) &icmpbuf, ICMP_PKT_LEN);
|
||||
|
||||
/* send data */
|
||||
diff -Naur smap.orig/smap.c smap/smap.c
|
||||
--- smap.orig/smap.c 2007-11-03 14:14:52.000000000 -0400
|
||||
+++ smap/smap.c 2009-06-13 10:49:15.000000000 -0400
|
||||
@@ -244,11 +244,11 @@
|
||||
break;
|
||||
case 't': /* TCP transport */
|
||||
/* UDP is default so TCP would override it */
|
||||
- config.flags ^= FLAG_UDP_TRANSPORT;
|
||||
+ config.flags &= ~FLAG_UDP_TRANSPORT;
|
||||
config.flags |= FLAG_TCP_TRANSPORT;
|
||||
break;
|
||||
case 'u': /* UDP transport */
|
||||
- config.flags ^= FLAG_TCP_TRANSPORT;
|
||||
+ config.flags &= ~FLAG_TCP_TRANSPORT;
|
||||
config.flags |= FLAG_UDP_TRANSPORT;
|
||||
break;
|
||||
case 'r': /* ratelimit messages/sec */
|
||||
diff -Naur smap.orig/transport_udp.c smap/transport_udp.c
|
||||
--- smap.orig/transport_udp.c 2008-08-20 09:02:57.000000000 -0400
|
||||
+++ smap/transport_udp.c 2009-06-13 11:56:15.000000000 -0400
|
||||
@@ -52,6 +52,7 @@
|
||||
extern int udp_sendsock;
|
||||
extern struct sockaddr_in udp_sendsock_sockaddr;
|
||||
int sockaddrlen;
|
||||
+ int one;
|
||||
|
||||
/* is 5060 (DEFAULT_SIP_PORT) available?
|
||||
* if yes, we'll use it since some clients send responses to
|
||||
@@ -116,6 +117,13 @@
|
||||
error(ERR_DEBUG, "bind() successful");
|
||||
}
|
||||
}
|
||||
+ one = 1;
|
||||
+ if (setsockopt(udp_sendsock, SOL_SOCKET, SO_BROADCAST, &one, sizeof(one)) != 0) {
|
||||
+ perror("setsockopt");
|
||||
+ error(ERR_ERROR, "unable to set socket to broadcast");
|
||||
+ return 0;
|
||||
+ }
|
||||
+
|
||||
if (getsockname(udp_sendsock, (struct sockaddr *) &udp_sendsock_sockaddr,
|
||||
(socklen_t *) &sockaddrlen) != 0)
|
||||
if (DEBUG) perror("getsocknameudp_sendsock");
|
@ -1,12 +0,0 @@
|
||||
diff -Naur smap.broadcast/test_supported.c smap/test_supported.c
|
||||
--- smap.broadcast/test_supported.c 2009-06-14 21:41:49.000000000 -0400
|
||||
+++ smap/test_supported.c 2009-06-14 21:51:17.000000000 -0400
|
||||
@@ -49,6 +49,8 @@
|
||||
{"Supported: timer, 100rel, replaces, callerid", 13},
|
||||
/* Cisco 79x0 */
|
||||
{"Supported: replaces,join,norefersub", 14},
|
||||
+ /* Tecom IP2007 */
|
||||
+ {"Supported: 100rel,replaces", 15 },
|
||||
{"", 0}
|
||||
};
|
||||
|
@ -1,63 +0,0 @@
|
||||
diff -Naur smap.supported/config.h smap/config.h
|
||||
--- smap.supported/config.h 2009-06-14 22:18:57.000000000 -0400
|
||||
+++ smap/config.h 2009-06-24 16:36:50.000000000 -0400
|
||||
@@ -113,6 +113,7 @@
|
||||
|
||||
#define DEFAULT_SIP_PORT 5060
|
||||
#define DEFAULT_TIMEOUT 500 /* in ms */
|
||||
+#define DEFAULT_RATELIMIT 25
|
||||
|
||||
/* randomizer related ********************************************************/
|
||||
enum { RAND_CALLID = 1, RAND_TAG, RAND_CSEQ, RAND_BRANCH };
|
||||
diff -Naur smap.supported/listener.c smap/listener.c
|
||||
--- smap.supported/listener.c 2009-06-14 22:18:57.000000000 -0400
|
||||
+++ smap/listener.c 2009-06-15 04:36:40.000000000 -0400
|
||||
@@ -130,7 +130,7 @@
|
||||
/* use Call-ID to match response to requests */
|
||||
callid = response_getcallid(msg);
|
||||
if (callid == 0) {
|
||||
- error(ERR_NOTICE, "could not parse Call-ID");
|
||||
+ error(ERR_DEBUG, "could not parse Call-ID");
|
||||
goto nextmsg;
|
||||
}
|
||||
state = state_lookup_by_callid(callid);
|
||||
diff -Naur smap.supported/results.c smap/results.c
|
||||
--- smap.supported/results.c 2009-06-14 22:18:57.000000000 -0400
|
||||
+++ smap/results.c 2009-06-24 16:38:00.000000000 -0400
|
||||
@@ -39,6 +39,7 @@
|
||||
(task->results & RES_ICMP_REACH) ? "reachable" : "unreachable",
|
||||
(task->results & RES_SIP_ENABLED) ? "enabled" : "disabled");
|
||||
if (task->results & RES_SIP_ENABLED)
|
||||
+ error(ERR_DEBUG, "Looking up fingerprint");
|
||||
fingerprint_lookup(*task->fp);
|
||||
break;
|
||||
default:
|
||||
diff -Naur smap.supported/smap.c smap/smap.c
|
||||
--- smap.supported/smap.c 2009-06-14 22:18:57.000000000 -0400
|
||||
+++ smap/smap.c 2009-06-24 17:09:39.000000000 -0400
|
||||
@@ -197,7 +197,7 @@
|
||||
config.sip_port = DEFAULT_SIP_PORT;
|
||||
config.sip_domain = NULL;
|
||||
config.timeout = DEFAULT_TIMEOUT;
|
||||
- config.ratelimit = 0;
|
||||
+ config.ratelimit = DEFAULT_RATELIMIT;
|
||||
|
||||
printf("\nsmap %s <hs@123.org> "
|
||||
"http://www.wormulon.net/\n\n", SMAP_VERSION);
|
||||
@@ -338,12 +338,15 @@
|
||||
break; /* make gcc happy */
|
||||
}
|
||||
error_while_scanning:
|
||||
-
|
||||
pthread_join(pth_worker, NULL);
|
||||
pthread_kill(pth_worker, SIGINT);
|
||||
pthread_kill(pth_listener, SIGINT);
|
||||
stats_dump();
|
||||
|
||||
+ signal(SIGINT, SIG_DFL);
|
||||
+ signal(SIGTERM, SIG_DFL);
|
||||
+ signal(SIGKILL, SIG_DFL);
|
||||
+
|
||||
/* clean up */
|
||||
pthread_mutex_destroy(&scrlock);
|
||||
pthread_mutex_destroy(&tasklock);
|
@ -1,277 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2006-2011 OpenWrt.org
|
||||
# Copyright (C) 2006-2011 SMBPhone
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
include $(INCLUDE_DIR)/uclibc++.mk
|
||||
|
||||
RELEASEVER:=3.2.0
|
||||
|
||||
PKG_NAME:=yate
|
||||
PKG_VERSION:=$(RELEASEVER)-1
|
||||
PKG_RELEASE:=3
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://yate.null.ro/tarballs/yate3/
|
||||
PKG_MD5SUM:=8ef5f0c420cb41ad2b5828fdba28c4ee
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
||||
|
||||
PKG_INSTALL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/$(PKG_NAME)/Default
|
||||
SUBMENU:=Telephony
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
URL:=http://yate.null.ro/
|
||||
MAINTAINER:=Daniel Dickinson <openwrt@cshore.neomailbox.net>
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)
|
||||
$(call Package/yate/Default)
|
||||
DEPENDS:=+libpthread $(CXX_DEPENDS)
|
||||
TITLE:=Yet Another Telphony Engine
|
||||
MENU:=1
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/conffiles
|
||||
/etc/yate/yate.conf
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/Default/description
|
||||
Is a next-generation telephony engine focused on the VoIP and PSTN. It does
|
||||
SIP, H.323, IAX, PSTN, and more.
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)-scripts-php
|
||||
$(call Package/yate/Default)
|
||||
DEPENDS += $(PKG_NAME) $(PKG_NAME)-mod-extmodule +php5 +php5-cli
|
||||
TITLE:= PHP Scripts and script libraries for Yate
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)-scripts-perl
|
||||
$(call Package/yate/Default)
|
||||
DEPENDS += $(PKG_NAME) $(PKG_NAME)-mod-extmodule +microperl
|
||||
TITLE:= Perl module for Yate
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)-scripts-python
|
||||
$(call Package/yate/Default)
|
||||
DEPENDS += $(PKG_NAME) $(PKG_NAME)-mod-extmodule +python-mini
|
||||
TITLE:= Python module for Yate
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)-sounds
|
||||
$(call Package/yate/Default)
|
||||
DEPENDS += $(PKG_NAME)
|
||||
TITLE := Sounds for Yate
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)-collection-basic
|
||||
$(call Package/yate/Default)
|
||||
DEPENDS += $(PKG_NAME) \
|
||||
+$(PKG_NAME)-sounds \
|
||||
+$(PKG_NAME)-mod-dumbchan \
|
||||
+$(PKG_NAME)-mod-regfile \
|
||||
+$(PKG_NAME)-mod-regexroute \
|
||||
+$(PKG_NAME)-mod-rmanager \
|
||||
+$(PKG_NAME)-mod-tonegen \
|
||||
+$(PKG_NAME)-mod-yrtpchan \
|
||||
+$(PKG_NAME)-mod-ysipchan
|
||||
TITLE := Basic Yate Server
|
||||
endef
|
||||
|
||||
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include $(if $(CONFIG_BIG_ENDIAN),-DBIGENDIAN,)
|
||||
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-libqt4 \
|
||||
--without-qtstatic \
|
||||
--without-pwlib \
|
||||
--without-coredumper \
|
||||
--without-doxygen \
|
||||
--without-kdoc \
|
||||
--with-spandsp="$(STAGING_DIR)/usr/include" \
|
||||
--with-libgsm="$(STAGING_DIR)/usr/include/gsm" \
|
||||
--with-mysql="$(STAGING_DIR)/usr" \
|
||||
--with-openssl="$(STAGING_DIR)/usr" \
|
||||
--with-libpq="$(STAGING_DIR)/usr" \
|
||||
--with-libspeex="$(STAGING_DIR)/usr/include/speex" \
|
||||
--with-zaptel="$(STAGING_DIR)/usr/include" \
|
||||
--with-zlib="$(STAGING_DIR)/usr"
|
||||
|
||||
CONFIGURE_VARS+= \
|
||||
CFLAGS="$$$$CFLAGS -nostdinc++" \
|
||||
LDFLAGS="$$$$LDFLAGS -nodefaultlibs" \
|
||||
LIBS="-lc -luClibc++ -lpthread -lresolv -ldl -lm -lc $(LIBGCC_S)"
|
||||
|
||||
define Package/$(PKG_NAME)/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
|
||||
for yatelib in "" sig mgcp jabber; do \
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libyate$$$${yatelib}.so.$(RELEASEVER) $(1)/usr/lib ;\
|
||||
$(LN) ./libyate$$$${yatelib}.so.$(RELEASEVER) $(1)/usr/lib/libyate$$$${yatelib}.so ;\
|
||||
done
|
||||
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/yate $(1)/usr/bin/
|
||||
$(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/yate/yate.conf $(1)/etc/$(PKG_NAME)/yate.conf
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)-scripts-php/install
|
||||
$(INSTALL_DIR) $(1)/usr/share/yate/scripts
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/leavemail.php $(1)/usr/share/yate/scripts/
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/queue_in.php $(1)/usr/share/yate/scripts/
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/queue_out.php $(1)/usr/share/yate/scripts/
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/route.php $(1)/usr/share/yate/scripts/
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/voicemail.php $(1)/usr/share/yate/scripts/
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/libvoicemail.php $(1)/usr/share/yate/scripts/
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/libyatechan.php $(1)/usr/share/yate/scripts/
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/libyateivr.php $(1)/usr/share/yate/scripts/
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/libyate.php $(1)/usr/share/yate/scripts/
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)-scripts-perl/install
|
||||
$(INSTALL_DIR) $(1)/usr/share/yate/scripts
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/Yate.pm $(1)/usr/share/yate/scripts/
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)-scripts-python/install
|
||||
$(INSTALL_DIR) $(1)/usr/share/yate/scripts
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/libyate.py $(1)/usr/share/yate/scripts/
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)-sounds/install
|
||||
$(INSTALL_DIR) $(1)/usr/share/yate/sounds
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/share/yate/sounds/ $(1)/usr/share/yate/
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)-collection-basic/install
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(STAGING_DIR)/usr/include
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(STAGING_DIR)/usr/include/
|
||||
$(INSTALL_DIR) $(STAGING_DIR)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(STAGING_DIR)/usr/lib/
|
||||
endef
|
||||
|
||||
define BuildPlugin
|
||||
define Package/$(PKG_NAME)-mod-$(1)
|
||||
$(call Package/yate/Default)
|
||||
DEPENDS:= $(PKG_NAME) $(4)
|
||||
TITLE:=$(3)
|
||||
endef
|
||||
|
||||
$(if $(PKG_BUILD_DIR)/conf.d/$(1).conf.sample,
|
||||
define Package/$(PKG_NAME)-mod-$(1)/conffiles
|
||||
/etc/yate/$(1).conf
|
||||
endef
|
||||
,)
|
||||
|
||||
define Package/$(PKG_NAME)-mod-$(1)/description
|
||||
$(3) module for $(PKG_NAME)
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)-mod-$(1)/install
|
||||
$$(INSTALL_DIR) $$(1)/usr/lib/yate/$(2)
|
||||
$$(INSTALL_BIN) $$(PKG_INSTALL_DIR)/usr/lib/yate/$(2)/$(1).yate $$(1)/usr/lib/yate/$(2)/$(1).yate
|
||||
if [ -f $$(PKG_INSTALL_DIR)/etc/yate/$(1).conf ]; then \
|
||||
$$(INSTALL_DIR) $$(1)/etc/yate ;\
|
||||
$$(INSTALL_DATA) $$(PKG_INSTALL_DIR)/etc/yate/$(1).conf $$(1)/etc/yate/ ;\
|
||||
fi
|
||||
$(if $(5),$(foreach extra_file,$(5),\
|
||||
$(INSTALL_DIR) $$(1)$(dir $(extra_file)) ; \
|
||||
$(CP) $(PKG_INSTALL_DIR)$(extra_file) $$(1)$(extra_file) ; \
|
||||
),)
|
||||
endef
|
||||
|
||||
$$(eval $$(call BuildPackage,$(PKG_NAME)-mod-$(1)))
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,$(PKG_NAME)))
|
||||
$(eval $(call BuildPackage,$(PKG_NAME)-collection-basic))
|
||||
$(eval $(call BuildPackage,$(PKG_NAME)-scripts-php))
|
||||
$(eval $(call BuildPackage,$(PKG_NAME)-scripts-perl))
|
||||
$(eval $(call BuildPackage,$(PKG_NAME)-scripts-python))
|
||||
$(eval $(call BuildPackage,$(PKG_NAME)-sounds))
|
||||
$(eval $(call BuildPlugin,accfile,server,SIP or H.323 client (from file),))
|
||||
$(eval $(call BuildPlugin,alsachan,client,ALSA Sound Channel,+alsa-lib))
|
||||
$(eval $(call BuildPlugin,amrnbcodec,,AMR-NB Codec,@BROKEN)) # Missing amr-nb library
|
||||
$(eval $(call BuildPlugin,analog,server,Analog (e.g. POTS) Channel,))
|
||||
$(eval $(call BuildPlugin,analogdetect,server,Analog Data Detector,))
|
||||
$(eval $(call BuildPlugin,analyzer,,Test Call Generator and AQ Analyzer,))
|
||||
$(eval $(call BuildPlugin,callcounters,server,Count Active Call Legs,))
|
||||
$(eval $(call BuildPlugin,callfork,,Call Forker,))
|
||||
$(eval $(call BuildPlugin,callgen,,Call Generator,))
|
||||
$(eval $(call BuildPlugin,ccongestion,server,Accept Status from Installed Engine Monitors,))
|
||||
$(eval $(call BuildPlugin,cdrbuild,,Call Detail Record Builder,))
|
||||
$(eval $(call BuildPlugin,cdrfile,,Call Detail Record to File,))
|
||||
$(eval $(call BuildPlugin,ciscosm,server,SS7 Support,))
|
||||
$(eval $(call BuildPlugin,clustering,server,Clustering Server Support,))
|
||||
$(eval $(call BuildPlugin,conference,,Conference Room Mixer,))
|
||||
$(eval $(call BuildPlugin,cpuload,server,Monitor CPU load and Inform Yate,))
|
||||
$(eval $(call BuildPlugin,dbpbx,server,PBX IVR and Multi-routing from Database,))
|
||||
$(eval $(call BuildPlugin,dbwave,server,Wav Media for DB Storage,+$(PKG_NAME)-mod-wavefile))
|
||||
$(eval $(call BuildPlugin,dumbchan,,Dummy Channel,))
|
||||
$(eval $(call BuildPlugin,enumroute,,ENUM Routing,))
|
||||
$(eval $(call BuildPlugin,extmodule,,External Module Handler,))
|
||||
$(eval $(call BuildPlugin,faxchan,,Spandsp Fax Channel,+libspandsp))
|
||||
$(eval $(call BuildPlugin,filetransfer,,File Transfer Driver,))
|
||||
$(eval $(call BuildPlugin,gsmcodec,,GSM Codec,+libgsm))
|
||||
$(eval $(call BuildPlugin,h323chan,,Open H.323 Channel,+libopenh323 @BROKEN)) # libopenh323 doesn't create package or stagin_dir includes or libs
|
||||
$(eval $(call BuildPlugin,heartbeat,server,Linux-HA compatible heartbeat,))
|
||||
$(eval $(call BuildPlugin,ilbccodec,,iLBC Codec,))
|
||||
$(eval $(call BuildPlugin,isupmangler,server,ISUP paramter mangling in a STP,))
|
||||
$(eval $(call BuildPlugin,jabberclient,client,Jabber Client,))
|
||||
$(eval $(call BuildPlugin,jabberserver,jabber,Jabber Server,))
|
||||
$(eval $(call BuildPlugin,jbfeatures,jabber,Jabber Server Features,))
|
||||
$(eval $(call BuildPlugin,lateroute,server,Last Chance Routing,))
|
||||
$(eval $(call BuildPlugin,lksctp,server,SCTP sockets using linux kernel,@BROKEN)) # Missing libraries/header files
|
||||
$(eval $(call BuildPlugin,mgcpca,server,Media Gateway Control Protocol Agent,))
|
||||
$(eval $(call BuildPlugin,mgcpgw,server,Media Gateway Control Protocol Gateway,))
|
||||
$(eval $(call BuildPlugin,moh,,On Hold (music) Generator,))
|
||||
$(eval $(call BuildPlugin,monitoring,server,Monitoring/gathering Information,))
|
||||
$(eval $(call BuildPlugin,mrcpspeech,server,MRCP v2 Voice/Tone Detector and Synthesizer,))
|
||||
$(eval $(call BuildPlugin,msgsniff,,Sample Message Sniffer,))
|
||||
$(eval $(call BuildPlugin,mux,,Data Multiplexor,))
|
||||
$(eval $(call BuildPlugin,mysqldb,server,MySQL Backend DB,+libmysqlclient-r))
|
||||
$(eval $(call BuildPlugin,openssl,,Encrypted transport (OpenSSL),+libopenssl))
|
||||
$(eval $(call BuildPlugin,osschan,client,OSS Sound Channel,))
|
||||
$(eval $(call BuildPlugin,park,server,Call Parking,))
|
||||
$(eval $(call BuildPlugin,pbx,,PBX Message Handlers,))
|
||||
$(eval $(call BuildPlugin,pbxassist,server,Full featured PBX and IVR,))
|
||||
$(eval $(call BuildPlugin,pgsqldb,server,PostgrestSQL Backend DB,+libpq))
|
||||
$(eval $(call BuildPlugin,presence,server,Presence,))
|
||||
$(eval $(call BuildPlugin,regfile,server,Registration based on users in file,))
|
||||
$(eval $(call BuildPlugin,queues,server,Call Distribution and Queues from Database,))
|
||||
$(eval $(call BuildPlugin,queuesnotify,server,Notify when queued call status changes,))
|
||||
$(eval $(call BuildPlugin,regexroute,,Regular Expression Based Routing,))
|
||||
$(eval $(call BuildPlugin,rmanager,,Yate Remote Management,))
|
||||
$(eval $(call BuildPlugin,sip_cnam_lnp,sip,Query CNAM and LNP databases using SIP INVITE,))
|
||||
$(eval $(call BuildPlugin,sigtransport,server,SIGTRAN (SS7 over IP) connection provider,))
|
||||
$(eval $(call BuildPlugin,sipfeatures,server,SIP Features (SUBSCRIBE/NOTIFY),))
|
||||
$(eval $(call BuildPlugin,speexcodec,,Speex Codec,+libspeex))
|
||||
$(eval $(call BuildPlugin,subscription,server,Subcription handler and presence notifier,))
|
||||
$(eval $(call BuildPlugin,tdmcard,server,TDM Cards Signalling and Data Driver,@BROKEN)) # Missing TDM libraries
|
||||
$(eval $(call BuildPlugin,tonedetect,,Detectors for Various Tones,))
|
||||
$(eval $(call BuildPlugin,tonegen,,Tones Generator,))
|
||||
$(eval $(call BuildPlugin,users,server,Users,))
|
||||
$(eval $(call BuildPlugin,wavefile,,Wav file Record and Playback,))
|
||||
$(eval $(call BuildPlugin,wpcard,server,Wanpipe PRI cards Signalling and Data Driver,@BROKEN)) # Mising wanpipe and PRI libraries
|
||||
$(eval $(call BuildPlugin,yiaxchan,,IAX Channel,))
|
||||
$(eval $(call BuildPlugin,yjinglechan,,Jingle Channel,))
|
||||
$(eval $(call BuildPlugin,yrtpchan,,RTP Channel and Other Data Helper,))
|
||||
$(eval $(call BuildPlugin,yradius,server,RADIUS Client,))
|
||||
$(eval $(call BuildPlugin,ysigchan,server,SS7/ISDN Protocols - Yate Signalling Library,))
|
||||
$(eval $(call BuildPlugin,ysipchan,,SIP Channel,))
|
||||
$(eval $(call BuildPlugin,ysockschan,,SOCKS Channel,))
|
||||
$(eval $(call BuildPlugin,ysnmpagent,server,SNMP Protocol Agent,,/usr/share/yate/data/NULL-TEAM-MIB.txt /usr/share/yate/data/snmp_mib.conf /usr/share/yate/data/YATE-MIB.txt))
|
||||
$(eval $(call BuildPlugin,ystunchan,,STUN Support,))
|
||||
$(eval $(call BuildPlugin,zapcard,server,Zaptel Card Signalling and Data Driver,+zaptel14-libtonezone))
|
||||
$(eval $(call BuildPlugin,zlibcompress,,Zlib Compression,+zlib))
|
@ -1,111 +0,0 @@
|
||||
--- a/engine/Makefile.in
|
||||
+++ b/engine/Makefile.in
|
||||
@@ -31,8 +31,9 @@ CLSOBJS := TelEngine.o ObjList.o HashLis
|
||||
ENGOBJS := Configuration.o Message.o Engine.o Plugin.o
|
||||
TELOBJS := DataFormat.o Channel.o
|
||||
CLIOBJS := Client.o ClientLogic.o
|
||||
+MISCOBJS := dn_skipname.o
|
||||
|
||||
-LIBOBJS := $(CLSOBJS) $(ENGOBJS) $(TELOBJS) $(CLIOBJS)
|
||||
+LIBOBJS := $(CLSOBJS) $(ENGOBJS) $(TELOBJS) $(CLIOBJS) $(MISCOBJS)
|
||||
CLEANS = $(LIBOBJS) core
|
||||
CCOMPILE = $(CC) $(DEFS) $(DEBUG) $(INCLUDES) $(CFLAGS)
|
||||
COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CPPFLAGS)
|
||||
@@ -109,6 +110,9 @@ String.o: @srcdir@/String.cpp $(MKDEPS)
|
||||
regex.o: @top_srcdir@/engine/regex/regex.c $(MKDEPS)
|
||||
$(CCOMPILE) -DSTDC_HEADERS $(REGEX_INC) -c $<
|
||||
|
||||
+dn_skipname.o: @srcdir@/dn_skipname.c $(MKDEPS)
|
||||
+ $(CCOMPILE) -DSTDC_HEADERS -c $<
|
||||
+
|
||||
%.o: @srcdir@/%.cpp $(MKDEPS) $(EINC)
|
||||
$(COMPILE) -c $<
|
||||
|
||||
--- /dev/null
|
||||
+++ b/engine/dn_skipname.c
|
||||
@@ -0,0 +1,85 @@
|
||||
+/* Taken from patch by Natanael Copa for uClibc in message
|
||||
+ * http://lists.busybox.net/pipermail/uclibc/2009-September/042971.html
|
||||
+ * Turned into yate patch by Daniel Dickinson <openwrt@cshore.neomailbox.net>, Mar 11, 2011
|
||||
+*/
|
||||
+#include <sys/types.h>
|
||||
+#include <resolv.h>
|
||||
+
|
||||
+/* taken from OpenBSD source */
|
||||
+/*
|
||||
+ * Copyright (c) 1985, 1993
|
||||
+ * The Regents of the University of California. All rights reserved.
|
||||
+ *
|
||||
+ * Redistribution and use in source and binary forms, with or without
|
||||
+ * modification, are permitted provided that the following conditions
|
||||
+ * are met:
|
||||
+ * 1. Redistributions of source code must retain the above copyright
|
||||
+ * notice, this list of conditions and the following disclaimer.
|
||||
+ * 2. Redistributions in binary form must reproduce the above copyright
|
||||
+ * notice, this list of conditions and the following disclaimer in the
|
||||
+ * documentation and/or other materials provided with the distribution.
|
||||
+ * 3. Neither the name of the University nor the names of its contributors
|
||||
+ * may be used to endorse or promote products derived from this software
|
||||
+ * without specific prior written permission.
|
||||
+ *
|
||||
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
+ * SUCH DAMAGE.
|
||||
+ * -
|
||||
+ * Portions Copyright (c) 1993 by Digital Equipment Corporation.
|
||||
+ *
|
||||
+ * Permission to use, copy, modify, and distribute this software for any
|
||||
+ * purpose with or without fee is hereby granted, provided that the above
|
||||
+ * copyright notice and this permission notice appear in all copies, and that
|
||||
+ * the name of Digital Equipment Corporation not be used in advertising or
|
||||
+ * publicity pertaining to distribution of the document or software without
|
||||
+ * specific, written prior permission.
|
||||
+ *
|
||||
+ * THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL
|
||||
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
|
||||
+ * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL DIGITAL EQUIPMENT
|
||||
+ * CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
|
||||
+ * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
|
||||
+ * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
||||
+ * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||
+ * SOFTWARE.
|
||||
+ */
|
||||
+
|
||||
+/*
|
||||
+ * Skip over a compressed domain name. Return the size or -1.
|
||||
+ */
|
||||
+int
|
||||
+__dn_skipname(const u_char *comp_dn, const u_char *eom)
|
||||
+{
|
||||
+ const u_char *cp;
|
||||
+ int n;
|
||||
+
|
||||
+ cp = comp_dn;
|
||||
+ while (cp < eom && (n = *cp++)) {
|
||||
+ /*
|
||||
+ * check for indirection
|
||||
+ */
|
||||
+ switch (n & INDIR_MASK) {
|
||||
+ case 0: /* normal case, n == len */
|
||||
+ cp += n;
|
||||
+ continue;
|
||||
+ case INDIR_MASK: /* indirection */
|
||||
+ cp++;
|
||||
+ break;
|
||||
+ default: /* illegal type */
|
||||
+ return (-1);
|
||||
+ }
|
||||
+ break;
|
||||
+ }
|
||||
+ if (cp > eom)
|
||||
+ return (-1);
|
||||
+ return (cp - comp_dn);
|
||||
+}
|
Loading…
x
Reference in New Issue
Block a user