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

八葉草

學習資料記錄

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 八葉草 閱讀(531) 評論(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综合| 免费一级欧美片在线播放| 女人香蕉久久**毛片精品| 久久亚洲精品欧美| 亚洲高清不卡在线观看| 蜜桃久久av一区| 亚洲电影免费在线观看| 亚洲精品乱码久久久久久日本蜜臀 | 久久综合九色九九| 免费成人在线观看视频| 欧美日韩国产123区| 国产精品videossex久久发布| 国产精品日韩一区二区| 韩国av一区二区| 亚洲欧洲日本一区二区三区| 中文精品视频| 久久久999精品| 亚洲国产精品一区在线观看不卡| 在线一区二区日韩| 久久午夜电影| 欧美香蕉视频| 黄色av成人| 亚洲免费成人| 久久久久久网址| 一本色道久久综合狠狠躁篇怎么玩| 亚洲欧美激情一区| 欧美成人久久| 国产一区二区三区久久悠悠色av | 亚洲狠狠丁香婷婷综合久久久| 日韩亚洲国产精品| 久久精品理论片| 亚洲区欧美区| 久久久久久亚洲精品杨幂换脸| 欧美人与禽性xxxxx杂性| 国产九九精品| 亚洲图片欧美午夜| 亚洲电影在线看| 香蕉成人啪国产精品视频综合网| 久久精品国产99国产精品澳门| 亚洲欧洲综合另类在线| 性欧美videos另类喷潮| 欧美激情精品久久久久久黑人| 亚洲午夜精品福利| 欧美激情在线狂野欧美精品| 狠狠爱www人成狠狠爱综合网| 一区二区三区视频在线| 欧美激情中文不卡| 久久精品国产69国产精品亚洲| 欧美日韩国产综合视频在线观看| 韩国精品在线观看| 午夜视频一区在线观看| 亚洲人成在线播放网站岛国| 久久亚洲电影| 国产综合婷婷| 欧美中文字幕在线播放| 一区二区欧美日韩视频| 欧美日韩在线播| 日韩一级精品视频在线观看| 亚洲区在线播放| 欧美精品999| 夜夜嗨av一区二区三区四区| 亚洲黄色一区二区三区| 麻豆亚洲精品| 亚洲精品视频免费| 亚洲欧洲在线观看| 欧美日本韩国| 亚洲制服丝袜在线| 亚洲亚洲精品三区日韩精品在线视频 | 99re6这里只有精品| 欧美日韩精品免费观看视频| 亚洲乱码日产精品bd| 亚洲精品乱码久久久久久蜜桃麻豆 | 欧美激情女人20p| 久久在线91| 亚洲精品一区二| 一区二区三区免费看| 国产精品久久久对白| 欧美亚洲三级| 性欧美暴力猛交另类hd| 一区二区三区在线免费视频| 欧美 日韩 国产精品免费观看| 久久青草欧美一区二区三区| 亚洲人成在线播放| 日韩一区二区精品视频| 国产精品一级在线| 蜜桃av噜噜一区二区三区| 欧美精品啪啪| 久久久国产精品一区| 另类专区欧美制服同性| 一区二区三区国产精华| 午夜精品久久久久久久| 国语自产在线不卡| 欧美一区二区三区久久精品| 黄色日韩精品| 亚洲国产精品一区二区久| 国产精品国产三级国产aⅴ入口| 久久乐国产精品| 欧美成人免费va影院高清| 性亚洲最疯狂xxxx高清| 麻豆成人在线观看| 午夜精品成人在线| 久久综合99re88久久爱| 亚洲综合色激情五月| 久久九九免费视频| 亚洲午夜一级| 免费日韩av电影| 久久成人免费电影| 欧美日韩另类丝袜其他| 久久国产夜色精品鲁鲁99| 欧美激情日韩| 另类av导航| 国产老女人精品毛片久久| 亚洲电影毛片| 黑人中文字幕一区二区三区| 亚洲欧洲精品一区| 激情五月综合色婷婷一区二区| 一区二区三区免费在线观看| 亚洲激情啪啪| 久久精品在线观看| 欧美一区二区三区的| 欧美日韩亚洲天堂| 亚洲国产精品久久久| 在线看片一区| 久久成人精品一区二区三区| 亚洲综合大片69999| 欧美刺激午夜性久久久久久久| 久久人91精品久久久久久不卡| 亚洲国产成人在线播放| 在线精品国产欧美| 欧美亚洲视频| 久久久99国产精品免费| 国产一区二区三区黄| 午夜精品久久久久99热蜜桃导演| 亚洲欧美中文字幕| 国产精品国产三级国产aⅴ入口 | 一本色道久久精品| 欧美成人嫩草网站| 亚洲高清资源| 亚洲国产美女精品久久久久∴| 久久久久国产一区二区三区| 久久久久久久久久久久久女国产乱| 国产精品一区视频| 先锋a资源在线看亚洲| 久久久久久尹人网香蕉| 国外成人在线| 久久亚洲国产成人| 亚洲高清久久久| 亚洲免费高清视频| 欧美日韩国产精品自在自线| 正在播放亚洲| 久久爱另类一区二区小说| 国内在线观看一区二区三区 | 国产精品亚洲第一区在线暖暖韩国| 亚洲精品一区二区三区四区高清| 噜噜噜在线观看免费视频日韩 | 久久综合激情| 亚洲欧洲一区| 国产精品va在线播放我和闺蜜| 亚洲欧美日韩精品久久久| 久久久久免费| 91久久视频| 国产精品黄色在线观看| 欧美在线首页| 欧美成人高清视频| 亚洲小说春色综合另类电影| 国产欧美日韩在线视频| 久久久免费精品视频| 亚洲精品1区2区| 欧美一区二区三区在线看 | 亚洲乱码国产乱码精品精可以看 | 久久先锋影音av| 日韩视频在线播放| 国产精品自拍小视频| 另类成人小视频在线| 亚洲最黄网站| 蜜臀久久99精品久久久画质超高清| 一二三四社区欧美黄| 激情综合色丁香一区二区| 欧美色网在线| 久久一本综合频道| 亚洲免费在线播放| 亚洲日本中文字幕区| 久久这里有精品15一区二区三区| 国产精品你懂的| 老色鬼精品视频在线观看播放| 一区二区av在线| 亚洲国产精品久久久| 久久成人综合网| 亚洲综合电影| 一级成人国产| 亚洲精品美女在线观看播放| 国产日本欧美一区二区三区| 欧美精品亚洲二区| 久久久久久久久久看片| 亚洲专区一区| 在线一区亚洲|