+
+ # build and install chan capi (needed for isdn)
+ cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(CHAN_CAPI).tar.gz
+ cd $(DIR_SRC)/$(CHAN_CAPI) && make $(MAKETUNING)
+ cd $(DIR_SRC)/$(CHAN_CAPI) && make install
+ @rm -rf $(DIR_SRC)/$(CHAN_CAPI)
+
+ # build FAX stuff (TODO: get newer version... where to download source?)
+ cd $(DIR_SRC) && tar zxf $(DIR_DL)/agx-ast-addons-svn65.tgz
+ # bugfix: disable app_confcall (not supported with dahdi, but we can take meetme)
+ cd $(DIR_SRC)/agx-ast-addons && echo "project (agx-ast-addons-zaptel)" > ./app-dahdi/CMakeLists.txt
+ cd $(DIR_SRC)/agx-ast-addons && echo >> ./app-dahdi/CMakeLists.txt
+ # end bugfix
+ cd $(DIR_SRC)/agx-ast-addons && ./configure.sh
+ cd $(DIR_SRC)/agx-ast-addons && ./build.sh
+ @rm -rf $(DIR_SRC)/agx-ast-addons
+
+ # be sure all source is removed
+ @rm -rf $(DIR_APP) $(DIR_SRC)/asterisk-*
+
+ # remember backup-location
+ install -v -m 644 $(DIR_SRC)/config/backup/includes/asterisk /var/ipfire/backup/addons/includes/asterisk
+
+ # generate softlink (or asterisk will not work properly)
+ ln -sf /var/ipfire/asterisk /etc/asterisk
+
+ # make asterisk start with reboot
+ ln -sf /etc/rc.d/init.d/asterisk /etc/rc.d/rc0.d/K30asterisk
+ ln -sf /etc/rc.d/init.d/asterisk /etc/rc.d/rc6.d/K30asterisk
+ ln -sf /etc/rc.d/init.d/asterisk /etc/rc.d/rc3.d/S30asterisk
+
+ # all done