Asterisk PBX

From ago control wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "= Asterisk PBX Interface = ago control provides an interface device for [asterisk.org Asterisk]. It communicates via the AMI (Asterisk Management Interface). It supports the "...")
 
(Configuration)
Line 2: Line 2:
 
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 [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]]:
 
<pre>
 
<pre>
 
[asterisk]
 
[asterisk]
Line 11: Line 11:
 
</pre>
 
</pre>
 
If you don't set these values, they'll default to localhost, 5038, agocontrol and letmein.
 
If you don't set these values, they'll default to localhost, 5038, agocontrol and letmein.
 +
 
= Supported commands =
 
= Supported commands =
 
== Dial ==
 
== Dial ==

Revision as of 23:57, 5 December 2012

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