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

八葉草

學習資料記錄

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>
            亚洲精品欧美日韩| 亚洲一区欧美| 免费欧美高清视频| 1024成人网色www| 欧美激情aⅴ一区二区三区| 久久亚洲一区二区| 亚洲黄色天堂| 日韩午夜av在线| 国产精品免费观看在线| 午夜亚洲精品| 久久精品主播| 亚洲精品在线一区二区| 一区二区三区.www| 国产亚洲一区在线播放| 嫩草成人www欧美| 欧美黄色大片网站| 亚洲手机成人高清视频| 午夜精品在线| 亚洲精选中文字幕| 亚洲欧美视频一区二区三区| 国产午夜精品久久久| 久久天天躁狠狠躁夜夜av| 嫩草影视亚洲| 亚洲一区二区三区乱码aⅴ| 欧美在线免费观看视频| 亚洲精品一品区二品区三品区| 日韩亚洲一区二区| 一区二区自拍| 一区二区三区精品久久久| 国内外成人在线视频| 亚洲黄色av| 国产日韩欧美在线| 亚洲人成人一区二区在线观看 | 欧美aa国产视频| 欧美视频不卡| 欧美激情一区二区| 国产欧美在线看| 亚洲精品男同| 在线视频国内自拍亚洲视频| 亚洲无线观看| 这里只有精品视频| 久久久久久尹人网香蕉| 亚洲欧美在线网| 欧美精品一区二区精品网| 久久夜色精品一区| 国产欧美日韩综合一区在线播放| 亚洲国产一区二区在线| 黄色成人片子| 欧美亚洲免费在线| 午夜精品久久久久久久蜜桃app | 亚洲精品九九| 1024成人网色www| 欧美一区二区免费视频| 亚洲欧美在线高清| 欧美日韩亚洲一区在线观看| 欧美高清视频在线观看| 在线免费观看视频一区| 欧美亚洲一区二区在线| 亚洲欧美视频在线观看| 欧美日韩在线一区二区| 亚洲人成网站在线播| 亚洲欧洲午夜| 免费成人高清在线视频| 免费观看日韩av| 狠狠色丁香婷婷综合| 久久久精品欧美丰满| 欧美主播一区二区三区| 国产精品一区视频网站| 亚洲影院污污.| 亚洲欧美日韩一区二区在线 | 欧美成人日韩| 亚洲高清视频在线| 99re热精品| 欧美巨乳在线| aaa亚洲精品一二三区| 亚洲视频在线一区观看| 国产精品久久久久久久久动漫| 中日韩视频在线观看| 亚洲欧美中文另类| 国产自产v一区二区三区c| 久久精品一区蜜桃臀影院| 欧美成年人视频| 亚洲精品乱码视频| 欧美视频一区二区在线观看| 亚洲一区免费视频| 免费不卡在线观看av| 亚洲精品久久久久| 国产精品久久久久久久久动漫| 亚洲一区免费视频| 久久综合给合| aaa亚洲精品一二三区| 国产精品va| 久久精品中文字幕一区二区三区| 欧美大片一区二区三区| 妖精视频成人观看www| 国产免费成人av| 久久综合伊人77777麻豆| 91久久精品国产91久久性色| 亚洲小少妇裸体bbw| 韩国亚洲精品| 欧美午夜精品理论片a级按摩| 欧美在线观看视频| 亚洲精品国产精品国产自| 性欧美精品高清| 亚洲人成网站在线播| 国产精品一区免费视频| 六月天综合网| 亚洲欧美日韩一区二区三区在线| 欧美二区乱c少妇| 亚洲女同同性videoxma| 一区免费在线| 国产精品久久久久久久电影| 久久精品72免费观看| 亚洲欧洲日本专区| 蜜桃伊人久久| 欧美一区二区三区在线| 亚洲老司机av| 亚洲第一级黄色片| 国产精品一页| 欧美午夜久久久| 欧美护士18xxxxhd| 久久久久欧美精品| 中文日韩欧美| 99热在这里有精品免费| 米奇777在线欧美播放| 欧美一区二区日韩| 一本久道久久综合婷婷鲸鱼| 亚洲高清在线| 伊人婷婷久久| 国产日韩欧美不卡在线| 国产精品久久久久久久久久三级| 欧美凹凸一区二区三区视频| 久久精品一区四区| 久久黄色影院| 亚洲欧美日韩成人| 亚洲视频一区二区免费在线观看| 91久久精品美女| 欧美黄色免费网站| 欧美国产精品劲爆| 亚洲成人资源网| 亚洲高清在线播放| 亚洲电影在线观看| 91久久国产自产拍夜夜嗨 | 99热免费精品在线观看| 最近中文字幕日韩精品| 最新国产拍偷乱拍精品| 亚洲激情在线激情| 亚洲免费观看高清完整版在线观看熊 | 亚洲第一天堂av| 欧美黄色日本| 亚洲日本国产| 日韩亚洲欧美一区二区三区| 夜夜嗨av一区二区三区免费区| 亚洲国产精品欧美一二99| 亚洲人成网站色ww在线| 一本色道久久| 亚洲欧美日韩视频二区| 欧美一区二区在线视频| 久久精品综合| 欧美美女福利视频| 国产精品久久久久av| 国产欧美视频一区二区三区| 国产一区二区三区四区三区四| 国内外成人在线| 亚洲精品视频在线| 午夜精品免费| 免费欧美网站| 夜夜嗨av一区二区三区中文字幕| 亚洲性人人天天夜夜摸| 久久久久久久综合| 欧美激情一区二区三区高清视频| 欧美日韩在线影院| 国产一区日韩欧美| 日韩亚洲欧美成人| 久久精精品视频| 欧美激情视频一区二区三区不卡| 亚洲国产精品va| 亚洲一区二区在线看| 久久亚洲风情| 欧美视频官网| 亚洲高清二区| 欧美一级电影久久| 欧美激情影院| 午夜精品久久久久久久99水蜜桃| 久久久久九九九| 国产精品毛片高清在线完整版| 国产一区二区三区电影在线观看| 亚洲国产va精品久久久不卡综合| 一本到12不卡视频在线dvd| 久久精品国产久精国产爱| 亚洲精品欧美一区二区三区| 午夜精品成人在线| 欧美日韩亚洲不卡| 伊人色综合久久天天五月婷| 亚洲欧美另类国产| 亚洲激情欧美激情| 久久免费国产| 国产亚洲精品一区二区| 亚洲天堂免费观看| 亚洲大胆美女视频|