asterisk

How can I load res_odbc.so

烈酒焚心 提交于 2019-12-08 02:56:26
问题 I want to load res_odbc.so but not have res_odbc.so in /etc/lib/asterisk/modules I understand, I should select res_odbc when install asterisk but can not select it make menuselect [XXX] res_odbc Why I can't select it I installed Asterisk 1.8, CentOS I already installed ODBC. What should I do? Help me please. T_T 回答1: Make sure that you have the related devel packages installed, as well. # yum install unixODBC unixODBC-devel libtool-ltdl libtool-ltdl-devel Once you have done that, be sure to

Asterisk AGI: How to get or set the value of a global variable?

旧时模样 提交于 2019-12-08 02:13:34
问题 I'm using Asterisk 1.8 with PHP for AGI scripting. EDIT: I'm struggling with setting and obtaining the values of global variables from within an AGI PHP script. I can set channel variables but not global variables. Using PHPAGI lib. Tried: Set({$varname}={$value},g) Set({$varname}=\"{$value}\",g) Set(GLOBAL({$varname})={$value}) That does not seem to work at all, when getting the value from within the dial plan, it is empty. Does anyone have a working example of setting and getting global

Websocket connection fails with asterisk 11

吃可爱长大的小学妹 提交于 2019-12-08 01:22:39
问题 I am trying to configure the websocket to work with asterisk 11. But there is some issue. The steps I have followed are: In http.conf enabled the following enabled=yes bindaddr=0.0.0.0 bindport=8088 I have also configured the asterisk with DTLS support. But when I try to connect to the websocket new WebSocket ("ws://mySeverIp:8088/ws"); . It throws an error WebSocket connection failed: Error during WebSocket handshake: Unexpected response code: 400 Anyone please help. Thanks 回答1: Here is a

Asterisk ARI create outbound call

别等时光非礼了梦想. 提交于 2019-12-07 09:53:37
问题 I'm trying to initiate calls using the ARI API, the process I followed was POST /ari/channels to create channel 1 to the local extension POST /ari/bridges to create a bridge POST /ari/bridges/{bridge-id}/addChannel with channel 1 POST /ari/channels to create channel 2 POST /ari/bridges/{bridge-id}/addChannel with channel 2 I have a websocket connection waiting for the correct events (like channel status up) before calling the POSTs. The problem I'm having is this works using internal

How to get all dialer events from Asterisk REST API (ARI)?

隐身守侯 提交于 2019-12-07 09:33:32
问题 I'm making a web application which should be able to monitor calls on my Asterisk server. I can connect to ARI with Javascript WebSocket on URL ws://(host):8088/ari/events?app=dialer and it works. The problem is that I only get events from calls that are made over ARI. Calls made from other clients like Zoiper are not registered. On the other hand, Asterisk has AJAM which uses long polling on http://(host):8088/rawman?action=waitevent and it registers calls from all the clients, (ARI, Zoiper

saving data into custom cdr field

我怕爱的太早我们不能终老 提交于 2019-12-07 08:22:25
问题 I created custom field "rec_name" id table "cdr", database "asteriskcdrdb". In this field I want to store recording name. I know I should do it by adding this line in one of .conf files, but where? exten => s,1,set(CDR(rec_name)=${CALLFILENAME}) I can do it by sql statement, too, but I don't know where is the file that saves details of call into database. 回答1: For mysql you need add into /etc/asterisk/cdr_mysql.conf [aliases] rec_name=rec_name If you HAVE aliases section, just add to it rec

Asterisk AGI - Originate a call using php agi

拈花ヽ惹草 提交于 2019-12-07 05:31:40
问题 Is anybody knows , how we can Originate an external number call using PHP AGI script ? 回答1: You have got two possible options. One is use the "Originate" command. See http://www.voip-info.org/wiki/view/Asterisk+manager+Example:+Originate for an example. The other one, which is what I favor in my solutions, since it does not require AMI, is using spooled call files. See https://wiki.asterisk.org/wiki/display/AST/Asterisk+Call+Files for how to do them. The trick, and I cannot stress it enough,

ODBC connection error:No such command “odbc show” ODBC connection fail in asterisk*CLI

笑着哭i 提交于 2019-12-07 02:42:33
Problems: I am using AsteriskNow which running asterisk 2.0 server in VirtualBox. And i want to connect Asterisk with MySQL databases using ODBC modules. But it fails. When i started with asterisk*CLI> odbc show The command prompt shows that "No such command ODBC SHOW" My Objectives: configure ODBC in asterisk to access MySQL from Asterisk's dialplan directly and dynamically. What i did: I installed my AsteriskNow in VirtualBox. The version of asterisk is 2.0, the CentOS version 5.8 final. I firstly installed related Linux RPMs by yum -y install unixODBC-devel yum -y install libdbi-dbd-mysql

AMI Asterisk Manager Interface Originate Action

有些话、适合烂在心里 提交于 2019-12-06 19:33:30
I am currently constructing a C#.NET wrapper for the Asterisk Interface Manager. I can do simple things like transfers and hangups. I am now in the process of building conference calling. I can set up an n-user conference, but I have to do so in terms of "Action: redirect" on existing active channels. What I'd like to do is route as now non-existent calls (i.e. there is no channel in "core show channels") to my context/extension that puts people in conference rooms. But I cannot get "Action: originate" to work for anything. What does originate take a channel as an argument when there is not

Open source easy-to-customize call center solution?

不问归期 提交于 2019-12-06 16:26:04
问题 Note: A have asked this question at the Superuser community first, but since it involves a lot of software-building-related topics I decided to move it here. I need to provide a simple call-center solution to a small local business. They have a local 6-digit land line number. They accept calls locally, i.e. nobody calls them from another cities. The problem is that they started to lose customers, because with a certain amount of calls every day it has become impossible to reach the local