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

八葉草

學習資料記錄

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>
            欧美一区二区三区精品| 欧美专区日韩专区| 美乳少妇欧美精品| 亚洲国产合集| 欧美国产日本高清在线| 欧美成ee人免费视频| 亚洲欧洲一区| 一片黄亚洲嫩模| 国产精品丝袜xxxxxxx| 欧美伊人久久大香线蕉综合69| 午夜一区二区三区在线观看| 国产日韩欧美综合| 久久综合给合| 欧美成人在线免费观看| 在线亚洲精品| 午夜激情综合网| 1024精品一区二区三区| 亚洲国产清纯| 欧美视频日韩| 久久亚洲视频| 欧美精品久久一区| 新狼窝色av性久久久久久| 久久精品国产亚洲5555| 亚洲麻豆一区| 亚洲自拍16p| 亚洲三级视频| 亚洲在线中文字幕| 亚洲国产岛国毛片在线| 在线一区二区日韩| 一区国产精品| 亚洲午夜激情在线| 亚洲国产99精品国自产| 亚洲永久精品大片| 亚洲国产精品精华液网站| 99成人在线| 国产婷婷精品| 日韩亚洲综合在线| 亚洲国产精品t66y| 亚洲欧美高清| 一区二区三区导航| 美女999久久久精品视频| 亚洲欧美精品一区| 免费在线欧美视频| 久久美女性网| 国产精品久久久| 91久久精品国产| 韩国欧美一区| 亚洲淫性视频| 亚洲视频综合| 欧美金8天国| 欧美成人日韩| 一区在线视频| 欧美一区1区三区3区公司| 国产精品99久久久久久有的能看| 久色成人在线| 久久亚洲精品网站| 国产欧美日韩在线| 中文日韩在线| 亚洲一区在线视频| 欧美精品一区在线| 欧美激情片在线观看| 国产一区二区三区观看| 亚洲欧美国产视频| 亚洲欧美精品| 国产精品久久久久久久久果冻传媒 | 一区二区三区精密机械公司| 亚洲精品在线三区| 欧美成人精品在线播放| 欧美成人精品高清在线播放| 国产综合色产| 久久久久国产精品一区二区| 久久岛国电影| 好看的日韩视频| 久久久www免费人成黑人精品| 久久精品九九| 狠狠色伊人亚洲综合网站色| 欧美在线视频观看免费网站| 久久久精品国产免费观看同学 | 麻豆成人在线| 欧美成人r级一区二区三区| 一区精品久久| 欧美顶级少妇做爰| 亚洲毛片网站| 香蕉久久夜色| 激情欧美一区二区三区| 久久综合电影一区| 最新国产の精品合集bt伙计| 日韩一级精品视频在线观看| 欧美午夜无遮挡| 午夜久久影院| 欧美r片在线| 日韩一区二区福利| 国产精品vvv| 久久aⅴ国产紧身牛仔裤| 牛牛影视久久网| 一区二区三区四区五区精品| 国产乱理伦片在线观看夜一区 | 亚洲欧洲日本在线| 亚洲综合日韩中文字幕v在线| 国产欧美丝祙| 牛牛国产精品| 亚洲欧美激情诱惑| 欧美成人日本| 午夜久久久久久| 136国产福利精品导航| 欧美精品18| 欧美在线free| 一本到12不卡视频在线dvd| 久久精精品视频| 日韩视频免费观看高清在线视频| 国产精品素人视频| 美玉足脚交一区二区三区图片| 在线视频你懂得一区| 蜜臀a∨国产成人精品| 亚洲色图综合久久| 亚洲高清123| 国产乱码精品一区二区三区五月婷| 玖玖玖国产精品| 西瓜成人精品人成网站| 亚洲日本aⅴ片在线观看香蕉| 久久精品国产在热久久| 一区二区三区 在线观看视| 一色屋精品亚洲香蕉网站| 国产精品成人va在线观看| 欧美插天视频在线播放| 性色一区二区三区| 一区二区三区产品免费精品久久75 | 欧美一区二区三区日韩| 亚洲精品一级| 亚洲第一区色| 国产一区二区三区无遮挡| 国产精品啊啊啊| 欧美国产一区二区在线观看| 久久久久天天天天| 久久成人综合网| 亚洲男人第一av网站| 夜夜夜精品看看| 亚洲毛片在线观看.| 最近看过的日韩成人| 欧美va亚洲va日韩∨a综合色| 久久国产精品久久久久久| 亚洲女性裸体视频| 亚洲天堂黄色| 一本色道久久综合亚洲精品按摩| 1769国内精品视频在线播放| 国产综合香蕉五月婷在线| 国产欧美日韩激情| 国产麻豆9l精品三级站| 国产精品夜夜夜| 国产精品一二三视频| 国产精品一级| 国产日韩欧美精品| 国产一区二区三区久久精品| 国产一区二区精品丝袜| 国产亚洲午夜| 国内一区二区在线视频观看| 国产自产2019最新不卡| 激情综合色丁香一区二区| 国产综合色一区二区三区| 精品电影在线观看| 亚洲三级影片| 亚洲深夜福利| 先锋影音一区二区三区| 久久久国产午夜精品| 欧美99在线视频观看| 欧美激情一区二区三区 | 欧美亚洲色图校园春色| 久久av一区二区三区| 久久亚洲综合网| 亚洲国产精品一区二区第四页av| 亚洲另类自拍| 性欧美在线看片a免费观看| 久久久久**毛片大全| 蜜臀av在线播放一区二区三区| 欧美精品亚洲| 国产午夜亚洲精品理论片色戒| 狠狠色综合播放一区二区| 亚洲精品乱码久久久久久蜜桃麻豆| 99国产精品99久久久久久| 性欧美videos另类喷潮| 久色成人在线| 9l视频自拍蝌蚪9l视频成人| 午夜一级久久| 欧美精品福利视频| 国产日韩精品在线观看| 亚洲高清中文字幕| 亚洲欧美日韩成人| 欧美大片在线观看| 国产精品99久久久久久人| 久久久欧美一区二区| 欧美三级黄美女| 1024成人| 午夜亚洲一区| 亚洲国产乱码最新视频| 午夜免费久久久久| 欧美日韩在线三区| 91久久在线| 久久久91精品国产| 中文精品视频一区二区在线观看| 久久只有精品|