Check
here.
Install Asterisk
Now we can install Asterisk. The way we installed Asterisk was with Optware. First, download the Optware install script...
wget http://www.toao.net/pub/VoIP/optware-install-ddwrt.sh -O - | tr -d '\r' > /tmp/optware-install.sh
...and run it:
sh /tmp/optware-install.sh
Installing Asterisk is as simple as:
ipkg update
ipkg upgrade
ipkg install asterisk16
ipkg may recommend some other packages to install such as sound and music-on-hold files. Install them if you want - we find them useful. We only installed the uLaw versions because we only use the G.711 codec.
Start Asterisk
Most likely you will want Asterisk to load automatically. Return to the Tomato setup page, navigate to USB and NAS, and then to USB support. Add the following to the Run after mounting box:
cru "a" "asterisk" "*" "*" "*" "*" "*" "asterisk"
This will create a cron job that will check to make sure Asterisk is loaded every minute. If Asterisk is terminated for any reason - for example lack of memory - the cron job will restart it in one minute. This should not happen if you've followed all of our directions but it it is nice to have just in case. One side effect to this is that "Remote UNIX connection/Remote UNIX connection disconnected" will appear in the CLI every minute. At this point you may start asterisk by running the
asterisk command, or by rebooting you router and waiting for the cron job to start it.
Accessing the Asterisk command line
To access the Asterisk command line, type the following:
The r switch connects to the already-running Asterisk, and vvv tells Asterisk to set verbosity to 3. This is useful when troubleshooting your dial plan.
No comments:
Post a Comment