Asterisk PBX

From ago control wiki
(Difference between revisions)
Jump to: navigation, search
(Configuration)
(Asterisk PBX Interface)
Line 1: Line 1:
 
= Asterisk PBX Interface =
 
= Asterisk PBX Interface =
ago control provides an interface device for [asterisk.org Asterisk]. It communicates via the AMI (Asterisk Management Interface). It supports the "dial" command and announces SIP phones as "phone" device to the [Resolver].  
+
ago control provides an interface device for [http://www.asterisk.org Asterisk]. It communicates via the AMI (Asterisk Management Interface). It supports the "dial" command and announces SIP phones as "phone" device to the [Resolver].
 +
 
 
= Configuration =
 
= Configuration =
 
Add the following to the [[config.ini]]:
 
Add the following to the [[config.ini]]:

Revision as of 22:58, 5 December 2012

Contents

Asterisk PBX Interface

ago control provides an interface device for Asterisk. It communicates via the AMI (Asterisk Management Interface). It supports the "dial" command and announces SIP phones as "phone" device to the [Resolver].

Configuration

Add the following to the config.ini:

[asterisk]
host=1.2.3.4
port=5038
username=manager
password=secret

If you don't set these values, they'll default to localhost, 5038, agocontrol and letmein.

Supported commands

Dial

You can use the dial command to initiate a call on the phone with the given uuid:

messagesend.py -d 44adba1c-6668-475d-9746-7685b20e870d -c dial -p number=1234

Events

The interface will announce the following two events:

event.telecom.call

Event parameters:

  • uuid
  • callerid
  • extension

event.telecom.hangup

Event parameters:

  • uuid

TODO

The code needs to be cleaned up and commands like hangup and bridge call need to be added

Personal tools