Displaying 20 results from an estimated 200 matches similar to: "agi macro problem"
2009 Jul 20
0
No subject
-- SIP/ vaso -e26c answered Zap/14-1
-- Executing DumpChan("SIP/ vaso -e26c", "") in new stack
-- Executing DumpChan("SIP/vaso-e26c", "") in new stack
Dumping Info For Channel: SIP/vaso-e26c:
============================================================================
====
Info:
Name= SIP/vaso-e26c
Type=
2010 Oct 15
3
SIP - no audio behind nat problem
Hello,
We have 2 grandstream GX 2000 phones behind NAT and Asterisk outside this
natted network.
We have the issue with calls to these SIP phones - no audio.
It is probably the problem with port forwarding on router - but I am not
sure how can I forward same sip ports (5004 to 5100) to two phones (nat
addresses?)?
Any help appreciated!
Z. Zivanovic
-------------- next part
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
2010 Feb 11
8
Launch many scripts with reboot
I everyone,
I want to know how can I launch many script with reboot beetween each script
ie : I launch script1 at start up then the system reboot and launch
script2 then ...
Thanks for all your answers
--
Cordialement, / Greetings,
Georghy FUSCO
2010 Jul 26
1
URgent - capturing 'answered'
Hello everyone.
I need a quick help on how to capture who answered the call with agi.
Here is an example:
-- Zap/32-1 is ringing
-- Zap/33-1 is ringing
-- Zap/34-1 is ringing
-- Zap/35-1 is ringing
-- SIP/operator1-e77f answered Zap/23-1
So how can I capture this value and write it to mysql?
I already have this:
2006 Sep 01
2
Mrelation does not exists
Hello!
I''m having the following error:
RuntimeError: ERROR C42P01 Mrelation "subjects_users_id_seq" does not
exist Fnamespace.c L200 RRangeVarGetRelid: SELECT currval
(''subjects_users_id_seq'')
when I try to do:
subject= SubjectsUser.new(params[:subjects_user])
subject.save
The models:
class User < ActiveRecord::Base
has_one :last_entrie
has_one
2006 Jan 16
2
AGI variables
When I read variables in AGI scripts, I see only the follwing 13 variables
agi_request
agi_channel
agi_language
agi_type
agi_uniqueid
agi_callerid
agi_dnid
agi_rdnis
agi_context
agi_extension
agi_priority
agi_enhanced
agi_accountcode
beside these, I found following variables documented on several sites.
agi_calleridname
agi_callingpres
agi_callingani2
agi_callington
agi_callingtns
Where can I
2005 Jun 27
2
Accessing SIP username from AGI script
Hi,
I'm writing an AGI script to manage outgoing calls. We need to
interrogate a database to work out which line a particular user is
allowed to use for outgoing calls. However, I cannot find a way for
my AGI script to access the SIP username. Does anyone know if this is
possible (even if it is just passing a variable from extensions.conf
to the script)?
Thanks in advance,
David
2005 May 25
15
PHP/AGI Problem
Hi
I am currently developing a IVR application using
PHP/AGI. I am using the PHPAGI class at
http://phpagi.sourceforge.net/ to handle the
commuication with my *.
The application basically asks a caller to enter in
some information which is then processed and a answer
is read back out to them. I want the application to
loop back to the beginning after giving the answer so
they can try another
2011 Feb 22
1
[1.4.39.1/AGI] ast_carefulwrite: write() returned error: Broken pipe
Hello
Incoming calls from the FXO trigger an AGI script which simply NOOP
data sent by Asterisk through stdin.
The first two NOOP work fine, but after this, Asterisk isn't happy:
============= extensions.conf
...
[from_fxo]
exten => s,1,Wait(2)
exten => s,n,Set(CID=${CALLERID(num)})
exten => s,n,AGI(/var/tmp/test.lua)
exten => s,n,Wait(5)
exten => s,n,Hangup
=============
2012 Dec 20
7
asterisk 11 and DAHDI/i4
In 1.4.43 I would see things from "core show channels" like
DAHDI/18/xxxxx
for line 18
in Asterisk 11 its
DAHDI/i4/xxxx
How do I get the line number back?
Jerry
2012 Jan 12
1
how to set callerid in php AGI file.
Hi,
I am using phpagi for agi scripting. and want to update callerid number but
didn't get any success. please help me how to update PHPAGI is new for me.
Below is the code which I write.
#!/usr/bin/php -q
<?php
set_time_limit(30);
//require(.phpagi.php.);
include("phpagi.php");
$agi = new AGI();
//answer the call
$agi-> answer();
2005 Sep 28
3
ASTCC - INUSE Flag
I download and installed ASTCC over the weekend and I am having an issue where the INUSE flag will not get set back to 0 if the user drops a call while the balance is being played. All other times it seems to reset the flag correctly.
I have tried both AGI and DeadAGI with the same results.
Those of you using it for a while, how did you get around this?
Just for fun this is all I am doing in
2009 Feb 26
3
Getting SIP field P-Asserted-Identity from EAGI
Hi, using EAGI variables like
agi_request
agi_channel
agi_language
agi_type
agi_uniqueid
agi_callerid
agi_dnid
agi_rdnis
agi_context
agi_extension
agi_priority
agi_enhanced
agi_accountcode
I get a lot of data about a call, but I need to obtain P-Asserted-Identity
value from a SIP call. Are tehe any eagi variable to get that? Or have you
any solution??
Thanks!!!
-------------- next part
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 =
2007 Aug 09
1
generating a GUID
I have a need to have a GUID (for example,
bcd47ccc-d7c9-ddb6-dc11-6746a770d77d [36 characters long including the
"-"]) generated in the dialplan. Is there any asterisk function that
would do this ? I would prefer not to have to shell out every time a
call comes in.
Julian
2009 Jun 04
2
broken pipe in perl agi
Hi gang,
Since I'm getting no joy from device_Status or SIPPEER in
1.4.26-rc1, I thought I would do an AGI to read my hints and check for line
in use that way. The AGI works fine from a prompt, but returns the dreaded
"utils.c:966 ast_carefulwrite: write() returned error: Broken pipe" when I
try to run it from the dialplan. Here is my dialplan snippet;
2006 Dec 12
1
AGI problema
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Verdana">Hi all. I've written a AGI in C language.
2008 Jan 27
1
[AGI 1.4] C sample?
Hello
I'm pretty much a newbie when it comes to C, but I have to use
this language to write a couple of AGI proggies because I need them to
be statically compiled.
Strangely enough, Google didn't return much when looking for the
"Hello, world!" of AGI in C.
The following doesn't work: The file never gets written:
===========
//check_cid.c
#include <stdio.h>
#include
2008 Mar 24
2
Getting Exec Format Error when running AGI call
Dear friends,
I am having problem with running a sample php and I can't figure out why. I
can run the sample.php using CLI but when I run it inside the dialplan it
does not work. Can someone please suggest the config problem that I may
have made?
dommy:/var/lib/asterisk/agi-bin# php sample.php
#!/usr/bin/php5 -q
VERBOSE "Here we go!" 2
VERBOSE "Call from - Calling