Add chan_h323 support for asterisk, closes #122

SVN-Revision: 3447
master
Florian Fainelli 19 years ago
parent 656470c08e
commit d1c034d8ab
  1. 2
      openwrt/package/Makefile
  2. 9
      openwrt/package/asterisk/Config.in
  3. 26
      openwrt/package/asterisk/Makefile
  4. 1
      openwrt/package/asterisk/ipkg/asterisk-chan-h323.conffiles
  5. 5
      openwrt/package/asterisk/ipkg/asterisk-chan-h323.control

@ -406,7 +406,7 @@ wx200d-compile: postgresql-compile
xsupplicant-compile: openssl-compile xsupplicant-compile: openssl-compile
ipsec-tools-compile: openssl-compile ipsec-tools-compile: openssl-compile
asterisk-compile: bluez-libs-compile ncurses-compile openssl-compile asterisk-compile: bluez-libs-compile ncurses-compile openssl-compile openh323-compile
ifneq ($(BR2_PACKAGE_ASTERISK_CODEC_SPEEX),) ifneq ($(BR2_PACKAGE_ASTERISK_CODEC_SPEEX),)
asterisk-compile: speex-compile asterisk-compile: speex-compile
endif endif

@ -21,6 +21,15 @@ config BR2_PACKAGE_ASTERISK_CHAN_BLUETOOTH
help help
The Bluetooth HandsFreeProfile support for Asterisk The Bluetooth HandsFreeProfile support for Asterisk
config BR2_PACKAGE_ASTERISK_CHAN_H323
prompt "asterisk-chan-h323.............. H.323 support for Asterisk"
tristate
default m if CONFIG_DEVEL
depends BR2_PACKAGE_ASTERISK
select BR2_PACKAGE_OPENH323
help
H.323 support for Asterisk
config BR2_PACKAGE_ASTERISK_CHAN_MGCP config BR2_PACKAGE_ASTERISK_CHAN_MGCP
prompt "asterisk-chan-mgcp.............. Media Gateway Control Protocol implementation" prompt "asterisk-chan-mgcp.............. Media Gateway Control Protocol implementation"
tristate tristate

@ -23,6 +23,7 @@ $(eval $(call PKG_template,ASTERISK_SQLITE,asterisk-sqlite,$(PKG_VERSION)-$(PKG_
$(eval $(call PKG_template,ASTERISK_VOICEMAIL,asterisk-voicemail,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) $(eval $(call PKG_template,ASTERISK_VOICEMAIL,asterisk-voicemail,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
$(eval $(call PKG_template,ASTERISK_SOUNDS,asterisk-sounds,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) $(eval $(call PKG_template,ASTERISK_SOUNDS,asterisk-sounds,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
$(eval $(call PKG_template,ASTERISK_CHAN_BLUETOOTH,asterisk-chan-bluetooth,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) $(eval $(call PKG_template,ASTERISK_CHAN_BLUETOOTH,asterisk-chan-bluetooth,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
$(eval $(call PKG_template,ASTERISK_CHAN_H323,asterisk-chan-h323,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
$(eval $(call PKG_template,ASTERISK_CHAN_MGCP,asterisk-chan-mgcp,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) $(eval $(call PKG_template,ASTERISK_CHAN_MGCP,asterisk-chan-mgcp,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
$(eval $(call PKG_template,ASTERISK_CHAN_SKINNY,asterisk-chan-skinny,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) $(eval $(call PKG_template,ASTERISK_CHAN_SKINNY,asterisk-chan-skinny,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
$(eval $(call PKG_template,ASTERISK_CODEC_ILBC,asterisk-codec-ilbc,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) $(eval $(call PKG_template,ASTERISK_CODEC_ILBC,asterisk-codec-ilbc,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
@ -57,6 +58,21 @@ $(PKG_BUILD_DIR)/.configured:
touch $@ touch $@
$(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.built:
(cd $(PKG_BUILD_DIR)/channels/h323/ ; \
$(MAKE) \
CROSS_ARCH="Linux" \
CROSS_COMPILE="$(TARGET_CROSS)" \
CROSS_COMPILE_BIN="/void/" \
CROSS_COMPILE_TARGET="/void/" \
$(TARGET_CONFIGURE_OPTS) \
HOST_CC="$(HOSTCC)" \
OPTIMIZE="$(TARGET_CFLAGS)" \
PROC="$(ARCH)" \
DEBUG="" \
OPTIONS="-DLOW_MEMORY -Dlinux" \
OPENH323DIR=$(BUILD_DIR)/openh323-cvs-20051230 \
opt ; \
);
$(MAKE) -C "$(PKG_BUILD_DIR)" \ $(MAKE) -C "$(PKG_BUILD_DIR)" \
CROSS_ARCH="Linux" \ CROSS_ARCH="Linux" \
CROSS_COMPILE="$(TARGET_CROSS)" \ CROSS_COMPILE="$(TARGET_CROSS)" \
@ -77,6 +93,8 @@ $(PKG_BUILD_DIR)/.built:
EXTRA_RES_MODULES="$(EXTRA_RES_MODULES)" \ EXTRA_RES_MODULES="$(EXTRA_RES_MODULES)" \
DESTDIR="$(PKG_INSTALL_DIR)" \ DESTDIR="$(PKG_INSTALL_DIR)" \
ASTVARLIBDIR="/usr/lib/asterisk" \ ASTVARLIBDIR="/usr/lib/asterisk" \
OPENH323DIR=$(BUILD_DIR)/openh323-cvs-20051230 \
PWLIBDIR=$(BUILD_DIR)/pwlib \
all install samples all install samples
rm -f $(PKG_INSTALL_DIR)/etc/asterisk/*.old rm -f $(PKG_INSTALL_DIR)/etc/asterisk/*.old
touch $@ touch $@
@ -203,6 +221,14 @@ $(IPKG_ASTERISK_CHAN_BLUETOOTH):
$(RSTRIP) $(IDIR_ASTERISK_CHAN_BLUETOOTH) $(RSTRIP) $(IDIR_ASTERISK_CHAN_BLUETOOTH)
$(IPKG_BUILD) $(IDIR_ASTERISK_CHAN_BLUETOOTH) $(PACKAGE_DIR) $(IPKG_BUILD) $(IDIR_ASTERISK_CHAN_BLUETOOTH) $(PACKAGE_DIR)
$(IPKG_ASTERISK_CHAN_H323):
install -d -m0755 $(IDIR_ASTERISK_CHAN_H323)/etc/asterisk
install -m0644 $(PKG_BUILD_DIR)/channels/h323/h323.conf.sample $(IDIR_ASTERISK_CHAN_H323)/etc/asterisk/h323.conf
install -d -m0755 $(IDIR_ASTERISK_CHAN_H323)/usr/lib/asterisk/modules
install -m0755 $(PKG_BUILD_DIR)/channels/chan_h323.so $(IDIR_ASTERISK_CHAN_H323)/usr/lib/asterisk/modules/
$(RSTRIP) $(IDIR_ASTERISK_CHAN_H323)
$(IPKG_BUILD) $(IDIR_ASTERISK_CHAN_H323) $(PACKAGE_DIR)
$(IPKG_ASTERISK_CHAN_MGCP): $(IPKG_ASTERISK_CHAN_MGCP):
install -d -m0755 $(IDIR_ASTERISK_CHAN_MGCP)/etc/asterisk install -d -m0755 $(IDIR_ASTERISK_CHAN_MGCP)/etc/asterisk
install -m0644 $(PKG_BUILD_DIR)/configs/mgcp.conf.sample $(IDIR_ASTERISK_CHAN_MGCP)/etc/asterisk/mgcp.conf install -m0644 $(PKG_BUILD_DIR)/configs/mgcp.conf.sample $(IDIR_ASTERISK_CHAN_MGCP)/etc/asterisk/mgcp.conf

@ -0,0 +1,5 @@
Package: asterisk-chan-h323
Priority: optional
Section: net
Description: H.323 support for Asterisk
Depends: asterisk, openh323
Loading…
Cancel
Save