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

八葉草

學習資料記錄

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性久久久久久| 性做久久久久久久免费看| 亚洲日本一区二区三区| 亚洲永久免费视频| 国产精品久久久久91| 99视频超级精品| 99这里只有久久精品视频| 欧美日韩亚洲高清| 亚洲专区免费| 亚洲午夜女主播在线直播| 久久99在线观看| 国产综合香蕉五月婷在线| 猛干欧美女孩| 久久精品国产成人| 在线国产欧美| 亚洲人成在线观看| 欧美91福利在线观看| 亚洲美女精品一区| 日韩视频在线一区二区三区| 欧美成人免费在线视频| 一区二区电影免费在线观看| 一区二区三区精品在线| 国产精品久久久久久久7电影| 欧美一级淫片aaaaaaa视频| 欧美一区二区三区四区在线| 国内成人精品一区| 亚洲国产精品va在线观看黑人| 欧美精品网站| 欧美一区二区三区四区夜夜大片| 久久精品国产第一区二区三区| 亚洲激情校园春色| 在线视频你懂得一区二区三区| 国产欧美日韩三级| 亚洲福利一区| 国产精品电影网站| 久久九九精品99国产精品| 免费美女久久99| 亚洲精品一区二区三区av| 日韩午夜精品视频| 伊人久久男人天堂| 欧美电影免费观看高清| 欧美视频在线观看免费| 美女爽到呻吟久久久久| 欧美性大战xxxxx久久久| 毛片一区二区| 欧美日韩中文在线观看| 久久久久久久999精品视频| 欧美激情片在线观看| 久久人人97超碰精品888| 亚洲日本中文字幕| 巨乳诱惑日韩免费av| 国产日本欧洲亚洲| 中文日韩在线| 亚洲深夜福利视频| 欧美日韩免费高清一区色橹橹| 欧美国产一区二区| 最近中文字幕日韩精品| 久久亚洲综合色| 欧美高清hd18日本| 亚洲破处大片| 欧美激情亚洲自拍| 亚洲精品小视频| 99riav国产精品| 欧美日韩国产在线播放| 日韩亚洲精品视频| 亚洲欧美另类在线| 国产美女精品视频| 久久九九精品99国产精品| 美女成人午夜| 亚洲日本乱码在线观看| 欧美日本在线播放| 亚洲午夜久久久| 久久激情久久| 亚洲二区在线视频| 欧美精品久久久久久久久老牛影院 | 欧美91精品| 亚洲人成在线观看一区二区| 亚洲欧美日韩电影| 国产原创一区二区| 久久综合色天天久久综合图片| 亚洲国产精品精华液2区45| 亚洲精品欧洲精品| 国产精品热久久久久夜色精品三区| 亚洲欧美日韩精品综合在线观看| 久久久久免费视频| 亚洲日韩欧美一区二区在线| 欧美日韩理论| 欧美一区二区视频免费观看| 欧美成人午夜激情| 亚洲综合视频网| 精品动漫3d一区二区三区免费版 | 欧美午夜不卡视频| 久久成人国产| 亚洲人成欧美中文字幕| 欧美一级在线视频| 最新日韩在线| 国产人成精品一区二区三| 老司机免费视频一区二区| 99热这里只有精品8| 久久久青草青青国产亚洲免观| 亚洲精品视频在线观看免费| 国产伦一区二区三区色一情| 久久躁狠狠躁夜夜爽| 亚洲美女黄网| 欧美99在线视频观看| 亚洲欧美变态国产另类| 亚洲欧洲三级| 国产精品毛片va一区二区三区| 另类av导航| 亚洲欧美久久久| 亚洲精品视频在线播放| 久久综合福利| 久久精品2019中文字幕| 中文日韩在线视频| 亚洲欧洲在线看| 黑人中文字幕一区二区三区| 欧美freesex交免费视频| 亚洲一区二区三区在线看| 亚洲国产aⅴ天堂久久| 国产色爱av资源综合区| 国产精品捆绑调教| 欧美日韩一区二区三区在线视频| 久久综合九色欧美综合狠狠| 欧美一区二区三区免费观看| 亚洲性夜色噜噜噜7777| 日韩一级免费观看| 亚洲精品网站在线播放gif| 欧美高清在线播放| 欧美成人亚洲成人日韩成人| 久久亚洲精品一区| 久久久精品tv| 久久久亚洲一区| 久久久久久久激情视频| 久久久精品一区| 久久久国产视频91| 久久人人97超碰精品888| 久久久久久久久久久久久女国产乱 | 亚洲天堂av在线免费观看| 最新中文字幕亚洲| 亚洲国产精品国自产拍av秋霞| 欧美国产三区| 亚洲福利国产精品| 亚洲国产日韩欧美在线99| 亚洲国产精品传媒在线观看 | 性做久久久久久| 久久福利影视| 久久精品一区二区三区四区| 久久精品二区亚洲w码| 久久久国产精品一区二区三区| 久久精品视频在线| 久久综合九色九九| 免费影视亚洲| 最新国产成人在线观看| aa亚洲婷婷| 亚洲欧美一区二区三区久久| 欧美一区二区三区在线播放| 久久精品在线视频| 欧美ed2k| 国产精品扒开腿做爽爽爽视频 | 亚洲理伦电影| 亚洲砖区区免费| 久久精品99| 亚洲黄色精品| 亚洲天堂av图片| 久久久国产一区二区三区| 欧美成人黄色小视频| 欧美日韩一区二区精品| 国产日韩欧美不卡在线| 亚洲福利视频二区| 亚洲自拍三区| 免费毛片一区二区三区久久久| 亚洲精品国久久99热| 亚洲欧美日韩在线一区| 免费一级欧美片在线观看| 欧美日韩中文在线| 一区二区三区在线视频观看| 一本色道久久综合| 久久久久这里只有精品| 亚洲美女黄网| 久久亚洲精品欧美| 国产精品国产三级国产| 在线国产日韩| 欧美在现视频| 日韩图片一区| 免费视频一区| 国产亚洲欧美一区二区三区| 亚洲精品一区二区三区婷婷月| 欧美中文字幕第一页| 亚洲精品国产系列| 老司机免费视频久久| 国产欧美综合在线| 亚洲性人人天天夜夜摸| 亚洲国产黄色| 久久九九国产精品| 国产一区二区三区四区hd| 亚洲一本大道在线| 亚洲国产一区二区视频| 久久久久久夜精品精品免费| 国产精品美女在线|