Friday, March 14, 2008

Snap VoIP with Snap Part II, Configure Asterisk

Snapnumbers provides a way to snap to VoIP or any other phone service as we mentioned yesterday. At the time of writing we were not able to test the system with Asterisk.
We configured one of the Asterisk servers and system worked as expected. We used the configuration help that we found here

Snap Number Settings for the Asterisk/tribox


* If you use Trixbox you need go to the "Config Edit" page in the Trixbox/Asterisk/web interface and open it.
* Go to "manager.conf" and add the following line (see below)

This is the standard setup:

; Asterisk Call Management support
;
[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0

[admin]
secret = XXXXXX
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,log,verbose,command,ag­ ent,user
write = system,call,log,verbose,command,ag­ ent,user

#include manager_additional.conf
#include manager_custom.conf

This is our new setup:

; Asterisk Call Management support
;
[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0

[admin]
secret =
XXXXXX
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
permit=192.168.1.1/255.255.255.0 ; <<< read =" system,call,log,verbose,command,ag­" write =" system,call,log,verbose,command,ag­">
------------------

* Once you have done that click "Re-Read Configs"

Settings for your pc(s)

Go and install the application itself, just keep clicking yes as per normal until it's all completed.

* Go down to your task bar and right the little green box.
* Click "Settings"
* Click "Add Connection"

Enter the following info..
* Name your connection
* Username is the username specified in the manager config (mine is admin)
* Password is the "secret=XXXX" ... So mine would be "XXXXXX"
* Server is the address of your server. Mine is "192.168.11.201:5038"
* Context is "from-internal"
* Channel is "SIP/201" .. In order to find your own channel on Trixbox, go to the Tribox freepbx interface and go to 'setup/extensions' Then locate "Dial" .. This is your 'channel'.
* Ringback is "10"
* Connect on startup is ticked.
* Click "Update" (bottom right)

Go down to your taskbar and click the name you specified for your connection in "Connection" this will connect the app to your trixbox; if it's not already.

Now just click a phone number on any webpage and your phone should ring. Once it rings - pickup the phone and it will start calling the number you clicked.
Thank you everyone for the help!
tag: , , ,

0 comments:

Blog Widget by LinkWithin