{=wrt54g=}
====== Installing Asterisk onn WRT54G ======
===== Needed hardware =====
* WRT54G
* SD memory with at least 32mb
===== Known limitation =====
WRT54G have a small cpu, so realtime conversion may don't work.
If you want Chanspy feature, keep out from using WRT54G
===== Workarounds =====
* To overcome cpu limitation, you have to use only passthru mode.
* If you want voicemail, you have to convert sounds from gsm to -your codec-
===== Needed software and files =====
If you want to build source yourself, you need:
* OpenWrt Development kit - Italian sound (http://mirror.tomato.it/ftp/pub/asterisk/suoni_ita/) {{en:wrt54g:it_mm_sounds_20060510.tar.gz|Local mirror}} (**{{dlcounter>file?en:wrt54g:it_mm_sounds_20060510.tar.gz}} ** downloads)
* res_conv.so to convert from .gsm to -your codec-(http://redice.krisk.org/) {{en:wrt54g:res_conv-0.1.tgz|Local mirror}} (**{{dlcounter>file?en:wrt54g:res_conv-0.1.tgz}} ** downloads)
* http://nshmyrev.narod.ru/g729/g729.html
* Batch script to encode files (you have to mod it to encode to a codec other than g729) {{en:wrt54g:batch-convert.sh.gz|batch-convert.sh.gz}} (**{{dlcounter>file?en:wrt54g:batch-convert.sh.gz}} ** downloads)
If you want binary and all ready:
* Sounds re-encoded using {{en:wrt54g:sounds-g729.tar.gz|g729 sounds-g729.tar.gz}} (**{{dlcounter>file?en:wrt54g:sounds-g729.tar.gz}} ** downloads)
* My filesistems patch (download, untar and move what you want) {{en:wrt54g:linksys_fs.tar.gz|linksys_fs.tar.gz}} (**{{dlcounter>file?en:wrt54g:linksys_fs.tar.gz}} ** downloads)
===== Install =====
$ ipkg -d mmc install asterisk asterisk-sounds asterisk-voicemail wl \
ntpclient kmod-ext2 e2fsprogs libncurses libpthread ssmtp
===== Needed knowledges =====
A lot of experience if you want to build modules by yourself
===== Other workaround =====
Perhaps you may need qos:
This include an hack to overcame mini_fo bug
$ ipkg -d install qos-scripts
$ mv /etc/l7-protocols /mmc/etc
$ ln -s /mmc/etc/l7-protocols /etc
Fix reboot bug:
$ URL=http://downloads.openwrt.org/people/nbd/whiterussian/packages/kmod-ipt-filter_2.4.30-brcm-4_mipsel.ipk
$ ipkg -d mmc install $URL
===== Try sending sms to aladino =====
{{en:wrt54g:sms:helloworld|helloworld}} (**{{dlcounter>file?en:wrt54g:sms:helloworld}} ** downloads)
{{en:wrt54g:sms:helloworld.sh|helloworld.sh}} (**{{dlcounter>file?en:wrt54g:sms:helloworld.sh}} ** downloads)
===== g729 codec - Closed license!!!! =====
{{en:wrt54g:asterisk-g729-g723.diff.gz|Digium g729 codec patch}} (**{{dlcounter>file?en:wrt54g:asterisk-g729-g723.diff.gz}} ** downloads)
{{en:wrt54g:diffxwalterast.diff|Digium g729 codec patch}} (**{{dlcounter>file?en:wrt54g:diffxwalterast.diff}} ** downloads)
{{en:wrt54g:opal-g729-3.tar.gz|opal-g729-3.tar.gz}} (**{{dlcounter>file?en:wrt54g:opal-g729-3.tar.gz}} ** downloads)
{{en:wrt54g:openh323-g729-2.tar.gz|openh323-g729-2.tar.gz}} (**{{dlcounter>file?en:wrt54g:openh323-g729-2.tar.gz}} ** downloads)
{{en:wrt54g:playwav.tar.gz|playwav source code}} (**{{dlcounter>file?en:wrt54g:playwav.tar.gz}} ** downloads)