AMI ProxyServer is an Manageability, reliability and fast proxy server of Asterisk Manager Interface, written by Pure Perl.
Features:
[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...
get source files from SVN: >svn export http://darwin.freeiris.org/svn/freeiris/addition/amips/
you don't need install just run it.
cd amips/bin ./amips.pl --verbose #debug ./amips.pl --quiet #background run
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.
# 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
# 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 basic API compitable with Asterisk Manager API.
but we have some overwrite Asterisk Manager API's action, and some special actions.
Overwrite with Asterisk Manager API.
authentication amips_users.conf
Overwrite with Asterisk Manager API.
Overwrite with Asterisk Manager API.
output client session information.
reload amips_users.conf require client type=admin.
Sun bing hoowa.sun@gmail.com
Copyright © 2010, Fonoirs CO.,LTD.
You may distribute under the terms of either the GNU General Public License VERSION 2.
The AMI Proxy Server is free Open Source software.
IT COMES WITHOUT WARRANTY OF ANY KIND.
Sun bing hoowa.sun@gmail.com
|
||||
| Freeiris爱好者QQ群 43185599 |