Displaying 20 results from an estimated 20000 matches similar to: "Help with calling Perl AGI interface"
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 Feb 06
2
Need help with perl script/agi for ringback
Hi,
I'm trying to write a simple perl script that will run
the following:
Action: Originate
Channel: local/xxx@callback/r/n
Exten: 1234
Context: callback
Priority: 1
Extensions.conf
exten => 500,1,agi,callback.pl
callback perl script:
use Net::Telnet ();
$mgrUSERNAME='fred';
$mgrSECRET='bloggs';
$server_ip='127.0.0.1';
$tn->print("Action:
2004 Dec 28
0
Two problems with the Perl AGI
Hi,
I have a * 1.0.3 running on a Gentoo box and I installed Perl AGi from
http://asterisk.gnuinter.net/files/asterisk-perl-0.08.tar.gz.
When I write this :
>#!/usr/bin/perl
>use Asterisk::AGI;
>my $AGI = new Asterisk::AGI;
>$AGI->exec ('Dial SIP/kphone1|30|tTr');
>my $duration = $AGI->get_variable('ANSWEREDTIME');
>print STDERR "\n duration :
2003 Nov 26
3
AGI - Freakin Lost
Ok,
I have spent that past 4 - 5hrs working (trying to) figure some AGI
syntax out in perl. Maybe I'm Looney / slow or what I don't know, but I
am lost. I need to figure out how to send STDIN into the script. I
understand the concept of it, but lost when it comes down to it. No
matter what I try with standard <stdin> The app completes on me before I
can ever enter in keys. I
2005 Jan 05
1
ASTCC Compiling Problem
I have this error compiling ASTCC:
[root@pbx astcc]# make install
mkdir -p /var/www
mkdir -p /var/www/html/_astcc
mkdir -p /var/www/cgi-bin/astcc-admin
chmod 755 ./astcc.agi
chmod 755 ./astcc-admin.cgi
echo | ./astcc.agi >/dev/null
Can't locate DBI.pm in @INC (@INC contains:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
2004 Jun 28
2
AGI->Exec Problem
Hello,
I am having some trouble with the Asterisk::AGI perl library. It seems
that the AGI->Exec() command is causing me a problem.
Here's the line in my AGI code: $AGI->exec('Record',"$vmfile:wav, 30");
I'm trying to record voicemail to the file name stored in $vmfile with
a silence timeout of 30. However, this is not being parse by AGI or
Asterisk correctly,
2005 Apr 09
3
CallerID name lookup AGI script
Hi all,
My VoIP provider (race.com) doesn't send name info with CallerID, so I wrote
an AGI script that does the following:
1) If it's a toll free number (800|888|877|866), set the CallerID name to
"TollFree Caller"
2) Use curl to look up the number in Google phonebook
3) If a business listing, set the CallerID name to business name, as is.
4) If it's a residential
2003 Nov 04
1
Demo Weather Report AGI v2.0
Some of you may know me as ManxPower from #Asterisk at irc.freenode.,net
I've posted my demp weather report Asterisk AGI script at
http://www.fnords.org/~eric/asterisk/downloads/
I have no affiliation with Cepstral.
Below is the README:
Contact: Eric Wieling <eric@fnords.org>
If you want a demo of this AGI script you may call via IAXtel
1-700-923-3645 extension 2101. Option 23 is
2003 Dec 23
2
Fw: perl database get
i mean AGI->database_get()
----- Original Message -----
From: "Muhammad Nasim" <muhammad@telappliant.com>
To: <asterisk-users@lists.digium.com>
Sent: Tuesday, December 23, 2003 6:41 PM
Subject: Re: [Asterisk-Users] perl database get
> I've used both the syntax you have given and the perl module.
AGI->getvar()
> returns nothing for arguments that work from
2003 Dec 17
2
asterisk phone card application with agi
hey
i want to implement phone card application based on PIN.........
for this i am planning to use the AGI.........
which programming language ( c , python, java .etc) should i use? i mean
which one is effective.
please suggest me.
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
2006 Feb 27
8
AGI Scripts Terminate too Soon
Ok, here's a weird one.
I have an AGI script where one user calls another. The call is answered. Everything is peachy. If the call is terminated by the CALLEE hanging up the call, then Asterisk returns control back to where the Dial() command left off, and I can check the return code of Dial(), ${DIALSTATUS} etc. That's all great.
HOWEVER, if the CALLER hangs up the call, it seems as if
2003 Oct 10
4
Caller Id AGI Script
As you my be aware the X100p cannot collect uk caller id,
now I have a modem and a perl script that creates a
file /etc/asterisk/callerid.txt on each incoming call in the format
number,date,time,name
over writing each time a new call comes in
I can asterisk read this file and populate the callerid for internal phones and
cdr?
I think it can be done with AGI but don't know where to start
2004 Dec 07
1
astcc needs AGI.pm...where is it?
Greetings, I tried to build astcc, but the Makefile is looking for
Asterisk/AGI.pm. Anyone have any idea where this file is supposed to be
and where it comes from? I've dragged in everything I can think of from
cvs, and * is otherwise running fine.
TIA
Bruce Komito
High Sierra Networks, Inc.
www.servers-r-us.com
(775) 236-5815
2009 Feb 18
6
AGI pdf book
Dear Sir,
Can someone help me please to find a free ebook talking about AGI scripting
through asterisk?
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090218/a59fc299/attachment.htm
2006 May 30
1
Asterisk::AGI and DIALEDTIME
Hi List,
In one of my AGIs (using DeadAGI) I grab the answered time using:
my $res = $agi->exec ("DIAL $dialstring");
my $answeredtime = $agi->get_variable ("ANSWEREDTIME");
However this information differs from what's written in the Master.csv
file (which happens to be the correct value!)
Any ideas why?
I'm using asterisk 1.2.7.1 and the
2004 Sep 09
3
Caller-ID name lookup via anywho.com
Hey all,
Did I see something on here about using an AGI script to do reverse
lookups via anywho.com? I have a PRI that only gets caller-id number and
no Alpha.
TIA,
--
Daniel Jimenez <djimenez[at]pobox[dot]com>
2006 Jun 20
1
AGI: Dial and Recording my own CDR
Hi folks --
I have a FastAGI Perl script running, handling calls. It works great.
At one point I have a Dial() command. If the called party hangs up, Dial()
returns 0, and when I call my own recordCdr() function using the channel
variables ANSWEREDTIME, DIALEDTIME and DIALSTATUS, everything is fine.
However, if the called party picks up, and then the dialing party hangs up
Dial() returns -1,
2006 Mar 20
4
simple perl-agi - where's the error?
Hello!
I'm trying to setup a perl-deadagi, but my perl skills lack. can
someone tell me why the following code doesn't work:
#!/usr/bin/perl
use Asterisk::AGI;
$AGI = new Asterisk::AGI;
$dialstring = $AGI->get_variable("DIALSTRING");
$res = $AGI->exec("DIAL $dialstring");
the asterisk output says:
AGI Rx << GET VARIABLE DIALSTRING
AGI Tx >> 200
2009 Feb 19
3
AGI script
Dear All,
I would like to ask please if someone has a AGI script that select a value
from a database and dial this value as a destination number
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090220/e2aa530c/attachment.htm
2008 Jan 12
2
Perl-AGI process
Hi All,
i have created one prepaid PERL AGI script to integrate asterisk users in our current Oracle Billing System. I am using $AGI->exec('Dial', $dialstr); in script after getting the MAX time out for the priticular call.
But when the channels increase on my asterisk more than 50-60 asterisk get crashed and i am suspecting the cause is of AGI Script. because when i check ps on