What's new

[TUTORIAL]Asterisk on the RT-N66U with Assuwrt & Entware

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Jcconnell

Occasional Visitor
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:
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
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:
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:
Anyone ever get any where with this? I got it all installed and running but am not sure about setting it up for Android devices.
 
Last edited:
I actually ended up pursuing another avenue and then later, losing interest altogether.

I did have it configured and working properly on the router so it's possible. This link demonstrates the steps required to set it up as well as the other avenue I ended up using: http://forum.xda-developers.com/nexus-4/general/guide-pbx-flash-piaf-amazon-ec2-free-gv-t2117336

Finally, I lost interest in the project after Google Hangouts in 4.4. Free calling is expected to be implemented in the first quarter of this year, so anytime now. In the meantime, my line has been switched to a company account and I get unlimited everything.
 
I try to run the command:

Code:
opkg install asterisk-gui

but I'm getting the following error:

Code:
Unknown package 'asterisk-gui'.
Collected errors:
 * opkg_install_cmd: Cannot install package asterisk-gui.
admin@RT-N66U:/tmp/home/root#

I have tried:

Code:
opkg update
but without luck.

I have RT-N66U with fw 376.44.

Thank you!
 
Last edited:
I try to run the command:

Code:
opkg install asterisk-gui

but I'm getting the following error:

Code:
Unknown package 'asterisk-gui'.
Collected errors:
 * opkg_install_cmd: Cannot install package asterisk-gui.
admin@RT-N66U:/tmp/home/root#

I have tried:

Code:
opkg update
but without luck.

I have RT-N66U with fw 376.44.

Thank you!

Use
Code:
opkg install asterisk18-gui

Jcconnell,

That Page cann't be find ( 404 Error )
Code:
http://192.168.1.1:8088/static/config/index.html

Please check this and enter correct address for asterisk GUI
 
Use
Code:
opkg install asterisk18-gui

Jcconnell,

That Page cann't be find ( 404 Error )
Code:
http://192.168.1.1:8088/static/config/index.html

Please check this and enter correct address for asterisk GUI
I will try this in January and then I come back with feed back. Currently I don't have acces to the router.

Thank you!
 
Now, after after I input the login data I have the following error message: "Checking write permission for gui folder" and I can not acces the GUI.

Thank you!
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top