similar to: Accessing PARKEDAT variable in AGI

Displaying 20 results from an estimated 10000 matches similar to: "Accessing PARKEDAT variable in AGI"

2009 May 27
1
PHP AGI Problems
(Accidentally posted this to asterisk-dev, should be here) fgets is only returning one character... either when run as an AGI or run as a test on PHP on CLI... Example, enter 3333, then fgets returns '3'. Also, GET DATA seems to be returning early and the loop keeps prompting 'invalid'... Any suggestions on how to improve my AGI class so it actually works? Thanks. [code]
2003 Nov 10
3
AGI and PHP
i've just spent the pass 2 days trying to get AGI to work with PHP; i made a lot of silly mistakes along the way which could have been avoided if only there were some kinda howto or samples. at the risk of looking stupid, i decided to shared my experience in hopes that it might help some newbie get going with PHP. 1. first order of business is to be aware of your php environment; i m NOT
2006 Nov 29
1
AGI PHP Issues (Not new to Asterisk but new to AGI)
Sorry to bother you all with what is probably a simple question. I am attempting my first go at a simple AGI application using PHP (Getting Asterisk to SAY PHONETIC ABC). I have dabbled with PHP but I am by no means a professional standard developer. My script seems to execute ok, and I can see asterisk playing the sounds but my phone goes from ringing to busy, and I don't hear the
2006 Nov 30
1
AGI PHP Issues (AGI script runs but phone hangs up too quickly)
Sorry to re-post this but I'm sure it's something simple that someone has found before. To summarise: Dial plan answers the phone AGI script executes AGI debug in console show phonetics ABC - However no audio at all on the phone and this step is less than 1 second. Dial plan Busy Phone hangs up. Total time less than a second. This is such a simple AGI script do I need
2006 Apr 26
1
getting asterisk to reliably answer a voip line
I have a sipphone.com account, with asterisk set to answer incoming calls, using the following settings (phone number and password omitted) in the Peer Details for the SIP Trunk: allow=ulaw context=from-pstn dtmfmode=rfc2833 fromdomain=proxy01.sipphone.com fromuser=1747xxxxxxx host=proxy01.sipphone.com insecure=very secret=xxxxx type=peer username=1747xxxxxxx The Asterisk machine is
2006 May 22
1
Script AGI on C
Hi Folks: I used that one example for AGI script on C web, only to fill the working with the Asterisk. I compiled and it worked great. I executed accidentally the ls -l command in directory where was the source and executable, I noted and was surprised that because the executable size was to further 20 times more than source. I executed the gcc -Os source.c -o executable.agi command several
2009 May 04
3
AGI PHP
I'm just trying to make a real simple Survey via php. Just want it to play the Question Files, wait for a response, save the response into the correct variable and then email it all. I have no issue playing the audio or emailing. But I can't get it to wait for digits or to properly capture those digits into the variables. I know the code is technically right since the emails have this
2006 Dec 18
2
AGI Help Please
List, I finally decided to break down & start playing with AGI scripts, but for the life of me, I can't figure out what I am doing wrong. Below is a super simple script to run a query in mysql to see how many call records there are for the extension calling in, then print the total in the CLI. This is all I get on the CLI: -- Executing AGI("SIP/216-0baa",
2004 May 20
2
AGI/php script not working
Dear all I am just getting started with AGI so I wrote the following script as a simple test but all that happens is silence before it times out and hangs up can someone help to get me started? yet if i use the agi-test.agi script everything works I don't see the difference Thanks php -q <?php fputs(STDOUT 'SAY NUMBER 123 "#*"\n'); $lin =
2006 Mar 29
1
Oneway Audio
Hi all, I did not get this error in Asterisk 1.2.5 release. I am testing on Asterisk SVN-trunk-r15187 to avail the PARKEDAT variable. - I park the call using ParkAndAnnounce - plays moh. - accept the call using ParkedCall The following errors are coming on the console and there is oneway audio - no audio after Music-On-Hold at caller's side. Please advice. I am testing using cisco 7902
2006 Jun 02
1
PHP-AGI help
Can someone help me with this AGI script to send an email. It just isn't working. The file is being called in the dialplan and is saved as em.agi but it isn't sending the email. #!/usr/bin/php4 -q <?php ob_implicit_flush(true); set_time_limit(6); $in = fopen("php://stdin","r"); $stdlog = fopen("/var/log/asterisk/my_agi.log", "w"); //
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
2005 Mar 24
0
AGI commands STDOUT problem
i have a problem with AGI in Asterisk 1.0.5, the problem occurs either with PHP or C AGI scripts/programs. Well, its simple, either asterisk is not sending correctly the command responses to the standard output, or for some unknown reason to me the scripts/programs are not able to read it from standard input. I have the next C test program for AGI: #include <stdio.h> main() { char
2009 Apr 23
3
AGI PHP script
I have the below script that doesn't seem to be working. I don't know if I have something in the script wrong that I am just missing. Or if I don't have the php.ini set correctly for emailing This is the CLI output -- Executing [4099XXXXXX at port3_real:1] Goto("DAHDI/50-1", "newhire,s,1") in new stack -- Goto (newhire,s,1) -- Executing [s at
2008 Feb 06
0
Problem forwarding a call with an AGI script
Hi, I'm trying to achieve the following: Incoming call for user A (97), user A make a blind transfer to user B's phone (96). User B's phone rings and since there is no one to take the call, it returns the call to User A with an AGI script. The dialplan looks like this: [local] .... exten => 96,1,Dial(SIP/user4,10,tr) exten => 96,2,AGI(transfer.php) exten =>
2010 Jan 11
0
PHP-Script (AGI) doesn't finish after upgrading to 1.6.0.15
Hi, I recently upgraded our asterisk server from some 1.4 version to version 1.6.0.15. From this point on my AGI scripts aren't working anymore, here is a simple example: [isdin] exten => 83086921,1,AGI(test.php) exten => 83086921,2,NOOP("MARKE1") exten => 83086921,3,WAIT(2) exten => 83086921,4,Hangup() /var/lib/asterisk/agi-bin/test.php
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
2009 May 29
1
how to detect dtmf in meetme
hello i want to kick participant in a meeting by pressing the digit on sip phone.when i entry the meeting ,no matter how i press the button,the dtmf does not work. here is my dialplan and my agi script,and sip.conf [from-internal] exten =>121,1,MeetMeCount(900,CONFCOUNT) exten =>121,2,GotoIF($[${CONFCOUNT}<10]?3:100) exten =>121,3,Authenticate(123456) exten
2006 Feb 24
2
ParkAndAnnounce2 Feature Request
We've had a regular Park function in the past but recently I found the ParkAndAnnounce() application and I love the idea behind it. Here's a snip from the wiki (http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+ParkAndAnnounce) so that we're all talking the same language: || ParkAndAnnounce(announce:template|timeout|dial|return_context) || || Park a call into the
2014 Jan 30
1
Parking in Asterisk 12.0.0
Hi I'm trying to get the rebuilt parking functionality to work in Asterisk 12.0.0. In Asterisk 11.6.0 I managed to get a call to get parked by adding a dynamic feature in features.conf for the DMTF sequence *# which called a macro in extensions.conf, which then runned the ParkAndAnnounce application, and the call got parked. The syntax for ParkAndAnnounce I used was this (I don't