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

八葉草

學習資料記錄

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>
            一本色道久久精品| 一区二区三区国产| 欧美成人按摩| 美日韩精品免费| 最新中文字幕亚洲| 日韩亚洲欧美成人| 国产精品成人一区二区三区吃奶 | 欧美一级视频免费在线观看| 国产情侣久久| 麻豆freexxxx性91精品| 欧美成人一区二区三区在线观看| 一区二区三区毛片| 亚洲一区二区黄| 精品成人一区二区| 亚洲国产你懂的| 欧美午夜精品久久久久久浪潮 | 久久久精品动漫| 亚洲欧洲午夜| 亚洲专区免费| 亚洲欧洲日本国产| 亚洲视频精品在线| **性色生活片久久毛片| 99视频一区二区三区| 国产一区二区三区在线观看免费视频| 欧美电影在线观看完整版| 欧美午夜久久| 你懂的国产精品永久在线| 欧美无砖砖区免费| 免费人成网站在线观看欧美高清| 欧美日本久久| 欧美不卡一区| 国产精品视频999| 亚洲国产激情| 极品少妇一区二区| 亚洲视频香蕉人妖| 9久re热视频在线精品| 久久精品99国产精品日本| 国产精品99久久久久久宅男 | 亚洲欧洲午夜| 欧美福利在线观看| 久久国产乱子精品免费女| 欧美极品影院| 欧美成人69| 国产日韩欧美中文在线播放| 亚洲国产另类久久久精品极度| 国产日韩免费| 99精品国产在热久久婷婷| 亚洲激情一区二区| 欧美亚洲色图校园春色| 亚洲一区三区在线观看| 欧美日本亚洲韩国国产| 男女激情久久| 影音先锋中文字幕一区| 久久xxxx精品视频| 欧美一区不卡| 国产精品美女999| 一区二区激情小说| 99视频超级精品| 欧美紧缚bdsm在线视频| 亚洲国产高清在线观看视频| 在线成人性视频| 久久美女性网| 欧美jizz19性欧美| 狠狠v欧美v日韩v亚洲ⅴ| 久久福利视频导航| 久久久精品一品道一区| 国产字幕视频一区二区| 久久九九99视频| 巨胸喷奶水www久久久免费动漫| 国产亚洲综合精品| 久久久久中文| 亚洲九九九在线观看| 欧美成人免费播放| 亚洲欧洲精品天堂一级| 亚洲桃花岛网站| 国产精品va在线播放| 亚洲伊人伊色伊影伊综合网| 欧美亚洲综合久久| 伊人久久亚洲影院| 欧美ed2k| 鲁大师成人一区二区三区| 伊人久久成人| 欧美护士18xxxxhd| 一区二区三区日韩欧美| 欧美一区二区网站| 在线精品亚洲一区二区| 欧美国产视频一区二区| 宅男噜噜噜66一区二区| 久久久久九九视频| 亚洲乱码国产乱码精品精98午夜| 欧美日韩三级一区二区| 欧美在线999| 亚洲高清三级视频| 欧美亚洲在线观看| 亚洲国产一区二区三区青草影视 | 欧美人成在线视频| 亚洲一区制服诱惑| 欧美成人午夜| 亚洲一区二区三区在线看| 国产一区在线播放| 欧美韩国在线| 久久爱www| 一区二区三区四区国产| 裸体女人亚洲精品一区| 亚洲一区欧美二区| 亚洲国产日日夜夜| 国产精品一区二区三区乱码| 你懂的一区二区| 亚洲欧美在线视频观看| 亚洲欧洲美洲综合色网| 久久一区欧美| 午夜精品理论片| 日韩午夜在线视频| 精品51国产黑色丝袜高跟鞋| 国产精品久久精品日日| 女人天堂亚洲aⅴ在线观看| 午夜精品一区二区在线观看| 亚洲人成人99网站| 嫩草影视亚洲| 久久久国产精品一区| 亚洲一区二区在线免费观看视频| 亚洲国产成人久久综合一区| 国产精品一区二区在线观看| 欧美a级一区二区| 久久久久久午夜| 亚洲一区二区日本| 日韩视频一区二区在线观看 | 亚洲精品一区二区三区四区高清| 国产精品亚洲产品| 欧美色图五月天| 欧美二区乱c少妇| 久久一本综合频道| 久久久久国色av免费看影院 | 你懂的成人av| 久久夜色精品| 久久青青草原一区二区| 亚洲黄色一区二区三区| 国产一区二区成人| 国产精品视频男人的天堂| 欧美日韩免费视频| 欧美黄在线观看| 欧美激情在线观看| 欧美国产欧美综合| 欧美激情视频在线免费观看 欧美视频免费一| 久久精品99国产精品日本| 午夜精品一区二区在线观看 | 亚洲成人在线视频网站| 一本到12不卡视频在线dvd| 亚洲激情在线播放| 91久久久久久久久| 亚洲精品视频在线播放| 日韩天堂在线视频| 亚洲视频在线观看一区| 亚洲免费一在线| 香蕉av福利精品导航| 久久精品欧美| 欧美mv日韩mv亚洲| 91久久精品一区二区三区| 亚洲精品欧美| 亚洲在线一区| 亚久久调教视频| 久久综合久久综合九色| 欧美激情中文字幕一区二区| 欧美日韩精品综合在线| 国产精品久久91| 国产亚洲一本大道中文在线| 亚洲电影成人| 亚洲天天影视| 久久久久久久91| 亚洲国产激情| 亚洲影院免费| 看片网站欧美日韩| 国产精品wwwwww| 伊人蜜桃色噜噜激情综合| 一区二区三区视频在线看| 香蕉国产精品偷在线观看不卡| 久久综合网色—综合色88| 亚洲免费电影在线观看| 欧美在线影院| 欧美日韩一区在线| 一区精品在线播放| 亚洲午夜精品久久| 男人插女人欧美| 亚洲天堂av高清| 欧美阿v一级看视频| 国产欧美日韩精品丝袜高跟鞋| 亚洲激情av| 欧美一区免费视频| 最新国产成人在线观看| 性8sex亚洲区入口| 欧美精品在线免费| 国内视频精品| 亚洲欧美日韩一区二区| 欧美激情女人20p| 欧美一区二区视频免费观看| 欧美日韩三级电影在线| 亚洲激情成人网| 久久精品99无色码中文字幕 | 欧美伊人久久大香线蕉综合69| 亚洲国产精品视频一区|