asterisk 1.8.x: add chan_mobile support
authorHans Zandbelt <hans.zandbelt@gmail.com>
Wed, 16 Feb 2011 20:14:41 +0000 (20:14 +0000)
committerHans Zandbelt <hans.zandbelt@gmail.com>
Wed, 16 Feb 2011 20:14:41 +0000 (20:14 +0000)
SVN-Revision: 25559

net/asterisk-1.8.x/Makefile
net/asterisk-1.8.x/patches/100-build_tools-iconv.patch
net/asterisk-1.8.x/patches/200-menuselect_tree_addons.patch [new file with mode: 0644]

index b561c0cd79376a498e408620b0735bd51cb18d68..aa75aa089e7b93b9329d12da67c00153cd3fc8a0 100644 (file)
@@ -128,6 +128,17 @@ $(call Package/asterisk18/Default/description)
  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-curl
 $(call Package/asterisk18/Default)
   TITLE:=CURL support
@@ -359,6 +370,17 @@ define Package/asterisk18-chan-gtalk/install
        $(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-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/
@@ -394,6 +416,7 @@ $(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-curl))
 $(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))
index a6cb45c1a0e82592a31af48fbafcb3e47d4b73eb..1073bda9eaccb3e606917b98af239d78758a65b4 100644 (file)
@@ -1,6 +1,6 @@
---- asterisk-1.8.0/build_tools/menuselect-deps.in.orig 2010-07-27 18:30:38.000000000 -0400
-+++ asterisk-1.8.0/build_tools/menuselect-deps.in      2010-10-26 00:28:45.989447002 -0400
-@@ -14,7 +14,7 @@
+--- a/build_tools/menuselect-deps.in
++++ b/build_tools/menuselect-deps.in
+@@ -14,7 +14,7 @@ GTK2=@PBX_GTK2@
  H323=@PBX_H323@
  HOARD=@PBX_HOARD@
  ICAL=@PBX_ICAL@
diff --git a/net/asterisk-1.8.x/patches/200-menuselect_tree_addons.patch b/net/asterisk-1.8.x/patches/200-menuselect_tree_addons.patch
new file mode 100644 (file)
index 0000000..d5ec2db
--- /dev/null
@@ -0,0 +1,37 @@
+--- a/menuselect-tree
++++ b/menuselect-tree
+@@ -4,28 +4,28 @@
+ <category name="MENUSELECT_ADDONS" displayname="Add-ons (See README-addons.txt)" remove_on_change="addons/modules.link">
+ <member name="app_mysql" displayname="Simple Mysql Interface" remove_on_change="addons/app_mysql.o addons/app_mysql.so">
+       <depend>mysqlclient</depend>
+-      <defaultenabled>no</defaultenabled>
++      <defaultenabled>yes</defaultenabled>
+ </member>
+ <member name="app_saycountpl" displayname="Say polish counting words" remove_on_change="addons/app_saycountpl.o addons/app_saycountpl.so">
+-      <defaultenabled>no</defaultenabled>
++      <defaultenabled>yes</defaultenabled>
+ </member>
+ <member name="cdr_mysql" displayname="MySQL CDR Backend" remove_on_change="addons/cdr_mysql.o addons/cdr_mysql.so">
+       <depend>mysqlclient</depend>
+-      <defaultenabled>no</defaultenabled>
++      <defaultenabled>yes</defaultenabled>
+ </member>
+ <member name="chan_mobile" displayname="Bluetooth Mobile Device Channel Driver" remove_on_change="addons/chan_mobile.o addons/chan_mobile.so">
+       <depend>bluetooth</depend>
+-      <defaultenabled>no</defaultenabled>
++      <defaultenabled>yes</defaultenabled>
+ </member>
+ <member name="chan_ooh323" displayname="Objective Systems H323 Channel" remove_on_change="addons/chan_ooh323.o addons/chan_ooh323.so">
+-      <defaultenabled>no</defaultenabled>
++      <defaultenabled>yes</defaultenabled>
+ </member>
+ <member name="format_mp3" displayname="MP3 format [Any rate but 8000hz mono is optimal]" remove_on_change="addons/format_mp3.o addons/format_mp3.so">
+       <defaultenabled>no</defaultenabled>
+ </member>
+ <member name="res_config_mysql" displayname="MySQL RealTime Configuration Driver" remove_on_change="addons/res_config_mysql.o addons/res_config_mysql.so">
+       <depend>mysqlclient</depend>
+-      <defaultenabled>no</defaultenabled>
++      <defaultenabled>yes</defaultenabled>
+ </member>
+ </category>
+ <category name="MENUSELECT_APPS" displayname="Applications" remove_on_change="apps/modules.link">