青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

八葉草

學(xué)習(xí)資料記錄

Asterisk Manager Interface C++ Interpretor for Linux [轉(zhuǎn)]

Asterisk Manager Interface C++ Interpretor for Linux (http://advancedcodingconcepts.blogspot.com/2011/02/asterisk-manager-interface-c.html

Through the past number of months in my full-time developer position for an online company and it's sales office, we've migrated to a VOIP telephony platform based on Asterisk, Linux and our custom call centre management application.

In order to integrate an autodialer in to the application, I had originally written a script in PHP to read from two asterisk servers (local and offshore) to post information about whether an agent is on a call or not, and also inbound calls to the call centre application.

The PHP script took a matter of hours to set up initially, but lacked proper structure - specifically, it could not track information when we switched to call queues, and was not easily portable between asterisk versions (1.8 locally, 1.2 in offshore)

For the past week I have worked on the design and initial coding of an app in C++ that acts as a client to both servers, interprets the messages and creates internal structures.  I'm releasing that code here for review, and to help other's save some time, as I haven't noticed any other software out there that could accomplish this elegantly.  Currently, I am calling this application AMIflex based on the flexibility it provides to manage the Asterisk AMI protocol.

This source code and it's derivatives can not be sold, licensed or packaged with any commercial software without my explicit permission.

Download the source code here (.tar.bz2, 6kb)

Installation instructions:

  1. unpack the file via "tar -xvjf" command
  2. create /etc/amiflex directory, and add a "servers.conf" file in the following format
Server: server name (for display purposes only)
Host: ip address or host name of ami server 
Username: AMI manager username
Secret: AMI manager password/secret

Optional fields:

RetryPeriod: number of seconds to wait between connection retries - ie if asterisk is rebooted (default: 300)
Port: port number (default 5038)

You can insert more than one server (connections will be maintained together) by entering the first server's details, placing a second new line after the last configration line for that server, and then entering the details for the second server (and so on)

How to make this useful
When a server connection is established, there's a AMI::RegisterAllEvents() call after authentication.  Add in your own events, and manipulate the structures or log output

Example:
AMI::RegisterEventCB("Dial", &AMI::MyDialCallback)

void AMI::MyDialCallback(MSG *msg)
{
    if (msg->Attr("SubEvent").value=="Begin")
        cout << msg->Attr("Channel").value + " is dialing " +msg->Attr("Dialstring").value<<endl;
}


Current limitations
I have some well known limitations with this software - I'll be resolving them myself for internal use, but my next step is to integrate proprietary MySQL links in to the source code, so I made sure to release this first.  Currently my task list with my employer is too long to not take some shortcuts :)
  1. The channel list linked list is a static member of the channel class - this means that you run AMIflex with multiple servers in the configuration file, all of the channels for all servers will be parallel.  If you have two servers and each server has the same extension, then there will be one device entry created and two channels open on that device, when each extension is busy.
  2. The bridge event currently only registered the first channel's Bridge member to the second member, and vice versa - If you are monitoring channels that will be bridged to more than one other channel, this will have to be expanded to a proper many to many-style linked list.
/Files/byc/amiflex.0.1.tar.bz2.rar

posted on 2011-11-27 18:54 八葉草 閱讀(545) 評論(0)  編輯 收藏 引用 所屬分類: asterisk

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            国产视频久久久久| 亚洲美女在线看| 久久一区二区三区av| 久久在线播放| 久久久人成影片一区二区三区| 久久午夜羞羞影院免费观看| 欧美久久久久久蜜桃| 欧美日韩亚洲三区| 国产丝袜美腿一区二区三区| 久久精品中文字幕一区| 亚洲国产欧美国产综合一区| 一本色道久久综合亚洲精品不卡| 亚洲一区国产| 狼人天天伊人久久| 亚洲视频综合在线| 欧美伊人久久| 欧美午夜在线视频| 亚洲国产成人精品女人久久久| 亚洲社区在线观看| 久热综合在线亚洲精品| 欧美成人精品| 国产欧美日韩亚洲| 99re热这里只有精品视频| 免费亚洲一区二区| 西瓜成人精品人成网站| 免费不卡亚洲欧美| 国产视频在线观看一区二区| 蜜桃视频一区| 国产精品福利在线观看| 亚洲六月丁香色婷婷综合久久| 老司机免费视频一区二区| 免费视频久久| 最新热久久免费视频| 久久婷婷成人综合色| 欧美二区视频| 韩国精品久久久999| 午夜精品久久久久久久久久久久久| 欧美激情一区二区三区四区| 久久成人免费网| 精品999成人| 免费观看在线综合色| 欧美日韩一区二区在线观看视频| 快射av在线播放一区| 欧美视频网站| 欧美诱惑福利视频| 午夜老司机精品| 亚洲视频精品| 毛片一区二区| 久久免费精品视频| 久久精品夜色噜噜亚洲a∨| 黄色小说综合网站| 亚洲桃色在线一区| 亚洲免费电影在线| 久色成人在线| 在线一区二区三区做爰视频网站| 一本色道久久综合狠狠躁篇怎么玩 | 国产精品毛片a∨一区二区三区|国| 在线一区观看| 欧美成人一区二区三区片免费| 久久精品99国产精品| 欧美一区二区视频在线| 在线观看av一区| 亚洲精品视频啊美女在线直播| 欧美日韩精品中文字幕| 校园激情久久| 久久久午夜精品| 久久久之久亚州精品露出| 国产伦精品一区二区三区照片91| 久久综合精品一区| 国模私拍视频一区| 亚洲国产成人av在线| 国产精品99免费看| 亚洲美女毛片| 亚洲女同同性videoxma| 久久久91精品国产一区二区三区| 久久久久久9| 亚洲电影在线看| 你懂的视频一区二区| 亚洲国产成人高清精品| 日韩五码在线| 欧美日韩在线三区| 国产精品99久久久久久有的能看| 亚洲国产裸拍裸体视频在线观看乱了中文 | 欧美激情精品久久久六区热门| 亚洲欧洲一区二区在线观看 | 亚洲一区二区三区四区五区午夜 | 亚洲日韩中文字幕在线播放| 亚洲一区二区三区三| 性18欧美另类| 一色屋精品视频在线看| 免费精品视频| 在线亚洲欧美专区二区| 欧美自拍偷拍午夜视频| 欧美久久一级| 亚洲一区二区伦理| 久久久久久久999| 亚洲国产一区二区视频| 欧美国产日本在线| 在线亚洲欧美专区二区| 久久久久国产精品www | 国产精品99一区二区| 亚洲欧美日韩综合aⅴ视频| 一本色道久久综合亚洲精品小说| 欧美日韩一卡| 久久成人免费电影| 亚洲人线精品午夜| 亚洲精品美女在线| 国产精品国码视频| 久久久噜噜噜久久中文字幕色伊伊| 亚洲国产黄色| 欧美一级片在线播放| 亚洲人成人99网站| 国产欧美精品国产国产专区| 免费影视亚洲| 亚洲欧美激情一区| 久久精品官网| 亚洲视频第一页| 亚洲国产高清在线观看视频| 国产精品jizz在线观看美国 | 欧美精品电影| 亚洲激情第一区| 亚洲视频www| 亚洲国产美女| 国产日本欧美一区二区| 欧美日韩国产小视频在线观看| 久久精品国产亚洲一区二区| 亚洲永久免费| 亚洲日本无吗高清不卡| 嫩草伊人久久精品少妇av杨幂| 亚洲电影免费在线观看| 欧美成人性网| 久久久久网站| 久久精品一二三| 欧美一区二区啪啪| 中文国产亚洲喷潮| 亚洲乱码国产乱码精品精| 欧美大片在线看| 亚洲在线免费观看| 99精品热视频| 99re6这里只有精品| 亚洲国产美女| 亚洲级视频在线观看免费1级| 激情成人综合| 韩国久久久久| 在线色欧美三级视频| 国产一区视频网站| 国产一区二区三区的电影 | 国产精品一国产精品k频道56| 国产精品v日韩精品| 欧美日韩一区高清| 欧美日韩一级黄| 国产精品白丝黑袜喷水久久久| 欧美精品在线一区二区| 欧美精品成人一区二区在线观看| 欧美大片免费观看在线观看网站推荐| 鲁大师成人一区二区三区| 久久一区二区三区超碰国产精品| 久久理论片午夜琪琪电影网| 久久嫩草精品久久久精品一| 美日韩精品视频免费看| 你懂的视频欧美| 欧美日韩一区二区三区| 国产精品久久久91| 国产欧美一区二区三区在线老狼| 国产日韩欧美综合一区| 狠狠干成人综合网| 亚洲精品国产精品乱码不99按摩| 日韩一级精品| 亚洲欧美一区二区三区久久| 久久国产欧美精品| 欧美成人精品一区| 亚洲精品免费在线| 亚洲一区二区三| 久久国产精品网站| 欧美激情a∨在线视频播放| 欧美天堂亚洲电影院在线播放| 国产模特精品视频久久久久| 在线观看日韩一区| 亚洲美女福利视频网站| 亚洲欧美国产日韩中文字幕| 久久久青草婷婷精品综合日韩| 亚洲精品1234| 欧美在线影院| 欧美日韩亚洲一区二区三区在线观看| 国产精品永久在线| 91久久久久久| 午夜一级久久| 亚洲国产精品毛片| 亚洲自拍偷拍色片视频| 欧美成人一二三| 国产综合在线视频| 一区二区三区导航| 美腿丝袜亚洲色图| 亚洲视屏一区| 欧美精品在线看| 亚洲第一精品电影| 欧美一区二区三区久久精品| 亚洲精品女人| 欧美一区三区三区高中清蜜桃| 欧美日韩视频在线第一区|