Displaying 20 results from an estimated 4000 matches similar to: "Can't Dial using perl."
2007 Jul 23
0
Problem w/ MySQL update from perl AGI script
I've been trying to get a basic 5 question IVR survey working in an AGI script,
and am having trouble with the SQL portion not updating the table. When I take
out all the AGI references, and run just the perl script, the table updates
with no problem(DBname,username,password have been substituted in this example
for the actual values):
#!/usr/bin/perl
#
#
use DBI;
$DATETIME =
2004 Oct 05
5
Asterisk Perl AGI
Hello everybody:
This could be a stupid question, or may be not; I'm not sure 'cause I have not a very wide experience working with Asterisk, actually I just started last week. I need to make an IVR system work and I choose working with AGIs, written in Perl.
The available documentation I've found show it as a very simple proccess, but it doesn't work for me... and I
2003 Nov 27
1
AGI (IF/ELSE)
I need some help with some statements.....
#!/usr/bin/perl
use Asterisk::AGI;
$AGI = new Asterisk::AGI;
my %input = $AGI->ReadParse();
my $callerid = $input{'callerid'};
if ($optemp != 1) {
my $empid = $AGI->get_data('employee',-1,5);
$AGI->stream_file(entered);
$AGI->say_digits($empid);
my $optemp =
2003 Dec 31
1
AGI - IVR - Time Clock
I wanted to post the beginings of my latest IVR Project for an automated
Time Clock software.
The customer has over 300 Field Reps that call in everytime they arrive
on location and whey they leave that location. This is handled by the
receptionist now and she logs in them and out of there Time Clock
Software. Which takes up majority of her day. The customer has
requested a automated way of
2008 Jul 23
3
Trouble Playing message file via Perl AGI
Hi all,
I'm trying to build an IVR using the Perl AGI module at
http://search.cpan.org/~jamesgol/asterisk-perl-0.10/lib/Asterisk/AGI.pm
But, I'm having trouble getting my program to play a message and wait for a
keystroke.
I am able to use this code to play the file, so I know that the $msg variable
points to a valid sound file:
$result = $agi->exec("background $msg");
2004 Apr 18
0
AGI Module
Hey all,
I'm sorry to bother you with something so trivial, but I seem to
be having an issue with the Asterisk::AGI module. I am a relative
newbie with Perl so it could be a stupid syntax mistake that I missed.
It seems when I try to execute either the stream_file or the get_data
subs nothing is actually done. It doesn't seem to stream the files, but
on the console it says it played the
2004 May 07
1
meetme conf-background.agi
Hello there!
Somebody tried the meetme|b which initiates the conf-background AGI.
Actually I want to originate another call from a conference.my AGI
originates the call and connects it to the conference, but the calleeee is
nowhere
My extension
exten => 21,1,meetme(21|pb)
and my AGI
****************************************************************************
#!/usr/bin/perl -w
2008 Feb 04
8
AGI: Not getting answers from get_data in a call-file call
I have the following situation: I drop a call-file into the Asterisk
spool directory and I get called back. That all works.
And I have this script:
#!/usr/bin/perl -w
use Asterisk::AGI;
my $AGI = new Asterisk::AGI;
my %input = $AGI->ReadParse();
$AGI->answer();
my $i;
$i = $AGI->channel_status();
$AGI->say_digits($i);
$i =
2003 Oct 07
0
RE: Asterisk-Users] IVR Questions?
OK, I've got my script all set up and running, but now Asterisk crashes when the digits are entered with the following error:
Ouch ... error while writing audio data: : Broken pipe
I just retrieved and compiled the latest CVS this morning, as well as the latest AGI perl module. Why won't the AGI->get_data() function work correctly?
Joe
Richard Lyman <pchammer@dynx.net>
2005 Jul 19
0
Timing out issue whenusing AGI
I have the below script that works but for one problem. The call
cannot last longer then 4 minutes when the script is utilized.
However, when I configure my extension.conf to not call the script the
call will stay up until I hang-up.
I call the script as follows:
exten => _24XX,1,AGI(internal.agi|${EXTEN})
exten => _24XX,2,hangup
A brief description of the script is that it allows my
2007 Sep 14
2
AGI script fails on IAX channels (from call file).
Hi Guys,
I have already tried this one on the developers list. I have not been
successful getting much back there and I have notified them that I will
post this on the users list instead. Hopefully somebody have tried
something similar and can help out.
I am developing AGI scripts on Asterisk and have run into some very
strange behaviour and I think this is a bug, but I am not completely
sure.
2009 Apr 08
1
Perl AGI
Hi all,
I have the below peace of my AGI script...the problem here is that I cannot
fetch the extension value to inside the script and assign it to another
variable...I highlighted it in red
#!/usr/bin/perl
#use DBD::mysql;
use DBI;
use DBD::mysql;
use Asterisk::AGI;
############################
#To read asterisk variable values.
$AGI = new Asterisk::AGI;
my %input = $AGI->ReadParse();
2005 Aug 17
1
AGI SCRIPTS USING PERL NEED SOME KIND OF COMPILATION TO WORK WITH *
Hi all,
Help needed:
Does AGI SCRIPTS USING PERL NEED's SOME KIND OF COMPILATION TO WORK WITH
*????
This simple script is not working.
What can I do to make this interact with *?????
#!/usr/bin/perl
#
#
use Asterisk::AGI;
$AGI = new Asterisk::AGI;
my %input = $AGI->ReadParse();
my $tests = 0;
my $pass = 0;
my $fail = 0;
#setup callback
2016 Oct 28
2
Encontrar la primera columna no NA
Hola a todos, me ha gustado mucho la solución de Carlos, muy eficiente y
muy ingeniosa al utilizar la funcion col() que o no la conocia o no me
acordaba de ella.
La parte mas "lenta" sigue siendo el apply que en el fondo no es mas que un
ciclo for a traves de las filas, asi que inspirado por el metodo de Carlos
pense que podria ser mas rapido si iteramos a traves de las columnas por lo
2007 Feb 05
4
Having Trouble With Wait Command in Callback Context
I am trying to get called back with a DISA dial tone when I call a trigger
number. I got it to work almost the way I want, this is the callback
context:
[callback]
exten=> 501,1,Congestion()
exten=> 501,2,Hangup()
exten =>h,1,System(cp /etc/asterisk/callback.info
/var/spool/asterisk/outgoing)
exten =>h,2,Hangup()
With the above, the call comes into the trigger number, then the call
2013 Oct 23
2
performance on document.get_data()
I got some performance issue for document.get_data() and
enquire.get_mset(). It costs 35 seconds for matches =
enquire.get_mset(0,200), and 3 seconds for iterating all doc in matches to
get_data. Is't normal? My index contains 30millions documents. I use python
binding to operate xapian. Bellow it's my index structure
# value: 0:date, 1:site
# data: json message which contains: author,
2016 Oct 27
4
Encontrar la primera columna no NA
Por último, utilizando la indexación lineal de matriz que propusó luisfo en su momento:
> t <- Sys.time()
> M=as.matrix(dat)
> index <- which(!is.na(M)) - 1
> meses<-colnames(M)
> M2<- data.table(columna=index %/% nrow(M) +1L, jugador=index %% nrow(M) +1L , valor=M[index+1L])
> setkey(M2,jugador,columna)
>
2010 Jan 07
4
AGI perl script set timeout within script?
Hi All,
I'm running an AGI, calling a perl script the does number lookups to a
remote server. I would like to put a timeout in the script. The
problem I'm running into is if the DNS server is not responding, the
script hangs and waits for 30 seconds before returning to the Asterisk
dialplan. I would like a timeout of 1 second, then return.
Here is my clean script:
2012 Feb 17
2
DatabaseModifiedError on get_data - best practice?
Hi,
I have previously had a problem with getting this error on a get_mset
call, and solved it by subclassing XapianEnquire with a
backoff-and-retry algorithm (as suggested by this list, many thanks!).
However, I now get it intermittently when calling get_data on a
XapianDocument. The same solution doesn't seem to be quite as easy in
this case, because:
1. The document is not instantiated
2002 May 18
0
Importante!
Vuoi Davvero Guadagnare con Internet?
Bene, salva su disco questa pagina per averla a portata di mano
anche se il tuo PC non ? connesso a Internet,
poi
copia quanto segue in Word o in Blocco Note e stampalo,
cos? lo potrai leggere con pi? attenzione.
Questo Sistema ? diverso da tutti gli altri, quindi non essere precipitoso nel valutarlo senza averlo compreso a fondo,
ma ti assicuro che