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

八葉草

學習資料記錄

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 八葉草 閱讀(536) 評論(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>
            亚洲精品国产精品久久清纯直播| 亚洲国产欧美一区二区三区久久| 羞羞视频在线观看欧美| 99re视频这里只有精品| 一本久久a久久免费精品不卡| 亚洲精品视频在线看| 一区二区三区久久久| 亚洲网站在线观看| 欧美一级二区| 久久午夜电影网| 欧美日本在线观看| 国产精品久久久久久久app| 国产精品豆花视频| 国内在线观看一区二区三区| 在线观看国产日韩| 一本一本久久a久久精品牛牛影视| 一区二区精品国产| 久久久国产精品一区二区中文| 免费在线成人| 亚洲最新色图| 久久久久久精| 欧美视频一区二区在线观看| 国产欧美在线视频| 亚洲精品一区二区三区樱花| 亚洲免费中文| 久久综合一区二区| 中日韩视频在线观看| 久久久久久亚洲精品中文字幕 | 亚洲欧美在线x视频| 久久久久看片| 国产精品成人久久久久| 亚洲国产欧美一区| 久久黄金**| 99热在线精品观看| 免费在线成人| 国内精品模特av私拍在线观看| 99精品国产在热久久下载| 榴莲视频成人在线观看| 亚洲午夜一区| 欧美亚洲不卡| 在线视频亚洲一区| 亚洲日本中文字幕免费在线不卡| 亚洲在线视频观看| 欧美日韩精品在线| 亚洲欧洲一二三| 久久久亚洲欧洲日产国码αv| 一本色道久久综合亚洲91| 久久久精品午夜少妇| 国产三级欧美三级| 久久xxxx| 午夜精品一区二区三区电影天堂 | 国内精品一区二区三区| 亚洲在线一区二区| 99热免费精品在线观看| 欧美日韩色综合| 一本色道久久综合| 日韩视频免费在线| 欧美日韩国产一区二区三区| 99精品国产99久久久久久福利| 欧美成人免费大片| 奶水喷射视频一区| 亚洲日本一区二区三区| 欧美黄色精品| 欧美精品激情在线| 亚洲视频在线观看视频| 亚洲毛片在线观看.| 欧美色图天堂网| 亚洲欧美中文字幕| 亚洲欧美日产图| 国内成人精品2018免费看| 久久久久久久久久久久久女国产乱| 欧美一区=区| 激情综合电影网| 欧美成人国产一区二区| 欧美福利小视频| 一区二区三区视频在线| 一区二区欧美视频| 国产欧美精品日韩精品| 久久精品国产精品亚洲| 久久精品天堂| 亚洲欧洲一区二区三区久久| 99re6热只有精品免费观看| 欧美日韩在线另类| 欧美在线高清视频| 久久久国产精品亚洲一区| 亚洲黄色av一区| 一区二区三区 在线观看视| 国产女主播在线一区二区| 美玉足脚交一区二区三区图片| 欧美成人午夜影院| 午夜精品在线| 美国成人毛片| 午夜精品理论片| 乱码第一页成人| 午夜精品福利一区二区蜜股av| 久久精品一区二区三区四区 | 国语对白精品一区二区| 亚洲大胆在线| 国产精品女人久久久久久| 男女精品视频| 国产精品视频一区二区三区| 你懂的视频一区二区| 国产精品黄视频| 欧美激情在线有限公司| 国产区二精品视| 亚洲理论电影网| 亚洲第一网站| 午夜精品视频在线观看| 99综合视频| 亚洲人成网站色ww在线| 国产女主播一区二区| 日韩视频专区| 在线观看免费视频综合| 亚洲一区免费视频| 一区二区高清视频| 久久久久久久久久久久久久一区| 亚洲伊人网站| 欧美日本精品一区二区三区| 老司机午夜精品视频| 国产精品视频免费一区| 一本久道久久综合婷婷鲸鱼| 亚洲破处大片| 久久亚洲精品中文字幕冲田杏梨| 欧美一区二区免费视频| 国产精品高清在线| 99这里有精品| 亚洲影视在线| 欧美新色视频| 亚洲午夜在线视频| 亚洲一区二区3| 国产精品国产一区二区| 亚洲午夜三级在线| 欧美亚洲专区| 国产精品日韩高清| 亚洲欧美国产高清| 欧美一区国产二区| 国产欧美va欧美va香蕉在| 亚洲视频播放| 亚洲欧美在线另类| 国产午夜一区二区三区| 久久成人亚洲| 老妇喷水一区二区三区| 狠狠色丁香婷婷综合久久片| 亚洲综合色在线| 欧美在线一区二区| 国产一区二区三区黄视频| 欧美在线视频导航| 美女脱光内衣内裤视频久久影院 | 亚洲在线中文字幕| 国产精品欧美久久| 亚洲午夜激情网页| 亚洲高清视频一区| 欧美精品久久久久久久| 在线综合+亚洲+欧美中文字幕| 亚洲永久免费观看| 国产精品蜜臀在线观看| 欧美一区二区三区精品电影| 久久综合狠狠| 夜夜嗨av色综合久久久综合网| 欧美精品v国产精品v日韩精品| 最新中文字幕亚洲| 蜜臀a∨国产成人精品| 在线播放亚洲| 久久久久久久高潮| 亚洲精品国产日韩| 欧美成人自拍视频| 久久综合亚洲社区| 你懂的成人av| 亚洲美女视频| 欧美亚男人的天堂| 国产精品高潮呻吟| 香蕉久久夜色精品| 亚洲午夜一区二区三区| 欧美视频观看一区| 国产精品福利片| 免费看av成人| 日韩午夜激情| 欧美一区二区三区另类| 亚洲第一成人在线| 夜夜爽99久久国产综合精品女不卡| 亚洲第一区中文99精品| 亚洲一区二区三区四区五区黄| 国产精一区二区三区| 午夜精品久久久久久99热| 国产在线观看一区| 久久久综合视频| 这里只有视频精品| 在线观看成人网| 国产日韩精品一区观看| 欧美激情一区二区三区四区| 久久www成人_看片免费不卡| 99精品视频一区二区三区| 欧美国产成人精品| 久久久久免费视频| 亚洲欧美bt| 一区二区激情| 日韩午夜电影av| 亚洲人成在线播放网站岛国| 国产亚洲女人久久久久毛片| 国产精品久久国产三级国电话系列 |