Updates (Sticky)

December 27 2008

I tried upgrading to the latest GUI:

ipkg remove asterisk14-gui
ipkg install asterisk-gui

but had some problems with the CDR reader. While the
interface seems a little nicer, i would stay with
asterisk14-gui for now.

August 27 2008

I reinstalled asterisk on the slug today using
my instructions. It all seemed to work OK!

I did make a couple of minor changes: I added some
code under the Platform step to automatically start
asterisk on reboot; I also updated the version numbers
of the asterisk software for the ipkg install step.

FWD is no linger free. It can still be used
as an example of SIP trunking.

May 13 2008

I added a bit of an explanation to Step 3 on how
to allow all calls to go out. The original dialplan
blocks long distance calls by default (other than
to toll free numbers).

Friday, December 28, 2007

Second Step (GUI)

Next we must make some edits to allow the GUI to work. A good general guide is located here:

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 -vvvc
Open your web browser and navigate to:
http://IP.OF.YOUR.NSLU2:8088/asterisk/static/config/cfgbasic.html
Login 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:

Unknown said...

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 ?

Unknown said...

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.

Atlanta Contract Staffing said...

Fantastic blog. Looking forward for more posts like this.