AMI ProxyServer

DESCRIPTION

AMI ProxyServer is an Manageability, reliability and fast proxy server of Asterisk Manager Interface, written by Pure Perl.

Features:

  • AMI ProxyServer's API 100% compatible with asterisk Manager Interface API.
  • AMI Support AMI commands router , transfer each client commands instand of broadcast.
  • Use I/O Poll tech to services.
  • 600 concurrent clients events broadcast usage less 8-15% in P4 2.8G

SYNOPSIS

[root@tesrer bin]# ./amips.pl --verbose
[notice] AMI ProxyServer 0.X Services on 0.0.0.0:2012...
[notice] AMI ProxyServer Connect to Asterisk AMI ok...

GUIDE

Get AMI ProxyServer

get source files from SVN:
>svn export http://darwin.freeiris.org/svn/freeiris/addition/amips/

Installation

you don't need install just run it.

cd amips/bin
./amips.pl --verbose   #debug 
./amips.pl --quiet     #background run

Command Line

Usage: amips.pl [options]
  -?, --help          Display this help and exit.
  -V, --version       Output version information and exit.
  -v, --verbose       Display more messages on screen.
  -q, --quiet         Start Agispeedy as background.
  -c, --config=path   Specify Config folder (exp. /etc/amips/).
  -l, --lib=lib       Specify amips library path.

Config files

amips.conf

# this is ami proxyserver simple config file

# write log to syslog services
[syslog]
enable=no
# Set log level
# 0 error,1 warnning,2 notice,3 info,4 debug
level=1

# for ami
[ami]
host=127.0.0.1
port=5038
username=freeiris
secret=freeiris
# keepalive time in seconds
keepalive=30
# events message transfer to all clients support to method:
# no    not copy events to every clients write_buffer
# yes   copy events to every clients write_buffer
events_memcp=yes
# keep events buffer in seconds, avaliable for memcp=no
events_memnocp_buftime=120

# for clients socket
[clients]
# listen ip 0.0.0.0 means all
host=0.0.0.0
# bindport for clients socket
bindport=2012
# clients no read / write timeout in seconds
# never means no timeout
timeout=never
# max clients connect
max_clients = 1024
# max command retry
max_cmdretry_disconnect = 8
# max user readbuffer in bytes
max_readbuffer_disconnect = 1048576
# max user writebuffer in bytes
max_writebuffer_disconnect = 1048576

amips_users.conf

# users mapping
# whcich user can access amips
[freeiris]
secret=freeiris
type=admin
allow_command=yes
allow_events=yes

[demo]
secret=demo
type=user
allow_command=no
allow_events=yes

[demo2]
secret=demo2
type=user
allow_command=yes
allow_events=no

AMIPS API

AMIPS basic API compitable with Asterisk Manager API.

but we have some overwrite Asterisk Manager API's action, and some special actions.

login

Overwrite with Asterisk Manager API.

authentication amips_users.conf

logoff

Overwrite with Asterisk Manager API.

ping

Overwrite with Asterisk Manager API.

amips_status

output client session information.

amips_reload

reload amips_users.conf require client type=admin.

FAQ

EXAMPLES

AUTHORS

COPYRIGHT

Copyright © 2010, Fonoirs CO.,LTD.

You may distribute under the terms of either the GNU General Public License VERSION 2.

WARRANTY

The AMI Proxy Server is free Open Source software.

IT COMES WITHOUT WARRANTY OF ANY KIND.

SUPPORT

D410E四口PCI-E数字中继E1卡ISDN-PRI

四路接口数字中继卡,支持最大T1(96信道),E1(128信道)或J1(96信道)的强大语音处理能力.
厂商: 北京开源方诺科技有限公司  编号:   质保: 60月  查看详细
 此产品为第三方赞助商向您推荐.
Freeiris爱好者QQ群  43185599
amips.txt · Last modified: 2010/07/27 15:47 by hoowa
Copyright © 2010 Freeiris DevelopTeam All Rights Reserved