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

八葉草

學(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 八葉草 閱讀(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>
            亚洲精品字幕| 亚洲一区二区三区激情| 欧美三区视频| 久久亚洲色图| 久久综合色婷婷| 欧美成人免费在线视频| 欧美不卡视频一区| 欧美日韩一区二区免费视频| 国产精品啊v在线| 国产视频一区在线| 亚洲第一页在线| 亚洲午夜精品在线| 老司机午夜免费精品视频| 亚洲欧洲久久| 亚洲一级片在线看| 久久人91精品久久久久久不卡| 欧美韩日视频| 国产欧美日韩亚洲精品| 亚洲国产天堂久久国产91| 亚洲一区二区三区久久| 久久免费高清| 一区二区日韩免费看| 久久精品国产一区二区三区| 欧美成人激情在线| 国产区精品视频| 日韩亚洲欧美在线观看| 久久久久久久91| 亚洲精品中文字| 久久在线免费| 国产精品视频xxx| 亚洲精品三级| 久久综合伊人| 亚洲男人的天堂在线| 欧美精品v日韩精品v国产精品| 国产日韩精品久久| 亚洲小说欧美另类婷婷| 免费观看日韩av| 欧美一区二区在线| 欧美日韩综合不卡| 亚洲精品中文字幕在线| 久久精品在这里| 亚洲网站在线观看| 欧美日韩激情网| 亚洲欧洲精品一区二区三区不卡 | 亚洲午夜久久久久久尤物 | 欧美.www| 午夜精品电影| 国产精品国产三级国产a| 亚洲日本中文字幕| 日韩视频精品在线| 久久久久久国产精品mv| 国产精品美腿一区在线看| 日韩视频永久免费| 欧美激情视频给我| 老妇喷水一区二区三区| 国产综合在线视频| 久久久久亚洲综合| 久久精品一区二区三区不卡牛牛 | 亚洲精品乱码久久久久| 蜜桃精品一区二区三区 | 9l国产精品久久久久麻豆| 欧美精品一区二区三区在线看午夜 | 一区二区黄色| 国产精品v片在线观看不卡| 亚洲婷婷综合久久一本伊一区| 亚洲精品美女91| 欧美日韩综合在线免费观看| 亚洲视频精品在线| 中文日韩电影网站| 国产精品亚洲视频| 久久久99免费视频| 久久久久久亚洲精品不卡4k岛国| 国产综合欧美| 欧美成人视屏| 欧美日韩在线视频首页| 亚洲欧美99| 欧美有码视频| 91久久国产综合久久| 亚洲精品在线三区| 国产欧美日韩综合一区在线观看| 久久精品夜色噜噜亚洲a∨ | 国产欧美精品日韩区二区麻豆天美| 欧美在线观看一区二区| 久久国产精品一区二区| 亚洲国产精品精华液网站| 亚洲国产成人久久| 国产精品嫩草影院一区二区| 久久久999精品免费| 免费在线国产精品| 亚洲欧美在线另类| 久久婷婷av| 亚洲欧美日韩第一区| 久久久久综合| 午夜精品一区二区三区在线视| 久久久久久久久久久久久女国产乱| 亚洲精品一区在线| 欧美一区二区啪啪| 99成人精品| 久久婷婷一区| 欧美一区网站| 欧美精品一卡二卡| 欧美一区二区三区喷汁尤物| 欧美午夜一区| 欧美成人免费全部观看天天性色| 欧美日韩国产首页| 另类激情亚洲| 国产精品一区二区三区乱码 | 玖玖在线精品| 国产精品入口麻豆原神| 欧美电影专区| 国产一区二区视频在线观看| 亚洲级视频在线观看免费1级| 国产精品一二三四| 亚洲免费观看高清在线观看 | 国产精品久久一区二区三区| 欧美韩日一区二区三区| 国产女主播在线一区二区| 亚洲激情图片小说视频| 激情成人综合| 性欧美1819sex性高清| 亚洲一区二区三区在线视频| 欧美91精品| 欧美a级在线| 影视先锋久久| 久久国内精品自在自线400部| 午夜欧美视频| 国产精品黄视频| av成人老司机| 亚洲视频自拍偷拍| 欧美午夜电影在线观看| 亚洲免费观看高清完整版在线观看| 最新日韩在线视频| 免费不卡在线视频| 欧美第十八页| 91久久极品少妇xxxxⅹ软件| 美女国内精品自产拍在线播放| 久久阴道视频| 在线日韩日本国产亚洲| 久久人人九九| 亚洲国产一区二区三区在线播| 亚洲国产视频一区二区| 欧美国产日本高清在线| 最新日韩精品| 亚洲天堂成人在线视频| 欧美午夜免费| 午夜精品久久久久久久99樱桃| 欧美一区日本一区韩国一区| 国产伦精品一区二区三区高清| 午夜日韩视频| 欧美成人精品一区二区| 亚洲人成网站999久久久综合| 欧美fxxxxxx另类| 亚洲美女免费精品视频在线观看| 宅男66日本亚洲欧美视频| 国产精品美女视频网站| 亚洲欧美另类中文字幕| 久久亚洲综合色| 亚洲剧情一区二区| 国产精品久久久久久久电影| 午夜精品在线| 亚洲国产精品va在线看黑人| 一区二区高清视频在线观看| 国产精品嫩草影院一区二区| 国产日韩欧美中文| 激情综合色丁香一区二区| 在线看一区二区| 一级成人国产| 亚洲开发第一视频在线播放| 久久亚洲精选| 一本一道久久综合狠狠老精东影业| 最新日韩在线视频| 中文一区在线| 欧美色精品天天在线观看视频| 国产精品久久久一区麻豆最新章节 | 国产精品色网| 欧美一级在线播放| 久久嫩草精品久久久精品| 1024亚洲| 亚洲欧洲精品一区二区三区不卡| 亚洲欧美日韩爽爽影院| 国产精品入口福利| 欧美高清视频一区二区| 欧美日韩你懂的| 欧美国产在线电影| 影音先锋日韩有码| 亚洲视频一区| 亚洲精品欧美激情| 久久伊伊香蕉| 久久精品理论片| 欧美日韩午夜在线| 日韩视频免费在线| 99国产精品99久久久久久粉嫩| 亚洲男人第一网站| 性视频1819p久久| 国产精品www.| 亚洲一区中文| 久久www免费人成看片高清 | 久久午夜精品一区二区| 欧美日韩大陆在线| 欧美成人视屏|