Displaying 20 results from an estimated 20000 matches similar to: "AGI WAIT FOR DIGIT - key press BEFORE command"
2014 Sep 23
2
read digits from the user through php agi script
hi everyone,
actually i want to release an IVR system using PHPAGI API , in this IVR i
want to get value from the user.
I already used get_data defined in phpagi but they are not able to get the
value given by the user and store it in a php variable.
i tested this :
$result = $agi->get_data('beep', 3000, 20);
$keys = $result['result'];
but every time i found in $keys variable
2007 Feb 13
1
AGI "GET DATA" and "WAIT FOR DIGIT" don't work
Hi.
I'm trying to get digits form the user via agi
something like this: this only should print result=asciicode
but none of the functions even wait until timeout ..
they just pass .. (after a nanosecond)
the las print is always timeout.
Any clue ..?
my $callerid = $AGI{'callerid'} ;
if($callerid !~ /[0-9]{7,20}/){
#way numbre one
print "EXEC PLAYBACK
2007 Jan 12
4
FW: Get dialed numbers in AGI
On 1/11/07, Mike D'Ambrogia <miked@jamagination.com> wrote:
>
> Ralph
>
> Kind of new to asterisk, and really new to AGI but it looks like you were
> trying to have the AGI script tell asterisk to read and lay the results into
> my_var and then regain control in the AGI script, is that correct?
>
> If so I don't think that will work since the dialplan
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();
2011 Feb 24
1
missing argument on AGI
Hi All,
I'm using the asterisk 1.4.39.2 with phpagi 2.20 I have setup a dial plan:
[callback-outbound]
exten => _00.,1,Macro(callout|${EXTEN})
[macro-callout]
exten => s,1,AGI(getchannel.php|${ARG1})
exten => s,2,Dial(Local/${OUTBOUND}@from-internal/nj||tr)
exten => s,3,Hangup()
but for some reason i am not receiving the argument:
Executing [s at macro-callout:2]
2007 Jan 15
3
php agi - first phrase truncated, all others fine
I have the following code. When I call the extension, it either ignores the
first "Hello there everyone", or says "hello" and moves on sometime stoping
before it finishes hello. The rest of the text reads fine. Anyone else
have this issue??
Thanks!
require('/var/lib/asterisk/agi-bin/phpagi.php');
$agi = new AGI();
$agi->answer();
2006 Dec 27
1
php agi trixbox help
I have this code which was taken from the phpagi project page along with the
following in extensions_conf and the output from the asterisk CLI. When I
call the 311 extension, I does nothing then hangs up. What am I doing
wrong??
----php code------------
#!/usr/local/bin/php -q
<?php
set_time_limit(30);
require('phpagi.php');
$agi = new AGI();
$agi->answer();
$cid =
2004 Aug 27
1
does agi wait for digit work in a meetme room ?
I'd like to monitor key press in a meetme room.
Is it possible when connecting one side of a local channel
in the meetme room and the other side of the local channel
to an agi with the command "wait for digit" ?
Thanks
Eric
2007 Jun 15
2
combining AGI with dialplans
On 2007-05-15 Tony Mountifield wrote (wrt using AGI scripts to dial out):
> Can't comment on this one, as I never use AGI to dial.
> My AGIs just set the context, extension and priority,
> and exit to the dialplan to do any dialling.
(http://article.gmane.org/gmane.comp.telephony.pbx.asterisk.user/185537)
I would like to do this, but I am having trouble figuring out how. I have
2003 Sep 19
7
AGI problem
Hi.
I have the next configuration... I dial from my analog phone in the
TDM400P to extension 102, and the second agi works about 1 out of 10
times, the other nine it gives me these error on the asterisk console:
-- Starting simple switch on 'Zap/2-1'
-- Executing Macro("Zap/2-1", "receivecall") in new stack
-- Executing AGI("Zap/2-1",
2004 Jul 06
2
AGI - No audio
All,
I am currently working with the AGI interface using PHP, I have it working
to execute commands that do not require prompts to be played, but when I
execute an AGI command to play a prompt or stream a prompt all i get is
silence (although I can see in the log where it says the correct name for
the prompt to be played).
I have looked through the wiki and googled extensively, so if something
2005 Jun 09
1
PHPAGI Swift Escape Digits
I am trying to use swift in PHP/AGI.
function swift($text, $escape_digits='', $frequency=8000, $voice=NULL,
$fnameIn='')
During swift speaking some text I want the caller to be able to press
1, 2 or 3 to do thing 1, thing 2 or thing 3.
How are these digit defines and then caught?
Thanks,
Michael
2014 Nov 18
2
AGI and AMI in PHP -- What's current?
I'm writing some code that needs to access AMI in PHP. (I'll probably be
doing AGI later as well.)
I'm looking at phpagi (2.20), but it hasn't been updated since 2010 and
appears to be a bit behind current Asterisk -- No event handler for event
'fullybooted'.
What PHP framework/library are you using -- and why?
--
Thanks in advance,
2009 Jun 04
3
PHP/AGI/SetVar Issue
Is there a limitation to the number of variables you can set from a PHP agi
script? I have a simple example and I can't get it to let me set more than
1. I am pretty sure I am just missing something, but I've searched all over
an can't find the answer. Here is the extensions.conf part:
exten => _XXXXXXXXXX,1,AGI,diallocal.agi exten =>
_XXXXXXXXXX,n,NoOp(${ISLOCALCONTEXT})
2005 Oct 13
1
AGI Variable problem
Hello all,
I try to use a agi script to get a variable from * und put them into a
script which gives me another variablke and put this in *.
My problem is now it seems the var ID is empty coz i always jump into
the result 0 loop.
The $MSN should be in the SetCIDNum.
#!/usr/bin/php -q
<?php
include("/var/lib/asterisk/agi-bin/phpagi.php");
$agi = new AGI();
$ID =
2008 May 05
2
AGI - Choppy Sound
Hi folks,
I'm experiencing some problems with sound through phpAGI ...
What I'm trying to do is a menu, doing some database lookups and so ...
But sometimes the sound become too choppy ... just sometimes .. like 1 of 5 calls ... but is a big percentage ...
And I have my current menu on the dialplan that I have no problems with it ...
I'm using .gsm for both but different
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
2003 Dec 10
0
Trouble with AGI and SAY DIGITS and WAIT FOR DIGIT using PHP
Hi there,
AGI is partially not working for me with SAY DIGITS, SAY NUMBER, WAIT FOR
DIGITS etc. It appears that result is always one for any function that
looks for user input, regardless of which key was pressed. Playing sound
is only possible using EXEC. This applies to two * servers with RH 7.2
and RH 7.3 and very recent CVS. Any suggestion or tips about where I
goofed?
Thanks, Philipp
2005 May 24
3
PHPAGI problems
Hi
Here is part of my extensions.conf
exten => 8661231234,1,agi,dtmf.php
When I dial this number, this is what I see in my asterisk console:
-- Accepting AUTHENTICATED call from 198.22.67.70:
> requested format = gsm,
> requested prefs = (),
> actual format = gsm,
> host prefs = (gsm|ilbc|speex),
> priority = mine
-- Executing
2006 Sep 14
4
WAIT FOR DIGIT not working
Hello all,
I have been trying to solve this problem for days, with no luck.
When I run an AGI script from my extensions.conf, it seems no matter what I do, the "WAIT FOR DIGIT" command will not work. The system just flies past it without waiting a single millisecond, and of course my script crashes because it doesn't have the input it needs. I have run 3 different versions of