Asterisk PBX

From ago control wiki
Revision as of 18:03, 5 December 2012 by Hari (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

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].

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