Displaying 20 results from an estimated 100000 matches similar to: "Monitor in AGI"
2011 Feb 01
1
How to use Monitor() in Python AGI
How can I use the application Monitor() in the Python AGI skripts?
Thanks a lot.
best regards,
Feilx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110201/c1256374/attachment.htm>
2004 Sep 12
1
Monitor and AGI - doesn't record much!
I have setup as per the monitor example configuration on the wiki site and
all works well for an extension dialing 8 then the number. However, if I
dial from an AGI script the recording stops after a few seconds. I see an
extra answer in the console and suspect that is the reason. Could any kind
soul help me to get around this?
Extensions.conf..
exten =>
2007 Aug 29
1
Monitor System using AGI Scripts
Hello All,
Anyone using AGI scripts to monitor their systems?
Something like if the system goes down, AGI script will be triggered and
system admin will be notified saying "System XYZ has gone down"...
Any suggestions...
Cheers,
Nitesh
2005 Oct 12
2
Monitor DTMF problems
Hello
We have discovered a problem with DTMF on Asterisk.
We have a setup with a T1 from PSTN going into an Asterisk box, and
then out again on T1 and into a normal PBX (EADS)
We use it to record all calls going to/from the PBX.
The problem is that when we record the calls (with MONITOR command),
DTMF tones gets obscured, and is not understood in the other end, if
we dont Monitor, there are no
2016 Oct 10
2
AGI: How to break out of AGI when stream_file escape_digits are detected in middle of long sequence of files?
For reasons best known to myself, I call a python agi (PYST2 - love
it!) which streams a series of very short files in quick succession.
Like this:
escape_digits = str("0")
agi.stream_file(promptFile,escape_digits)
and this is what I see on the AGI debug:
<Local/s at root-00000061;2>AGI Tx >> 200 result=0 endpos=6784
<Local/s at root-00000061;2>AGI Rx <<
2005 Feb 16
2
Monitor does not like variable subsitutions
Hello,
I have been attempting to get the Monitor function to
accept a loal variable substitution in order to use
the same filename later in the same context. Monitor
does not appear to like it, as it attempts to use
wav|filename as the recording type, as opposed to just
wav.
Here is what I get if I just supply a filename
directly (it works fine):
--context-----------------------------
exten
2007 Jun 22
2
STDERR in AGI
Hi all,
I just started programming using AGI and I have a simple question about
STDERR.
If I understood it right, all the messages sent to "STDERR" should be
shown in the Asterisk console, but using the following python code I
just can't see anything.
#!/usr/bin/python
#
# File: /var/lig/asterisk/agi-bin/agi-test.py
#
# Description: An AGI Script
#
import sys
env =
2017 Jun 30
2
Simplest way of executing a non-blocking (async) python AGI script?
OK, I give up and come grovelling, "Fork" was suggested at 18:23, it's
now 22:20 and I have been through 4 different methods, all block with
a 2 second delay before returning to dialplan.
Here are just some of the examples I have tried, as as per the
suggestions, I am closing all possible outputs in the forked process.
https://docs.python.org/3.5/library/multiprocessing.html
2016 Jan 06
2
No joy with my first AGI Python script
It's very simple but it doesn't work. Here's the entire script.
#! /usr/bin/python
import sys
env = {}
def comm(cmd):
sys.stdout.write(cmd.strip() + '\n')
sys.stdout.flush()
return sys.stdin.readline().strip()
while 1:
line = sys.stdin.readline().strip()
if line == '': break
key,data = line.split(':')
if key[:4] == 'agi_':
2006 Jan 25
3
Fast AGI Options. Eeeek!
Some questions regarding calling Fast AGI from the dial plan.
Considering that the server side of the Fast AGI has to be able to a) use threading and b) connect to MySQL, this causes some serious limitations. I'm not a C programmer, so development options are either perl or python.
It appears that the perl DBI isn't thread safe, so that rules out Perl. Python's database interfaces
2006 Mar 03
2
Background() App From AGI
I have the following python AGI script.
I know it's been abstracted, but it's still pretty easy to see what's happening.
self.agi.channelAnswer()
self.agi.wait(1)
self.agi.execCmd("background","enter-conf-call-number","")
self.agi.execCmd("Read","confNum|||","")
confNum =
2017 Jun 30
3
Simplest way of executing a non-blocking (async) python AGI script?
I use a python AGI which pulls some info from a web service, which should
take half a second.
Sometimes, it takes 5-10 seconds which blocks the dialplan execution, but
the dialplan should continue immediately as it's not dependent on the
AGI/web service data.
What's the simplest, easiest quickest least-code way of firing off an AGI
with some variable, and then returning to the dialplan?
2010 May 11
4
AGI and Severe Weather Alerts
All,
I am toying with an idea of using an AGI to be able to 'call'
my phone, or phones, in case of severe weather warnings. I have been
tinkering with a script that reads from weather underground for the
forecast, based off a PHP version of a weather AGI I found on the net.
It seems rather trivial to have the AGI as a script, that does nothing
unless a condition is met, and
2009 Aug 29
2
cannot run agi scripts
Hi,I am new to Asterisk, I installed it add got it working for incoming
calls using a sip provider.
I can for example run the following successfully:
exten => 124,1,Wait(1)
exten => 124,2,Playback(demo-thanks)
exten => 124,3,Hangup
My problem is that I can not run AGI scripts, I tried the default
test-agi.agi and a more simple python based one. I am using the following to
use AGI.
2003 Oct 10
1
Asterisk crash on AGI
Hi
I've just started to play around with AGI scripts and have run into
problems.
When I run Asterisk in console mode everything works just fine. If I run
Asterisk in 'regular' mode (not console) it crashes if I hang up on the
script. I have used Python scripts to test this and also the "agi-test.agi"
script.
(the Asterisk code was compiled from CVS code just a few days
2003 Oct 16
2
AGI problem (crash)
Hi
Every time I hangup on my AGI script Asterisk crashes if it is not running
in console mode.
(happens when using python and perl AGI scripts)
I'm desparatly trying to get my employer to let me use Asterisk. So I must
get this to work.
I've posted about this before, I'm sorry, but I'm desperate.
I'm running RedHat 9.0 (kernel 2.4.20-8 everything else updated)
I'm
2006 Apr 25
3
Background asynchronous AGI
I have been writing a lot of AGI programs in C with good success.
I would like somehow to have an AGI program continue in the background
while the pbx execution returns to the dialplan and continues. Is this
possible? I was thinking that perhaps I could fork or create another
thread within the AGI prog.
The reason I want to do so is in order to monitor external information
(e.g. credit limit and
2018 Jan 18
2
Handling a long-running agi on hangup-handler?
I know that hangup handlers (
https://wiki.asterisk.org/wiki/display/AST/Hangup+Handlers) have to finish
quickly.
So it's no surprise that my speech to text agi which takes 8 seconds gets
killed.
However, can anyone think of a way round this? So, once the caller has hung
up, I need to take one of the channel variables, and pass it to a python
agi script which then does speech to text.
2006 Nov 13
1
Can AGI do this?
Please pardon the absolute noob questions. Someone has asked me to
interface with Asterisk and have it dial 4 numbers in succession to have
it track down an on-call person.
My initial reaction was to write an AGI program and return all 4 numbers
and have Asterisk hunt them - can Asterisk do this?
If not, is it possible to write an AGI program that gets all 4 numbers,
then somehow hands them
2005 Mar 16
2
AGI kill
Hello.
When the caller hangup the phone, asterisk kills my AGI python script without
notification.
I caught all signals, but none was trigered.
How can i trap this event to resume some operations.
Sorry for my poor english :)
Thanks.