AsteriskPBXHowTo

From ago control wiki
(Difference between revisions)
Jump to: navigation, search
(ago control - first call)
(Sipgate.at Configuration)
Line 58: Line 58:
  
 
= Sipgate.at Configuration =  
 
= Sipgate.at Configuration =  
You want to have a free SIP dial in number for your agoman - here we go:
+
You want to have a free SIP dial in number for your agoman? Check our an account at [http://www.sipgate.at www.sipgate.at] and here we type:
  
 
Add lines to '''/etc/asterisk/sip.conf''' (replace SIP-ID and SIP-Passwort):
 
Add lines to '''/etc/asterisk/sip.conf''' (replace SIP-ID and SIP-Passwort):

Revision as of 16:17, 7 December 2012

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

After that change restart 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


Sipgate.at Configuration

You want to have a free SIP dial in number for your agoman? Check our an account at www.sipgate.at and here we type:

Add lines to /etc/asterisk/sip.conf (replace SIP-ID and SIP-Passwort):

[sipgate]
type=peer
insecure=invite,port
canreinvite=no
nat=yes
disallow=all
allow=ulaw
host=sipgate.at
outboundproxy=sipgate.at
username=SIP-ID
fromuser = SIP-ID
fromdomain = sipgate.at
secret=SIP-Passwort
registertimeout = 600
sendrpid=pai
dtmfmode=rfc2833
context=default
callbackextension=SIP-ID

Edit /etc/asterisk/extensions.conf (replace SIP-ID):

[default]
exten => SIP-ID,1,Dial(SIP/agoman)
exten => SIP-ID,2,HangUp()
Personal tools