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

八葉草

學(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 八葉草 閱讀(531) 評論(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>
            国产日韩一区二区三区| 国产视频久久| 亚洲视频1区2区| 国产精品99久久久久久宅男| 国产精品国产三级国产普通话蜜臀 | 日韩亚洲欧美成人| 99视频+国产日韩欧美| 国产精品欧美久久久久无广告| 欧美一区二区高清| 久久色在线播放| 在线中文字幕日韩| 亚洲午夜一区二区三区| 国产一区在线看| 男女av一区三区二区色多| 欧美极品aⅴ影院| 欧美一区二区免费| 免费h精品视频在线播放| 亚洲尤物影院| 久久久久青草大香线综合精品| 亚洲精品专区| 亚洲欧美日韩成人| 亚洲精品一区在线观看香蕉| 一区二区三区四区五区视频| 狠狠久久五月精品中文字幕| 亚洲精品国产精品久久清纯直播 | 亚洲日本视频| 亚洲欧美视频一区| 亚洲美女精品久久| 欧美一区二区三区在线视频| 日韩一二三区视频| 久久成人资源| 亚洲欧美日韩国产精品| 美国成人直播| 久久精品在线| 国产精品扒开腿爽爽爽视频| 免费人成网站在线观看欧美高清| 欧美色大人视频| 欧美.日韩.国产.一区.二区| 国产精品卡一卡二卡三| 欧美国产成人在线| 国产午夜精品理论片a级大结局 | 欧美成人激情视频| 久久青草久久| 国产精品色在线| 亚洲免费成人av电影| 亚洲第一级黄色片| 欧美一区观看| 久久激情视频免费观看| 国产精品国产一区二区| 亚洲人在线视频| 最新国产成人av网站网址麻豆 | 欧美一级久久| 亚洲欧美精品在线| 欧美日韩在线三区| 亚洲欧洲一区二区天堂久久| 在线观看亚洲一区| 久久九九全国免费精品观看| 久久精品国产亚洲a| 国产精品日韩久久久| 亚洲视频一区在线| 亚洲欧美日韩精品| 国产精品久久中文| 亚洲香蕉成视频在线观看| 亚洲午夜精品在线| 欧美视频日韩视频| 亚洲最黄网站| 亚洲欧美综合v| 国产精品一区二区久久精品| 亚洲砖区区免费| 欧美在线影院在线视频| 国产亚洲欧美另类一区二区三区| 亚洲影视中文字幕| 久久久久久久久一区二区| 国产一区二区三区久久久久久久久| 亚洲自拍偷拍麻豆| 久久久久国色av免费观看性色| 国产精品自拍一区| 久久激情综合| 亚洲国产91| 亚洲午夜电影网| 国产精品午夜久久| 久久精品一区二区国产| 欧美激情一区二区三区| 一本色道精品久久一区二区三区| 欧美日韩在线一区| 欧美一级片久久久久久久| 免费观看久久久4p| 一区二区三区视频在线| 国产欧美综合在线| 麻豆成人综合网| 一本色道久久88精品综合| 久久不见久久见免费视频1| 一区二区三区在线观看欧美 | 亚洲欧美综合v| 欧美阿v一级看视频| 一区二区三区精品视频| 国产欧美成人| 欧美精品福利在线| 欧美一级视频精品观看| 亚洲国产天堂久久综合| 欧美一级大片在线观看| 亚洲黄页视频免费观看| 国产精品视频| 欧美成在线视频| 午夜精品剧场| 日韩视频在线观看免费| 久久亚洲精品一区| 亚洲综合电影| 亚洲精品色图| 韩国女主播一区二区三区| 欧美日韩成人一区二区| 久久精品九九| 亚洲男人第一网站| 夜夜夜久久久| 亚洲激情网站免费观看| 久久影视精品| 欧美一区二区视频观看视频| 99re国产精品| 亚洲国产精品成人久久综合一区| 国产精品视区| 欧美视频一区在线观看| 欧美黄色一区二区| 老牛国产精品一区的观看方式| 亚洲欧美韩国| 亚洲综合精品四区| 夜夜精品视频| 夜夜嗨av一区二区三区中文字幕 | 亚洲女人天堂成人av在线| 亚洲欧洲精品一区二区三区波多野1战4 | 亚洲精品一二三区| 欧美激情女人20p| 欧美α欧美αv大片| 久久永久免费| 久久影视三级福利片| 久久久久成人网| 久久黄金**| 久久久久久久一区二区三区| 欧美影院在线播放| 香港成人在线视频| 欧美亚洲在线| 久久狠狠久久综合桃花| 久久爱www.| 久久一区激情| 免费在线国产精品| 蜜桃av一区二区三区| 久久综合一区| 欧美高清自拍一区| 亚洲区在线播放| 日韩视频免费看| 亚洲性感美女99在线| 香蕉精品999视频一区二区 | 日韩一区二区精品| 一区二区三区四区在线| 午夜精品999| 久久精品视频在线看| 久久这里只有| 欧美人与性禽动交情品| 国产精品羞羞答答xxdd| 国产一在线精品一区在线观看| 国模大胆一区二区三区| 亚洲电影免费观看高清完整版在线 | 久久九九久精品国产免费直播| 久久久久久一区二区三区| 免费人成精品欧美精品| 欧美日本韩国| 国产日韩欧美a| 亚洲激情校园春色| 亚洲无限av看| 免费在线成人| 亚洲天堂av在线免费观看| 久久福利精品| 欧美精品色网| 国产视频在线观看一区二区三区| 在线观看视频欧美| 亚洲摸下面视频| 欧美成人免费网| 亚洲一区二区成人| 蜜桃av久久久亚洲精品| 欧美午夜电影一区| 亚洲国产mv| 欧美一区国产在线| 亚洲国产美国国产综合一区二区| 亚洲一区二区黄色| 欧美久久九九| 在线日韩日本国产亚洲| 亚洲欧美精品在线| 最近中文字幕日韩精品 | 欧美日韩四区| 伊甸园精品99久久久久久| 亚洲午夜性刺激影院| 蜜月aⅴ免费一区二区三区| 亚洲视频久久| 欧美人妖在线观看| 亚洲福利国产精品| 久久久综合网站| 亚洲午夜久久久| 欧美日韩一区二区高清| 亚洲欧洲精品一区二区三区| 久久久99精品免费观看不卡| 亚洲视频视频在线|