Displaying 20 results from an estimated 40000 matches similar to: "need examples of asterisk and mysql integration"
2015 Mar 02
6
System() command refuses to execute bash script
Hi all
I got this solved.
Turns out the script WAS executing, but I forgot that apparently you need to
follow "cron rules" in any BASH scripts executed via System() from an
Asterisk dialplan.
E. g. all paths must be fully and absolutely specified, there are no
relative path references available.
So I changed the the file wireless.sh which was:
#!/bin/bash
touch wireless-executed
to
2008 Mar 23
6
Access rights between AGI and Web server?
Hello
I run AGI scripts from extensions.conf to save data into an SQLite
database file, but this file must also be accessible in read-write
mode by PHP scripts served by Lighttpd.
As far as I can tell, Asterisk runs by default as root:wheel. I don't
know if AGI scripts also run as root:wheel.
Lighttpd runs as www:www, and if I create a new SQLite database
through PHP scripts, they're
2010 Jun 30
2
Pbx_lua vs. calling lua thru AGI?
Hello
I'm taking a look at how to write scripts to be called from the
dialplan, and saw pbx_lua mentioned.
I'd like to know more about this feature, such as what the difference
is with just calling the Lua interpreter through AGI (same difference
as between php-cgi and mod_php?), whether it's production-ready, etc.
Thank you for any help.
2010 Mar 30
2
Priority based softhangup
Hi,
Is it possible to softhangup a channel based on priority. I mean I
want to put some calls in higher priority lets say 100. If all
channels are busy and somebody wants to dial an extension with
priority higher than 100. How can softhangup drop a line which has
priority less than 100? I will appreciate your valuable help.
Thanks
Smir
2009 May 22
4
How to stop a background music
Hi Guys,
I would like to know if is there a way to actively stop a Background()
music?
Thanks,
Noel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090522/1e317b99/attachment.htm
2012 Jan 06
1
Why write your dialplan using Lua?
Hello,
Reading through the Wiki:
"Asterisk supports the ability to write dialplan instructions in the Lua
programming language. This method can be used as an alternative to or in
combination with extensions.conf and/or AEL. PBX lua allows users to use
the full power of lua to develop telephony applications using Asterisk"
My question is, what is the benefit of using Lua? I recently
2016 Oct 03
2
Synchronous dialplan execution for feedback while processing speech recognition and voice synth, for example.
I've got an agi that recognises speech (via Google) and another that turns
text into speech (tts) (via Microsoft Translate).
Both are web APIs, both called via seperate python AGIs.
I've googled and I'm probably missing something pretty newbie 101 here, but
is there any way, or fiddle, that I can play some audio to let the caller
know that their weather forecast is being fetched,
2013 Feb 18
3
Dialplan / check / tool
Hi,
I am wondering, if there is any tool available, which performs a check
for suspicious entries in the dialplan. For example a non existing
AGI-Script or a double assigned extension ike that:
[context]
exten => *100*,1,AGI(test_app.pl)
...
exten => 190,1,Answer()
...
exten => *100*,1,AGI(never_reached.pl)
...
A "normal dialplan reload command" would echo no warning or
2013 Mar 14
1
AGI
Hi everybody,
Does any one knows how to place a call from a shell agi? I guess is something like echo Exec Dial(DAHDI/g2/2010,,W). Algo how i get the dnid variable?
Thanks.
2010 Jun 05
5
Controlling calls
Hello folks,
I want to write an AGI script doing this:
1-user call a number.
2-asterisk call the agi script
3-the script dial the peer
4-if the call is answered, let the call up for 1min
5-then the script hangs up the channel.
I tried either in php or in java but no success.
In java i did this:
//////////////
exec("Dial", "IAX2/400");
boolean t=true;
while(t){
2008 Dec 17
2
user entry as variables
I want to take series of user entered (via phone keypad) options/numeric entry
fields and use these with an AGI script. I have looked through voip-info and
I can't find any Asterisk functions specifically for this.
Any guidance please?
Michael
2009 Aug 20
6
Cannot play soundfile, doesnt find it or wrong format? Weird, worked yesterday! :-)
I'm trying to play a wav-file on a channel.
This is what I see in the asterisk debug console
AGI Rx << STREAM FILE "test.wav" "12345"
[Aug 20 16:10:19] WARNING[25219]: file.c:602 ast_openstream_full: File test.wav does not exist in any format
So it doesn't find the file, or it's in a wrong format?
I can listen to it with windows media player... it's a
2010 Sep 10
7
A way to check against a list of numbers?
Does anyone have a suggestion on how to handle this? For example, if I
have a list of numbers that I want to go out a certain sip channel and
another that I want to go out the dahdi device, is there a way to do
this? None of the numbers will fit into a pattern, so just plain
pattern matching won't do.
The most straightforward way would be to just define explicit patterns.
Obviously that
2010 Nov 15
4
Best way to connect to a MySQL Database
Is this command the best way to access a MySQL database -
MYSQL(Connect connid dhhost dbuser dbpass dbname) ?
I thought I heard that using ODBC was a bit more stable.
Anyone have any experience?
Thanks,
Matt
2010 Jun 21
3
[AGI] What scripting language for embedded hardware?
Hello
I'm learning how to work with Asterisk on an embedded system (MMU-less
Blackfin processor, 64MB RAM and 256MB NAND), and was wondering what
people use as scripting language to handle calls through the dialplan
and AGI, considering the hardware limitations?
Ideally, I'd rather use a rich language like PHP or Python, but can
those be fit with even their common modules into such small
2012 Feb 11
1
Asterisk perl AGI confusing variables
Hello all,
I'm struck with a very strange problem today. I've an AGI with some code
subroutine snippet as follows:
sub enable_sbc($) {
my $carrier = shift;
my $tmp = substr($carrier,1);
my $jkh = $tmp;
$server_port = $ast_agi->get_variable("SIPPEER($jkh,port)");
$ser_ip = $ast_agi->get_variable("SIPPEER($tmp,ip)");
2013 Jan 03
3
faxdetect on/off on the fly?
Hello,
We want the ability to choose from an AGI script whether or not to enable
faxdetect for calls over SIP or DAHDI. Is this possible, or can anyone
suggest a workaround?
Thanks for any advice.
--
David Cunningham, Voisonics
http://voisonics.com/
USA: +1 213 221 1092
UK: +44 (0) 20 3298 1642
Australia: +61 (0) 2 8063 9019
-------------- next part --------------
An HTML attachment was
2019 Apr 10
7
Forking AGI or GoSub
I have an AGI that can sometimes take time complete. I don't want the
dialplan to be held up by the agi. Is there any way to call it and have
Asterisk continue with the dialplan?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190410/4c704231/attachment.html>
2017 Dec 26
4
Answered time on channel
Hi,
I have a dial plan where I need to notify an external system when a call
was answered and when the call hung up. In both requests the start time
needs to be the same. My Dialplan looks something like this:
[outbound]
Exten => _X.,1,Dial(SIP/${EXTEN}@1.1.1.1,,U(call-answer-from-carrier))
Exten => h,1,NoOp(ANSWERED_TIME: ${ANSWEREDTIME} >>> DIAL_TIME:
${DIALEDTIME}
2009 Jun 04
3
PHP/AGI/SetVar Issue
Is there a limitation to the number of variables you can set from a PHP agi
script? I have a simple example and I can't get it to let me set more than
1. I am pretty sure I am just missing something, but I've searched all over
an can't find the answer. Here is the extensions.conf part:
exten => _XXXXXXXXXX,1,AGI,diallocal.agi exten =>
_XXXXXXXXXX,n,NoOp(${ISLOCALCONTEXT})