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

八葉草

學(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 八葉草 閱讀(547) 評(píng)論(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一区二区三区网页| 亚洲欧美在线磁力| 国产日产精品一区二区三区四区的观看方式 | 91久久久久久久久| 中文网丁香综合网| 国产农村妇女毛片精品久久麻豆 | 欧美激情视频一区二区三区在线播放| 欧美日韩免费观看中文| 亚洲在线一区| 久久精品毛片| 一二美女精品欧洲| 亚洲欧美欧美一区二区三区| 国内外成人免费视频| 欧美α欧美αv大片| 亚洲欧美日韩一区二区三区在线| 欧美一级久久| 亚洲精品欧美日韩专区| 久久夜色撩人精品| 欧美精品日韩一区| 欧美中文字幕视频| 欧美成人小视频| 亚洲欧美在线aaa| 免费成人黄色片| 午夜精品视频一区| 久久视频在线视频| 午夜精品美女自拍福到在线 | 一区在线观看| 一区二区欧美精品| 亚洲国产精品电影| 亚洲综合欧美日韩| 国产精品视频你懂的| 欧美大片免费| 国产日本欧洲亚洲| 一本一本久久| 欧美怡红院视频| 国产日韩欧美一区二区三区在线观看| 亚洲激情在线激情| 亚洲美女中出| 亚洲人体大胆视频| 久久国产精品久久久久久电车| 国产丝袜一区二区| 日韩亚洲视频| 亚洲三级电影全部在线观看高清| 亚洲国产天堂久久国产91| 国产精品亚洲综合一区在线观看| 欧美亚洲尤物久久| 欧美日韩伦理在线免费| 欧美激情片在线观看| 欧美高清在线一区二区| 麻豆精品视频在线观看视频| 国产精品日日摸夜夜摸av| 夜夜嗨一区二区| 一区二区三区www| 你懂的成人av| 欧美激情久久久久| 国产精品福利影院| 亚洲最新在线视频| 亚洲视频福利| 欧美手机在线| 中文在线不卡| 欧美一区二区三区日韩视频| 久久久91精品国产| 久久伊人一区二区| 极品少妇一区二区三区精品视频| 91久久精品日日躁夜夜躁欧美| 欧美视频一区二区三区| 亚洲裸体在线观看| 亚洲一区二区三区视频播放| 欧美视频一区二| 亚洲午夜免费福利视频| 午夜一级在线看亚洲| 国产精品日韩专区| 欧美一级在线播放| 欧美aⅴ一区二区三区视频| 欧美日韩视频专区在线播放| 日韩一区二区电影网| 亚洲欧美日韩国产综合精品二区| 久久久视频精品| 亚洲国产精品va在线观看黑人| 国产精品卡一卡二卡三| 亚洲欧美三级伦理| 女主播福利一区| 亚洲欧洲精品一区二区三区| 亚洲欧美日韩久久精品| 久久香蕉精品| 亚洲免费播放| 国产精品亚发布| 99在线|亚洲一区二区| 黄网动漫久久久| 欧美激情国产精品| 亚洲婷婷综合色高清在线| 最新国产精品拍自在线播放| 欧美日韩国产首页在线观看| 免费中文日韩| 亚洲小说欧美另类社区| 欧美激情女人20p| 亚洲欧美国产va在线影院| 巨乳诱惑日韩免费av| 亚洲免费观看| 国产一区清纯| 欧美婷婷久久| 亚洲人成人一区二区三区| 午夜综合激情| 亚洲精品乱码久久久久久日本蜜臀| 欧美一区二区精美| 亚洲国产一二三| 久久精品人人| 亚洲一区www| 在线国产精品一区| 国产精品色在线| 欧美电影资源| 久久国产精品毛片| 久久九九精品| 亚洲影院在线| 亚洲人体影院| 激情成人中文字幕| 国产美女精品人人做人人爽| 欧美大片国产精品| 久久久欧美一区二区| 香蕉乱码成人久久天堂爱免费| 亚洲欧美日韩在线播放| 亚洲精品欧美极品| 在线观看国产精品淫| 国产欧美一区二区精品仙草咪| 亚洲在线黄色| 日韩午夜一区| 最新中文字幕一区二区三区| 女人香蕉久久**毛片精品| 欧美一区二区三区四区在线观看地址 | 久久精品亚洲精品| 亚洲视频在线观看| 夜夜嗨av一区二区三区中文字幕 | 麻豆精品视频在线观看视频| 亚洲一区二区日本| 亚洲精品在线观看免费| 亚洲国产99精品国自产| 欧美成人精品1314www| 久久免费视频网站| 久久久在线视频| 久久精品中文| 在线观看中文字幕不卡| 激情视频一区| 尤物网精品视频| 亚洲电影免费在线| 欧美激情1区| 欧美激情2020午夜免费观看| 欧美好骚综合网| 欧美精品在线一区| 欧美精品七区| 国产精品扒开腿做爽爽爽软件| 欧美一区二区三区免费看| 亚洲第一久久影院| 亚洲欧洲一区| 在线亚洲免费| 欧美一区二区观看视频| 久久天天狠狠| 欧美精品一区在线| 欧美日韩精品一区二区三区| 性欧美8khd高清极品| 欧美制服第一页| 蜜桃av噜噜一区| 亚洲在线观看视频| 久久成人国产精品| 欧美sm视频| 欧美日精品一区视频| 国产日韩在线一区| 亚洲国产导航| 亚洲亚洲精品在线观看| 欧美有码在线视频| 欧美搞黄网站| 亚洲一区二区三区在线看| 欧美在线观看一区二区三区| 蜜桃久久精品一区二区| 欧美少妇一区| 激情综合网址| 亚洲欧美国产一区二区三区| 亚洲成在线观看| 亚洲小视频在线| 免费观看一级特黄欧美大片| 亚洲精品欧美极品| 久久精品国产96久久久香蕉| 欧美激情综合亚洲一二区| 国产啪精品视频| 一区二区三区高清在线| 亚洲丰满在线| 亚洲欧美www| 亚洲国产经典视频| 欧美一区二区三区喷汁尤物| 91久久精品www人人做人人爽 | 亚洲欧洲日本国产| 国产一区二区久久精品| 日韩午夜电影在线观看| 久久另类ts人妖一区二区| 久久爱www.| 99成人在线|