Displaying 20 results from an estimated 1000 matches similar to: "Perl AGI"
2009 Mar 02
1
Asterisk Dial plan issue
Hi all,
I'm using asterisk in real time mode...My extensions.conf table contains:
[default]
switch => Realtime/default at extensions
I have added the following to extensions.conf table;
context:micho
exten: _X.
priority: 1
app:Dial
appdata: SIP/00XXXXXX at PSTN GAteway
Asterisk server is connected succeffully to database...As soon as i make a
call i got the following error message:
2010 Jan 11
1
MeetMe Conferencing - Announce your own join/leave to yourself and other conference members
Hi all,
I'm trying to get the MeetMe system to take a caller and announce to them they've joined the conference in addition to the other members of the conference assuming previous members of the conference >= 1.
I can see where the meetme.c app actually processes it using the ast_pthread_create_background(&conf->announcethread, NULL, announce_thread, conf); function. The
2005 Oct 17
1
astcc missing to bill random calls?
Hello list,
I just came into a strange problem wth astcc. the trouble is astcc.agi does
not bill some calls. The calls are logged in the cdr-csv/Master.csv file,
but with a duration of 0, billsec of 0, an empty dstchannel, and with a
lastapp field of "hangup". I suppose that astcc.agi was not able to get the
answeredime variable from the SIP channel...
I have added a few functions to
2011 Mar 05
2
Help Asterisk / API / Perl
Hi
i want use the API on my asterisk 1.6, but i have a small problems :
In extension, i start it :
exten => _X.,3,AGI(My-Script.agi)
The perl agi file are started without problems
but i want get into this script a lot of variable:
Type (SIP or IAX)
src (from cdr)
but that's don't work:
use Asterisk::AGI;
use lib "/var/lib/asterisk/agi-bin";
$AGI = new
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
2005 Oct 07
1
ASTCC -- semantic note of 'callstart' in cdrs?
Looking at the code, it would appear that the 'callstart' column of the cdrs table should really be
called 'callend':
$dialstr = "IAX2/$res->{path}/$phone|30|HL(" . ($maxtime * 60 * 1000) .
":60000:30000)";
$res = $AGI->exec("DIAL $dialstr");
$answeredtime =
2007 Sep 17
1
Problem with asterisk-perl-0.08 and Asterisk >= 1.2.20
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I've been using for a long time asterisk-perl-0.08 for prepaid card
applications, and I've identified a problem with the last releases of
asterisk-1.2, installed with Trixbox.
The command get_variable() raises a signal SIGPIPE when it is called
(whatever the variable to get).
I made tests with Asterisk 1.2.20, 1.2.21 and 1.2.22, and I
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)");
2006 Jan 18
4
Coercing a list to integer?
Dear group,
I am nearly beside myself. After an entire night spent on a niggling little detail, I am no closer to to the truth. I loaded an Excel file in .csv form into R. It apparentely loads as a list, but not the kind of list you can use. Oh no, it converts into a list that cannot be converted into an integer, numeric, or vector, only a matrix, whihc is useless without integers.
2009 May 12
1
enum agi interesting problem
Hi,
I am having a strange problem with enum and AGI.
Here is what happens:
I have in my agi something like that:
foreach my $resolver ("e164.arpa", "e164.info", "e164.org") {
my @enums = get_enums($phone, $resolver);
foreach my $enum (@enums) {
$dialstring = $enum .
2009 Jan 28
1
FAX
Hi all,
When trying to send a FAX I got the following error:
Executing [003228949469 at micho:1] Dial("SIP/028949469-08466918", "SIP/
003228949469 at 80.169.210.181|60") in new stack
[Jan 28 17:19:20] WARNING[10040]: chan_sip.c:3039 sip_call: No audio format
found to offer. Cancelling call to 003228949469
-- Couldn't call 0032234534534 at 1.1.1.1.1
Where I should
2007 Mar 26
1
Asterisk incoming caller id problem
Hi, guys,
For my server, if i use my handphone to call in the PSTN line by TDM400p
card, the server could not receive the caller id correctly. anyone knows the
problem? I am currently using asterisk 1.2.14 with freepbx 2.2.1. The CLI is
as below, "Caller ID name is 'zap1' number is '4521'" , this 4521 is one of
my FXS zap extension created.
dialparties.agi: Starting New
2020 Jan 24
4
Perl AGI: read variable with quotes
Hi Gang
I have stumbled of this problem.
I need the P-Asserted-Identity header in an AGI scrip.
In the Dial-Plan I do:
same => n,Set(PAI=${PJSIP_HEADER(read,P-Asserted-Identity)})
In the AGI I do:
my $pai = $AGI->get_variable(PAI);
This works fine, unless the PAI contains quotes:
P-Asserted-Identity: <sip:1000 at 1.2.3.4:5060;user=phone>
I get "<sip:1000 at
2005 Jan 02
1
Call Queue Question
Hi,
I've been fussing with this for a while now - and cannot seem to get
it to work correctly - or rather as I desire it..
I'm trying to implement a 'find-me' feature in my voicemail.
Basically - pressing 1 at the voicemail puts the caller into a queue.
The members of the queue are my cell phone and my work DID.. I need
the queue to call both numbers at the same time and wait
2003 Aug 13
3
h extension seems to wipe variables?
Hi.
I'm trying to do some custom call logging, and I want to call an AGI
script from a hangup handler to log call durations and things. Although
the script executes, it isn't retrieving variables from the AGI
interface. Looking closer, I realised the variables are actually getting
unset before the h extension is reached.
[foo]
s,1,SetVar,foo=bar
s,2,Play(audio/a-long-prompt)
2011 Dec 23
1
execute command just after Dial()
Hello,
I'm using AGI scripting with asterisk and need to execute certain commands just after Dial(). But once dial command is executed, further commands/instructions are ignored.
$agi->exec("Dial","SIP/100");
$dialstatus = $agi -> get_variable("DIALSTATUS");
if($dialstatus[data]=="ANSWER")
{
do something.......
2010 Jul 27
2
Urgent help = RUBY & AGI
Here's something that should be easy for RUBY pro's.
Here is a script:
1.times do
r = $agi.exec('DIAL',
SIP/voipuser&Zap/32&Zap/33&Zap/34&Zap/35)
r = $agi.get_variable('DIALSTATUS')
# $agi.set_variable(' WHOANSWERED
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 <<
2010 Apr 04
1
[OT] phpagi help
Hi,
I am attempting to connect to the blacklist database using PHPAgi and it always seems to hang. The code snippet I am trying is:
$r = $agi->get_variable("CALLERID(num)");
$cidnum = $r["data"];
if ($cidnum < 1000000000) # No valid callerid.
{
exit(0);
}
$r = $agi->database_get("blacklist", "$cidnum");
if ($r["result"] ==
2007 Aug 28
1
deadagi and billsec or answeredtime
Hello,
I want to create php rate script and I'm using Deadagi. But I allways get
billsec 0 , or nothing. Can you help me to solve this problem...
My extension.conf:
exten => _123,1,DeadAgi(rate.php)
exten => _123,2,hangup
And my simple test php script rate.php
#!/usr/local/bin/php -q
<?php
include_once (dirname(__FILE__)."/phpagi.php");
$AGI = new AGI();