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

八葉草

學習資料記錄

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 八葉草 閱讀(538) 評論(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>
            一区二区三区四区五区精品| 香港久久久电影| 欧美大片免费观看在线观看网站推荐 | 洋洋av久久久久久久一区| 91久久精品美女| 欧美日韩大片一区二区三区| 亚洲午夜羞羞片| 午夜精品视频在线观看一区二区| 国内精品久久久久久久果冻传媒| 美女福利精品视频| 欧美乱妇高清无乱码| 欧美亚洲三级| 久久久久久9| 中文av字幕一区| 欧美在线资源| 野花国产精品入口| 欧美一区二区私人影院日本 | 黄页网站一区| 亚洲电影观看| 日韩视频一区二区| 国产喷白浆一区二区三区 | 欧美日韩三区| 久久久久欧美| 欧美日韩在线播放三区| 欧美一区激情视频在线观看| 六月婷婷久久| 欧美中文在线观看国产| 亚洲精品视频在线播放| 国产欧美三级| 亚洲毛片播放| 亚洲国内自拍| 亚洲欧美一区二区三区极速播放| 亚洲国产一区视频| 亚洲欧美综合另类中字| 一本久久综合亚洲鲁鲁五月天| 欧美中文字幕精品| 亚洲制服av| 欧美区在线播放| 欧美va天堂在线| 国产欧美日韩一区二区三区在线观看| 亚洲国产精品久久| 伊甸园精品99久久久久久| 日韩亚洲欧美中文三级| 在线成人免费视频| 亚洲欧美中文日韩v在线观看| 在线精品亚洲一区二区| 欧美亚洲一区二区三区| 午夜在线a亚洲v天堂网2018| 欧美日韩精品二区| 亚洲国产精品国自产拍av秋霞| 黑人一区二区三区四区五区| 亚洲综合色网站| 亚洲自拍偷拍色片视频| 欧美极品一区| 亚洲日本国产| 亚洲欧洲在线免费| 久热这里只精品99re8久| 亚洲欧洲精品成人久久奇米网| 欧美伊人久久久久久久久影院| 亚洲欧美乱综合| 国产精品视频区| 亚洲永久精品国产| 亚洲欧美一级二级三级| 国产精品美女久久久久aⅴ国产馆| 亚洲精品日韩在线| 亚洲视频在线观看免费| 欧美日韩在线电影| 亚洲一区在线播放| 欧美在线视频一区| 国产丝袜一区二区| 欧美在线黄色| 欧美高清一区二区| 亚洲免费播放| 欧美午夜剧场| 性欧美大战久久久久久久久| 久久国产精品一区二区三区| 国内精品久久久久影院 日本资源 国内精品久久久久伊人av | 99综合电影在线视频| 欧美日韩精品一区| 一区二区三区国产精品| 亚洲欧美一区二区原创| 国产日韩欧美一区| 看欧美日韩国产| 亚洲免费观看| 欧美一区二区啪啪| 亚洲国产精品国自产拍av秋霞| 欧美成在线观看| 一区二区高清在线观看| 久久国产精品久久久久久| 国内久久婷婷综合| 欧美成人免费大片| 亚洲无限av看| 美女黄色成人网| 一区二区三区**美女毛片| 国产精品国产三级国产| 久久精品免视看| 最新热久久免费视频| 午夜精品久久久久久久| 在线日本欧美| 国产精品免费一区二区三区在线观看| 久久成人18免费网站| 亚洲黄一区二区三区| 羞羞答答国产精品www一本| 好男人免费精品视频| 欧美日本网站| 久久夜色精品国产亚洲aⅴ| 日韩午夜剧场| 欧美国产极速在线| 欧美制服第一页| 99精品国产福利在线观看免费 | 亚洲精品中文字幕在线| 国产精品日韩久久久久| 另类激情亚洲| 欧美一级久久| 日韩一级二级三级| 欧美本精品男人aⅴ天堂| 欧美一区二区三区四区在线| 亚洲美女av电影| 国产专区综合网| 国产精品香蕉在线观看| 欧美乱人伦中文字幕在线| 久久精品在线| 性视频1819p久久| 亚洲激情视频在线播放| 欧美**人妖| 麻豆精品在线播放| 久久精品国产欧美激情| 午夜精品久久久久久久| 亚洲性感激情| 亚洲香蕉伊综合在人在线视看| 亚洲欧洲精品一区二区三区不卡| 国产在线精品成人一区二区三区 | 亚洲国产高清高潮精品美女| 国产一区二区三区黄视频| 欧美三区在线视频| 欧美另类视频| 欧美日韩在线播放一区| 欧美激情在线播放| 欧美激情一区二区三区四区| 男女激情视频一区| 欧美成人福利视频| 欧美成人国产va精品日本一级| 久久综合九色综合欧美狠狠| 久久久福利视频| 久久久人人人| 麻豆亚洲精品| 欧美1区2区| 欧美啪啪一区| 欧美色图天堂网| 国产精品欧美在线| 国产精品天天摸av网| 国产精品夜夜嗨| 国产一区91精品张津瑜| 国内欧美视频一区二区| 在线成人免费观看| 亚洲国产专区校园欧美| 99re这里只有精品6| 99精品欧美一区二区三区| 亚洲图片欧洲图片日韩av| 亚洲一区二区三区四区在线观看| 午夜国产精品视频| 久久久久久久波多野高潮日日| 亚洲欧洲日产国产网站| 日韩亚洲欧美高清| 亚洲欧美中文字幕| 久久久综合精品| 亚洲国产裸拍裸体视频在线观看乱了中文 | 亚洲在线视频一区| 欧美一区二区网站| 蜜桃精品一区二区三区| 亚洲人成网站精品片在线观看| 亚洲香蕉视频| 久久精品72免费观看| 欧美电影免费观看大全| 国产精品网站在线| 最近中文字幕日韩精品 | 狠狠色2019综合网| 在线观看视频一区| 亚洲小视频在线| 久久久99免费视频| 亚洲黄色免费| 亚洲欧美日本国产专区一区| 久久精品亚洲一区二区| 欧美高清hd18日本| 国产乱码精品1区2区3区| 亚洲国产精品悠悠久久琪琪| 一区二区三区四区五区精品| 久久久青草婷婷精品综合日韩| 亚洲欧洲精品一区二区三区不卡| 亚洲免费一在线| 欧美国产亚洲视频| 韩国av一区二区三区四区| 一本色道久久88综合亚洲精品ⅰ | 亚洲二区在线视频| 亚洲综合色丁香婷婷六月图片| 欧美高清一区二区| 欧美一区二区免费| 国产精品豆花视频| 亚洲精选一区| 欧美成人精品一区二区|