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

八葉草

學習資料記錄

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>
            国产中文一区二区| 国产精品色在线| 亚洲日韩第九十九页| 久久综合网络一区二区| 久久综合九色| 亚洲精品亚洲人成人网| 亚洲伦理精品| 欧美性色aⅴ视频一区日韩精品| 中日韩男男gay无套| 一区二区三区四区五区视频| 国产精品日韩精品| 久久精品欧洲| 美女网站久久| 亚洲一品av免费观看| 亚洲尤物视频网| 在线观看欧美亚洲| 一片黄亚洲嫩模| 国产一本一道久久香蕉| 欧美激情 亚洲a∨综合| 欧美日韩另类在线| 久久全国免费视频| 欧美精品国产精品| 久久精品在线观看| 欧美成人中文| 久久精品夜色噜噜亚洲a∨| 欧美成人午夜| 久久精品国产亚洲aⅴ| 你懂的国产精品永久在线| 这里只有精品视频在线| 久久精品国产一区二区三区免费看| 亚洲国产精品久久久久婷婷884 | 亚洲欧美日韩国产中文| 久久高清免费观看| 99v久久综合狠狠综合久久| 亚洲欧美综合另类中字| 日韩亚洲一区二区| 欧美伊人影院| 午夜精品久久久久久久99黑人| 美脚丝袜一区二区三区在线观看| 亚洲专区国产精品| 欧美99久久| 另类亚洲自拍| 国产欧美精品日韩| 99精品国产99久久久久久福利| 精品91免费| 欧美怡红院视频一区二区三区| 在线综合亚洲欧美在线视频| 狼人天天伊人久久| 久久精品伊人| 国产精品无码永久免费888| 亚洲国内精品| 亚洲经典在线看| 久久精品99无色码中文字幕 | 亚洲视频精选| 欧美aⅴ99久久黑人专区| 欧美在线免费视屏| 国产精品日韩一区二区三区| 日韩午夜精品| 在线视频你懂得一区| 久久综合免费视频影院| 你懂的国产精品永久在线| 国产婷婷97碰碰久久人人蜜臀| 亚洲一区免费视频| 亚洲欧美乱综合| 国产精品嫩草99av在线| 亚洲桃花岛网站| 亚洲一区三区在线观看| 欧美日韩国产首页在线观看| 亚洲精品裸体| 一本久久综合亚洲鲁鲁| 欧美日韩在线播放三区四区| 99视频超级精品| 亚洲一区二区在线观看视频| 欧美三区美女| 亚洲少妇在线| 久久精品99国产精品日本| 国产欧美亚洲视频| 久久激情视频| 亚洲国产精品va在看黑人| 亚洲狼人精品一区二区三区| 欧美日产在线观看| 亚洲天堂网站在线观看视频| 午夜一区二区三视频在线观看| 国产精品一香蕉国产线看观看| 亚洲欧美日韩另类| 久久人人超碰| av不卡在线观看| 国产精品亚洲综合| 久久精品人人做人人综合| 欧美成人一区二区三区片免费| 亚洲精品视频一区二区三区| 欧美视频福利| 欧美在线视频不卡| 亚洲国产导航| 久久成人精品视频| 亚洲国产精品成人一区二区| 欧美日韩不卡视频| 午夜视频在线观看一区二区三区 | 每日更新成人在线视频| 亚洲精品久久7777| 国产精品久久久久毛片软件| 欧美自拍偷拍午夜视频| 亚洲高清视频一区二区| 午夜精品久久久久| 亚洲人精品午夜在线观看| 国产精品国产三级国产aⅴ无密码| 欧美在线观看视频在线| 亚洲欧洲日夜超级视频| 欧美一区二区三区免费看| 在线观看不卡| 国产欧美一区二区精品婷婷| 欧美凹凸一区二区三区视频| 午夜一级久久| 日韩视频一区二区在线观看| 久久久99精品免费观看不卡| 亚洲免费成人av| 狠狠色狠色综合曰曰| 欧美日韩三区| 欧美高清视频一区| 久久精品123| 午夜视频一区在线观看| 亚洲伦理网站| 亚洲国产精品一区在线观看不卡| 久久久久看片| 欧美一区二区三区四区高清| 亚洲视频专区在线| 夜夜嗨一区二区三区| 亚洲成色777777在线观看影院| 国产女人水真多18毛片18精品视频| 欧美国产高清| 欧美华人在线视频| 老妇喷水一区二区三区| 久久国产精品久久w女人spa| 亚洲综合视频1区| 在线一区视频| 一区二区三区欧美视频| 91久久香蕉国产日韩欧美9色| 农夫在线精品视频免费观看| 久久久久久久久久久久久9999| 亚洲欧美怡红院| 亚洲欧美欧美一区二区三区| 亚洲免费视频在线观看| 在线中文字幕一区| 亚洲性视频h| 亚洲伊人久久综合| 亚洲香蕉伊综合在人在线视看| 亚洲精一区二区三区| 亚洲精选一区二区| 日韩一区二区精品视频| 一本色道综合亚洲| 999亚洲国产精| 亚洲午夜精品久久久久久浪潮 | 亚洲国产精品传媒在线观看 | 久久久av毛片精品| 久久国产精品色婷婷| 久久国产精品久久久久久久久久 | 亚洲欧美日韩爽爽影院| 亚洲一区二区四区| 午夜精品理论片| 久久精品国产77777蜜臀| 欧美中文字幕久久| 久久久久久久久久久久久女国产乱 | 欧美精品日韩精品| 欧美日韩成人一区二区三区| 欧美日韩精品一区二区天天拍小说| 欧美三区不卡| 国产欧美一区二区白浆黑人| 激情久久久久久| 亚洲精品中文在线| 午夜精品久久久久久99热| 久久久xxx| 亚洲国产精品va| 亚洲午夜小视频| 久久久久综合一区二区三区| 欧美高清在线一区二区| 国产精品久久久久久av福利软件| 国产亚洲一区精品| 99国产精品国产精品久久| 亚洲免费在线| 欧美成人精品三级在线观看| 日韩视频在线你懂得| 欧美一区二区三区视频在线观看| 女人色偷偷aa久久天堂| 国产精品素人视频| 亚洲精品视频在线| 久久久精品网| 亚洲伦伦在线| 久久久久91| 国产精品每日更新| 亚洲日本va午夜在线影院| 欧美一区二区视频免费观看| 亚洲国产精品欧美一二99| 亚洲女人av| 欧美剧在线观看| 在线不卡欧美| 久久狠狠婷婷| 一个人看的www久久| 欧美成人日本| 亚洲第一视频| 久久婷婷久久|