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

八葉草

學習資料記錄

Asterisk Manager Interface C++ Interpretor for Linux [轉]

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 八葉草 閱讀(538) 評論(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性久久久久蜜臀aⅴ四虎| 牛牛影视久久网| 日韩午夜在线播放| 欧美日韩一区二区三区免费| 99精品欧美一区二区三区综合在线| 欧美激情第10页| 欧美理论电影网| 亚洲性线免费观看视频成熟| 艳妇臀荡乳欲伦亚洲一区| 国产精品素人视频| 久久性色av| 欧美日韩国产精品一区| 亚洲专区一区| 久久精品动漫| 一区二区高清在线| 欧美一级免费视频| 亚洲精品美女在线观看播放| aa级大片欧美| 黑人一区二区三区四区五区| 欧美激情视频在线免费观看 欧美视频免费一 | 午夜免费在线观看精品视频| 欧美在现视频| 日韩视频在线观看一区二区| 亚洲一区二区三区午夜| 在线观看av一区| 一区二区三区毛片| 一区二区三区自拍| 一本色道久久综合亚洲精品小说| 国产日韩欧美不卡在线| 91久久夜色精品国产九色| 欧美视频在线观看免费网址| 久久亚洲免费| 国产精品久久二区| 欧美成年人网站| 国产精品亚洲片夜色在线| 亚洲成色777777在线观看影院| 国产精品激情偷乱一区二区∴| 免费成人毛片| 国产视频一区在线观看| 亚洲精品欧美| 在线日韩av片| 久久国产加勒比精品无码| 在线亚洲精品福利网址导航| 久久天天躁狠狠躁夜夜av| 性欧美办公室18xxxxhd| 欧美黄色免费网站| 欧美.日韩.国产.一区.二区| 国产精品欧美日韩| 一二三区精品| 夜夜夜久久久| 欧美激情综合在线| 欧美激情女人20p| 一色屋精品视频在线观看网站| 亚洲在线中文字幕| 亚洲综合成人在线| 欧美性做爰猛烈叫床潮| 亚洲国产精品123| 亚洲丁香婷深爱综合| 久久久久久黄| 久久人人爽人人爽爽久久| 国产日韩欧美制服另类| 亚洲愉拍自拍另类高清精品| 亚洲自拍偷拍福利| 欧美午夜不卡| 亚洲一区二区三区午夜| 午夜伦理片一区| 国产欧美日韩在线视频| 午夜精品福利视频| 久久久91精品国产一区二区三区| 国产日韩精品一区| 欧美在线视频网站| 欧美h视频在线| 亚洲精品欧美激情| 欧美精品免费观看二区| 99视频精品在线| 性欧美超级视频| 国产综合欧美| 久久伊伊香蕉| 亚洲精品乱码久久久久久日本蜜臀| 日韩视频久久| 国产精品久久久久国产精品日日| 亚洲一区二区黄色| 噜噜噜躁狠狠躁狠狠精品视频 | 久久综合伊人77777尤物| 欧美va亚洲va香蕉在线| 亚洲蜜桃精久久久久久久| 欧美视频不卡| 午夜伦欧美伦电影理论片| 麻豆精品一区二区av白丝在线| 亚洲黄色有码视频| 国产精品xxxxx| 久久久久久久999精品视频| 亚洲第一黄色网| 亚洲欧美日韩国产综合| 国模私拍一区二区三区| 欧美精品一区二区三| 亚洲影视中文字幕| 欧美成人资源| 亚洲欧美另类中文字幕| 在线看成人片| 欧美偷拍另类| 另类专区欧美制服同性| 一区二区三区偷拍| 美女国产一区| 亚洲欧美另类综合偷拍| 亚洲国产精品精华液2区45| 欧美日韩午夜| 久久综合九色99| 亚洲午夜av电影| 亚洲黄色小视频| 久久久久久尹人网香蕉| 亚洲亚洲精品在线观看| 亚洲福利免费| 国产一区二区三区最好精华液| 欧美夫妇交换俱乐部在线观看| 午夜免费在线观看精品视频| 亚洲精品日产精品乱码不卡| 久久综合伊人77777尤物| 亚洲一区二区三区涩| 亚洲黄色免费电影| 精品成人国产| 国产欧美一区二区精品性| 欧美天天影院| 欧美另类videos死尸| 美女诱惑一区| 久久久久久亚洲综合影院红桃| 亚洲愉拍自拍另类高清精品| 亚洲美女网站| 亚洲黄色成人| 欧美高清视频免费观看| 麻豆精品视频在线观看| 久久精品综合| 久久99在线观看| 亚洲欧美日韩天堂一区二区| 在线午夜精品自拍| 亚洲美女av黄| 99视频在线精品国自产拍免费观看 | 亚洲欧美日韩国产| 一区二区欧美在线观看| 日韩亚洲国产欧美| 亚洲狼人综合| 日韩视频一区二区在线观看| 亚洲人成艺术| 亚洲人妖在线| 一本一道久久综合狠狠老精东影业| 亚洲黄色在线看| 亚洲精品视频中文字幕| 亚洲精品久久嫩草网站秘色| 亚洲欧洲一区二区三区在线观看 | 久久蜜桃香蕉精品一区二区三区| 西西人体一区二区| 香蕉av777xxx色综合一区| 香蕉免费一区二区三区在线观看| 亚洲欧美视频一区| 久久国产高清| 女人天堂亚洲aⅴ在线观看| 久久综合九色| 最新精品在线| 亚洲午夜一级| 久久精品一区二区国产| 欧美aⅴ99久久黑人专区| 欧美激情综合网| 国产精品每日更新在线播放网址| 国产精品日韩精品欧美精品| 国产一区二区三区精品久久久| 一区二区三区在线视频播放| 亚洲国产视频一区二区| 亚洲视频第一页| 久久精品首页| 91久久国产精品91久久性色| av成人激情| 久久久精品久久久久| 欧美日韩不卡一区| 国产色综合天天综合网| 亚洲人屁股眼子交8| 亚洲午夜精品福利| 久久躁日日躁aaaaxxxx| 亚洲精品久久久久久下一站| 亚洲男人第一av网站| 欧美 亚欧 日韩视频在线| 国产精品高清在线| 亚洲成人自拍视频| 午夜精品在线观看| 欧美国产视频在线观看| 亚洲欧美日韩另类| 欧美裸体一区二区三区| 红桃视频一区| 亚洲综合日韩在线| 欧美激情按摩在线| 午夜一区二区三区在线观看| 欧美日本韩国| 国产一区二区三区黄视频| 一本色道久久综合狠狠躁篇怎么玩 | 亚洲性av在线| 亚洲高清成人| 久久久精品国产免费观看同学| 欧美色欧美亚洲另类七区| 亚洲高清不卡一区| 久久久久久黄| 亚洲女人av|