Skip to content

Simple Python library for sending calls through Asterisk Manager Interface

Notifications You must be signed in to change notification settings

muriloventuroso/PythonAMI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PythonAMI

Simple Python library for sending calls through Asterisk Manager Interface

#Purpouse PythonAMI is a simple library for sending Python calls to an Asterisk server using AMI.

For the next versions will be available sending variables for the Asterisk context and implement new AMI commands.

#Usage

Sign in server AMI passing your credentials.

from ami import *

options_login = {
	'host':HOST,
	'username':USERNAME,
	'password':PASSWORD

}

asterisk = AMI(**options_login)

Check whether the login was made and send the call.

if asterisk.status_login:
	options_originate = {
	'number':NUMBER,
	'context_local':CONTEXT_LOCAL,
	'context':CONTEXT,
	'callerid':CALLERID,
	'priority':PRIORITY,
	'exten':EXTENSION,
	'timeout':TIMEOUT

}
	call = asterisk.originate(**options_originate)

About

Simple Python library for sending calls through Asterisk Manager Interface

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages