The end goal (for me), is to use an Asterisk PBX with my Android phone for VOIP calling. I want to cut pbxes.org out of the mix. Since my router is running 24/7, it's the perfect place to put Asterisk.
So far I've managed to install Asterisk. I will add an additional section detailing how to make use of this with Android once I figure it out.
Note: You must have Merlin's Asuswrt and Entware installed on your RT-N66U. I would assume that this will also work on the RT-AC66U though I can't confirm. You will also need a text editor- I recommend nano.
Install the required packages:
As listed in the Read Me, edit two configuration files. (README)
Change to the asterisk directory:
List directory contents:
Create http.conf:
Copy and paste the following into the file:
Hit CTRL+X, then Y, then Enter to save.
Edit manager.conf:
Make sure these lines in your manager.conf match those listed below. NOTE- Double check to remove the comments and change [mark] to [admin]:
Hit CTRL+X, then Y, then Enter to save.
Access your router Asterisk GUI via your LAN:
admin/passwordyouusedinmanager.conf
NOTE: After logging in, the GUI would continuously reload, just barely flashing this long enough to be comprehensible: Asterisk is checking write permissions of GUI folder
-If you tried to access your Asterisk GUI before completing your configuration (as did I), you'll probably need to reload Asterisk so that the configuration file is reloaded. Specifically, the "originate" part of the "write:" line in the manager.conf file.
Connect to the Asterisk server:
Reload Asterisk:
This will dump you back out to the command prompt. Close the GUI webpage and reopen it, Log in and you should be good to go. If it doesn't work right away, give it a few minutes, it should clear the problem.
So far I've managed to install Asterisk. I will add an additional section detailing how to make use of this with Android once I figure it out.
Note: You must have Merlin's Asuswrt and Entware installed on your RT-N66U. I would assume that this will also work on the RT-AC66U though I can't confirm. You will also need a text editor- I recommend nano.
Install the required packages:
Code:
opkg install asterisk18 asterisk-gui asterisk18-app-system asterisk18-chan-local
As listed in the Read Me, edit two configuration files. (README)
Change to the asterisk directory:
Code:
cd /opt/etc/asterisk/
List directory contents:
Code:
ls
Create http.conf:
Code:
nano http.conf
Copy and paste the following into the file:
Code:
[general]
enabled = yes
enablestatic = yes
Hit CTRL+X, then Y, then Enter to save.
Edit manager.conf:
Code:
nano manager.conf
Make sure these lines in your manager.conf match those listed below. NOTE- Double check to remove the comments and change [mark] to [admin]:
Code:
[general]
enabled = yes
webenabled = yes
[admin]
secret = putyourpasswordhere
read = system,call,log,verbose,command,agent,config,read,write,originate
write = system,call,log,verbose,command,agent,config,read,write,originate
Hit CTRL+X, then Y, then Enter to save.
Access your router Asterisk GUI via your LAN:
Code:
http://192.168.1.1:8088/static/config/index.html
NOTE: After logging in, the GUI would continuously reload, just barely flashing this long enough to be comprehensible: Asterisk is checking write permissions of GUI folder
-If you tried to access your Asterisk GUI before completing your configuration (as did I), you'll probably need to reload Asterisk so that the configuration file is reloaded. Specifically, the "originate" part of the "write:" line in the manager.conf file.
Connect to the Asterisk server:
Code:
asterisk -r
Reload Asterisk:
Code:
core restart now
This will dump you back out to the command prompt. Close the GUI webpage and reopen it, Log in and you should be good to go. If it doesn't work right away, give it a few minutes, it should clear the problem.
Last edited: