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

八葉草

學習資料記錄

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>
            国产日本欧洲亚洲| 国产精品亚洲综合久久| 亚洲国产精品综合| 亚洲电影成人| 欧美激情无毛| 亚洲一区中文| 欧美一区二区三区四区视频| 一区精品久久| 亚洲福利国产| 国产精品日韩久久久久| 久久国产乱子精品免费女 | 亚洲美女中文字幕| 亚洲最新视频在线播放| 国产日韩欧美日韩大片| 欧美国产精品久久| 国产精品大片wwwwww| 久久人人爽国产| 欧美国产精品中文字幕| 午夜精品国产| 免费亚洲一区二区| 午夜精品福利视频| 美国三级日本三级久久99| 亚洲天堂成人| 久久久久久穴| 亚洲欧美中文日韩在线| 久久尤物电影视频在线观看| 亚洲手机视频| 久久婷婷色综合| 午夜精品婷婷| 欧美激情aⅴ一区二区三区| 久久av老司机精品网站导航 | 亚洲人成久久| 国产亚洲精品bv在线观看| 91久久精品国产91久久| 国产一区二区三区精品久久久| 亚洲激情欧美| 激情国产一区二区| 亚洲欧美日韩一区二区三区在线观看| 亚洲国产精品嫩草影院| 午夜欧美大尺度福利影院在线看 | 欧美性大战久久久久| 免费欧美日韩| 国产日本欧美一区二区| avtt综合网| 亚洲免费观看视频| 蜜乳av另类精品一区二区| 欧美专区在线观看一区| 欧美午夜理伦三级在线观看| 亚洲国产精品999| 亚洲国产精品99久久久久久久久| 亚洲欧美日韩另类精品一区二区三区| 一本色道久久综合狠狠躁篇怎么玩 | 性欧美xxxx大乳国产app| 亚洲图片欧美一区| 欧美美女喷水视频| 亚洲激情另类| 亚洲精品在线三区| 欧美va亚洲va国产综合| 欧美黄色视屏| 亚洲精品欧美精品| 女人天堂亚洲aⅴ在线观看| 免费高清在线视频一区·| 一区二区视频免费在线观看| 久久九九99| 欧美成ee人免费视频| 亚洲国内精品| 欧美国产一区二区| 亚洲精选91| 午夜国产精品视频免费体验区| 欧美日韩在线另类| 亚洲天堂成人| 欧美在线观看视频| 国产一区二区三区四区hd| 久久不射中文字幕| 欧美顶级艳妇交换群宴| 亚洲精品视频在线观看网站| 欧美激情在线免费观看| 日韩午夜av| 久久精品国产一区二区三| 加勒比av一区二区| 欧美国产激情二区三区| 艳妇臀荡乳欲伦亚洲一区| 欧美亚洲一区二区三区| 韩国精品一区二区三区| 欧美不卡在线视频| 一区二区三区欧美视频| 久久精品国产精品| 亚洲国产精品一区二区第一页| 欧美激情无毛| 亚洲主播在线| 欧美国产综合一区二区| 亚洲视频在线看| 黑人巨大精品欧美一区二区| 蜜臀a∨国产成人精品| 一区二区三区**美女毛片| 久久国产婷婷国产香蕉| 亚洲精品视频中文字幕| 国产九色精品成人porny| 久久免费黄色| 亚洲天堂av图片| 欧美大片在线看| 亚洲欧美一区二区精品久久久| 在线看视频不卡| 欧美视频在线观看一区| 久久天天躁狠狠躁夜夜av| 这里是久久伊人| 欧美α欧美αv大片| 亚洲欧美一区二区三区极速播放| 亚洲高清视频在线观看| 国产久一道中文一区| 欧美国产日产韩国视频| 欧美在线视频一区| 亚洲最新视频在线| 亚洲成色www8888| 久久精品盗摄| 亚洲欧美一区二区三区极速播放| 亚洲人成免费| 国内成+人亚洲+欧美+综合在线| 欧美精品日韩三级| 美女主播精品视频一二三四| 午夜久久久久| 中文日韩在线| 亚洲最新视频在线| 亚洲国产裸拍裸体视频在线观看乱了中文| 欧美一级在线视频| 亚洲天堂av高清| 亚洲精品一品区二品区三品区| 黄色小说综合网站| 国产亚洲精品综合一区91| 国产精品毛片a∨一区二区三区| 欧美日本中文字幕| 欧美黄色小视频| 欧美成人四级电影| 美女网站久久| 免费欧美电影| 免费视频一区二区三区在线观看| 久久久午夜电影| 久久久精品国产免大香伊 | 亚洲香蕉网站| 欧美刺激性大交免费视频| 国产欧美日韩在线播放| 欧美黄污视频| 欧美成年视频| 欧美刺激性大交免费视频| 久久一区二区精品| 久久午夜精品| 免费h精品视频在线播放| 欧美成人精品一区| 欧美韩日精品| 欧美日韩国产在线一区| 欧美日韩直播| 国产农村妇女精品一二区| 国产乱码精品一区二区三区五月婷 | 久久免费视频网| 麻豆精品国产91久久久久久| 免费不卡在线观看av| 欧美电影资源| 日韩一级在线| 亚洲欧美中日韩| 久久久久久久综合色一本| 免费看黄裸体一级大秀欧美| 欧美精品999| 国产精品yjizz| 狠狠久久综合婷婷不卡| 亚洲精品久久久久久久久久久久久 | 在线视频亚洲| 欧美一区二区三区婷婷月色 | 亚洲大片一区二区三区| 亚洲国产视频一区| 亚洲最黄网站| 欧美中在线观看| 欧美国产乱视频| 国产精品亚洲综合色区韩国| 精品88久久久久88久久久| 亚洲美女视频网| 欧美综合77777色婷婷| 欧美激情视频网站| 亚洲男女自偷自拍| 欧美成人精精品一区二区频| 国产精品免费看片| 亚洲国产精选| 先锋影音久久| 亚洲激情成人在线| 亚洲欧美欧美一区二区三区| 免费观看久久久4p| 国产精品入口日韩视频大尺度| 在线国产亚洲欧美| 欧美亚洲一区三区| 亚洲国产小视频在线观看| 午夜一级在线看亚洲| 欧美日本视频在线| 亚洲第一区色| 久久久av水蜜桃| 一区二区三区欧美在线| 麻豆成人在线观看| 国产一区二区三区在线观看精品 | 亚洲国产一区二区三区青草影视 | 一区二区国产日产| 老司机精品久久| 国产欧美日韩亚洲|