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

八葉草

學習資料記錄

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>
            欧美一级电影久久| 久久精品视频免费播放| 亚洲三级影院| 欧美黄色小视频| 亚洲视频在线免费观看| 99热这里只有成人精品国产| 国产精品福利网| 久久精品在线| 欧美第一黄网免费网站| 国产精品99久久不卡二区| 亚洲性视频h| 黑人巨大精品欧美一区二区小视频| 久久这里有精品15一区二区三区| 欧美1区2区| 亚洲欧美日韩一区二区在线 | 亚洲在线中文字幕| 亚洲欧美一区二区三区久久 | 欧美精品啪啪| 欧美一级片久久久久久久| 久久蜜臀精品av| 亚洲一区二区三区在线看| 久久国产精品色婷婷| 亚洲国产一区在线| 亚洲视频精选| 亚洲激情影视| 亚洲男人第一网站| 亚洲片区在线| 午夜在线a亚洲v天堂网2018| 亚洲精华国产欧美| 午夜亚洲伦理| 夜夜嗨av一区二区三区四区 | 性久久久久久| 日韩一级片网址| 欧美在线日韩精品| 亚洲视频免费观看| 狂野欧美性猛交xxxx巴西| 亚洲欧美日韩国产精品| 蜜臀av性久久久久蜜臀aⅴ四虎| 亚洲一区二区三区免费在线观看| 玖玖玖国产精品| 久久精品天堂| 国产精品欧美一区喷水 | 久久xxxx精品视频| 欧美极品一区二区三区| 久热精品视频在线免费观看| 国产精品一区二区久久| 99精品视频免费在线观看| 在线观看视频亚洲| 欧美一级理论性理论a| 亚洲综合色激情五月| 欧美黄色片免费观看| 免费中文日韩| 尤物yw午夜国产精品视频| 欧美一区影院| 久久久久久久激情视频| 国产精品一区二区三区四区| 99国产精品99久久久久久| 亚洲乱码国产乱码精品精可以看| 久久天天狠狠| 欧美freesex8一10精品| 一区在线影院| 久久天天综合| 欧美国产日韩一区| 亚洲韩国精品一区| 欧美va天堂va视频va在线| 欧美国产精品人人做人人爱| 在线 亚洲欧美在线综合一区| 久久高清免费观看| 老**午夜毛片一区二区三区| 国产综合色产| 久久免费国产精品| 亚洲第一色在线| 日韩一级成人av| 欧美三级网页| 午夜精品久久久久久久蜜桃app | 日韩视频永久免费观看| 一区二区高清在线| 国产精品久久999| 亚洲一区二区三区精品在线| 欧美伊人久久久久久久久影院| 国产精品日韩专区| 欧美在线国产精品| 欧美护士18xxxxhd| 亚洲深爱激情| 国产一区二区三区在线观看精品 | 欧美日韩国产综合在线| 一本色道久久| 久久久五月天| 亚洲精品一区二| 国产精品国产精品国产专区不蜜| 亚洲欧美另类在线观看| 欧美不卡一卡二卡免费版| 亚洲美女免费视频| 国产嫩草一区二区三区在线观看| 久久精品二区三区| 亚洲欧洲综合另类| 欧美一区二区免费观在线| 亚洲高清不卡在线| 欧美日韩亚洲一区二区三区四区| 午夜一区二区三区在线观看| 欧美承认网站| 欧美影院在线| 99精品视频免费全部在线| 国产欧美日韩精品丝袜高跟鞋| 久久综合九色综合网站| 在线视频欧美日韩精品| 欧美成人69| 午夜一区不卡| 99精品福利视频| 国产在线精品一区二区夜色| 欧美日韩精品一区二区| 久久久国产成人精品| 一区二区高清视频| 欧美成人情趣视频| 久久狠狠婷婷| 亚洲少妇在线| 亚洲精品中文在线| 永久久久久久| 国产一区二区三区自拍| 欧美三区在线| 欧美精品亚洲| 免费观看一级特黄欧美大片| 欧美在线啊v一区| 亚洲女ⅴideoshd黑人| 日韩亚洲欧美综合| 亚洲国产高清一区二区三区| 久久精品一区二区三区四区 | 亚洲免费大片| 1024国产精品| 激情av一区二区| 国产午夜精品全部视频播放| 国产精品入口日韩视频大尺度| 欧美黄色aa电影| 麻豆国产精品777777在线| 久久久久国内| 久久精品在线观看| 久久精品99国产精品日本| 亚洲综合欧美| 亚洲欧美激情视频在线观看一区二区三区| 亚洲日韩欧美视频一区| 亚洲人成在线影院| 亚洲欧洲另类| 亚洲人精品午夜| 日韩一区二区电影网| 日韩午夜电影在线观看| 亚洲看片免费| 亚洲图片在区色| 亚洲男同1069视频| 午夜一区在线| 久久www成人_看片免费不卡| 久久精品亚洲精品| 久久夜色精品国产亚洲aⅴ | 亚洲欧美综合精品久久成人| 亚洲女同在线| 久久久女女女女999久久| 久久免费视频网| 欧美成人有码| 国产精品扒开腿做爽爽爽软件| 国产精品久久久免费| 国产麻豆91精品| 激情成人中文字幕| 亚洲精品一区中文| 亚洲性色视频| 久久精品一区二区国产| 欧美成人精品高清在线播放| 最新高清无码专区| 亚洲永久精品大片| 久久久久久久久久久久久女国产乱 | 久久精品99久久香蕉国产色戒| 久久久亚洲综合| 欧美日韩性生活视频| 国产欧美日韩另类一区| 亚洲国产毛片完整版| 亚洲视频欧美视频| 久久动漫亚洲| 亚洲国产精品久久久久秋霞蜜臀| aⅴ色国产欧美| 久久精品国内一区二区三区| 欧美日韩八区| 精品福利免费观看| 亚洲午夜一二三区视频| 浪潮色综合久久天堂| 一区二区三区视频免费在线观看| 亚洲欧美偷拍卡通变态| 欧美高清在线一区| 国产亚洲电影| 一道本一区二区| 久久综合久久综合久久| 亚洲最新在线视频| 免费成人黄色av| 国产欧美日韩精品丝袜高跟鞋| 久久天天躁狠狠躁夜夜av| 91久久精品网| 久久理论片午夜琪琪电影网| 国产精品国产三级国产a| 亚洲精品国产精品乱码不99 | 欧美黑人在线观看| 欧美一级二区| 国产精品视频内| 中日韩美女免费视频网址在线观看|