AsteriskPBXHowTo

From ago control wiki
Revision as of 08:58, 7 December 2012 by Hari (Talk | contribs)

Jump to: navigation, search

Contents

ago control and Asterisk PBX in 5 Minutes

Install the packages:

apt-get install asterisk agocontrol-asterisk

Basic Asterisk PBX configuration

Add SIP config at end of file /etc/asterisk/sip.conf:

[agoman]
type=friend
regexten=666
callerid="ago man" <666>
host=dynamic 
secret=letmein
allow=gsm 
allow=ulaw
allow=alaw
registertrying=yes

Add config file /etc/asterisk/manager.d/agocontrol.conf:

[agocontrol]
secret=letmein
permit=127.0.0.1/255.255.255.0
read=system,call,log,verbose,command,agent,user,originate
write=system,call,log,verbose,command,agent,user,originate

""Reload Asterisk""

Add config to /etc/opt/agocontrol/config.ini:

[asterisk]
username=agocontrol
password=letmein

Start Services:

systemctl start asterisk.service
systemctl start agoasterisk.service

SIP Client Configuration

Get a SIP Client like Linphone from http://www.linphone.org and set up the account with the wizard and choose:

  • I already have a sip account... press Forward
  • Username: agoman
  • Password: letmein
  • Domain: Hostname or IP-ADDRESS-OF-SERVER and press Apply

You will be asked for a username and password - use agoman and letmein here again. You now can do a test call to extension 500.

ago control - first call

Go into the admin interface and check out the UUID of a device type "phone". Now we start a call on the phone calling the number 500:

/opt/agocontrol/bin/messagesend.py -d 00000000-0000-0000-0000-000000000000 -c dial -p number=500

Note: replace 00000000-0000-0000-0000-000000000000 with the UUID of your phone

Personal tools