http://www.asteriskguru.com/tutorials/asterisk_gui.html
Some elements of the GUI will not work on the NSLU2. You will only be able to use the basic configuration.
Step 1
Plop this code at the end of the extensons.conf file. This will tell the GUI that we've already configured a dialplan. This is necessary to avoid the setup page which automatically pops up when you type the URL in Step 2. We don't want the setup page to activate as the step by step GUI is primarily directed at PC users and not NSLU2 users.
[asterisk_guitools]
exten = executecommand,1,System(${command})
exten = executecommand,n,Hangup()
exten = record_vmenu,1,Answer
exten = record_vmenu,n,Playback(vm-intro)
exten = record_vmenu,n,Record(${var1})
exten = record_vmenu,n,Playback(vm-saved)
exten = record_vmenu,n,Playback(vm-goodbye)
exten = record_vmenu,n,Hangup
exten = play_file,1,Answer
exten = play_file,n,Playback(${var1})
exten = play_file,n,Hangup
hasbeensetup = Y
Note: I'm not altogether sure if this whole block is necessary. You might just try with:
[asterisk_guitools]
hasbeensetup = Y
If that does work OK, could someone leave a comment? Thanks!Step 2
cd to /opt/etc/asterisk and edit `manager.conf` and add the following code snippets:
[general]
displaysystemname = yes
enabled = yes
webenabled = yes
port = 5038
[administrator]
secret = 1234
read = system,call,log,verbose,command,agent,user,config
write = system,call,log,verbose,command,agent,user,config
Edit `http.conf` and change the following:
enabled=yes
enablestatic=yes
bindaddr=0.0.0.0
Start the Asterisk server on the NSLU2
# asterisk -vvvcOpen your web browser and navigate to:
http://IP.OF.YOUR.NSLU2:8088/asterisk/static/config/cfgbasic.htmlLogin as administrator with the password wrxiur
Browse around. As I mentioned some functionality is limited, but you will be able to add users, check call logs, monitor the CPU use, etc.
Note: You might have to quit your browser to see the Users tab. Seems to be a bit of a hack job here!
Step 3
Click on the Users tab and create one extension (6002). You can accept the default values for now.
Note: You will see the LinksysFXO extension already created since you manually added it to users.conf in the previous setup section.
Step 4
Plug the Line jack of the SPA3102 into the phone jack. and configure a SIP phone with the extension 6002 pointing to your Asterisk server's IP. Use the SIP phone to call 500. It will play a demo file and make an attempt to connect to Digium's IAX server.
Call your home telephone number from an external line and Asterisk should answer. It will play the demo files telling you that Asterisk is set up correctly.
Step 5
Unplug the the SPA3102 from the wall jack. No need to confuse incoming callers!
3 comments:
Hi!
I followed your instructions to get asterisk14-gui working but when I point my browser to :
http://192.168.1.1:8088/asterisk/static/config/cfgbasic.html
I see the asterisknow web interface in the backgroup.
But there is a popup that says:
Config Error: 404: not found
Do you have an idea ?
I was complete dumb ass...
I just forgot to modify "enabled=yes" from http.conf
like this:
[general]
displaysystemname = yes
enabled = yes
webenabled = yes
port = 5038
Now, everything is good.
Fantastic blog. Looking forward for more posts like this.
Post a Comment