similar to: PHP-Script (AGI) doesn't finish after upgrading to 1.6.0.15

Displaying 20 results from an estimated 500 matches similar to: "PHP-Script (AGI) doesn't finish after upgrading to 1.6.0.15"

2007 Aug 24
0
MYSQL problem and configuration
Hello,I am new to asterisk but i have vbeen scriptinh PHP SQL and webLanguages for a long time.I can Give you a solution but using php AGI:extensions.con-----> AGI(connect.agi);/var/lib/asterisk/agi-bin/connect.agi :#!/usr/bin/php -q<?phpset_time_limit(0);ob_implicit_flush();error_reporting(0);//Initialisation des entr?e-sortiefunction init() {#create file handles if
2006 Jun 10
1
Voicemail records nonsense, but record() works (??)
Hello, I have setup an Asterisk 1.2.7.1 system, with a working voicemail box: /etc/asterisk/extensions.conf exten => 83086921,1,Answer exten => 83086921,2,Dial(SIP/stefan,5,r) exten => 83086921,3,VoiceMail,u111 exten => 83086921,4,Hangup exten => 83086921,103,VoiceMail,b111 exten => 83086921,104,Hangup /etc/asterisk/voicemail.conf [default] language=de 111 =>
2006 Jun 12
2
Bug in Voicemail ??
Hello, I have setup an Asterisk 1.2.7.1 system, with a working voicemail box: /etc/asterisk/extensions.conf exten => 83086921,1,Answer exten => 83086921,2,Dial(SIP/stefan,5,r) exten => 83086921,3,VoiceMail,u111 exten => 83086921,4,Hangup exten => 83086921,103,VoiceMail,b111 exten => 83086921,104,Hangup /etc/asterisk/voicemail.conf [default] language=de 111 =>
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 =>
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"); //
2003 Nov 05
1
First AGI help..
I am trying to write my first AGI script.. I cant seem to get it to work.. I am trying PHP in preference (I know this is frowned upon) but I can't get it to work with perl either.. I guess I just don't understand it correctly.. All I am trying to do is get the script to make a call using "Dial" so that I can get an idea of how it works.. My experience is really only in PHP
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",
2016 Jan 06
2
No joy with my first AGI Python script
It's very simple but it doesn't work. Here's the entire script. #! /usr/bin/python import sys env = {} def comm(cmd): sys.stdout.write(cmd.strip() + '\n') sys.stdout.flush() return sys.stdin.readline().strip() while 1: line = sys.stdin.readline().strip() if line == '': break key,data = line.split(':') if key[:4] == 'agi_':
2006 Jan 27
1
No IN and OUT on ISDN line at the same time?
Hi, I like to forward an incoming call on an ISDN line to my mobile phone. Since ISDN offers two channels, I thought that this should work, but Asterisk tells me, that there is no channel available. There is no one else using this line, so guess I made a mistake in the configuration or it might not work for another reason. Here's the CLI output , the capi.conf and extensions.conf. 83086921 is
2005 Apr 04
0
io timeout after 180 seconds
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thanks for all the help so far. I am learning a lot from it. I have a script that I will post bellow that when I run it gives me this error. mysql/website_forum/nntp_settings.MYD io timeout after 180 seconds - exiting rsync error: timeout in data send/receive (code 30) at io.c(103) rsync: connection unexpectedly closed (1493583 bytes read so far)
2007 Jun 22
2
STDERR in AGI
Hi all, I just started programming using AGI and I have a simple question about STDERR. If I understood it right, all the messages sent to "STDERR" should be shown in the Asterisk console, but using the following python code I just can't see anything. #!/usr/bin/python # # File: /var/lig/asterisk/agi-bin/agi-test.py # # Description: An AGI Script # import sys env =
2003 Aug 25
2
SetVar on sample.call
Hi all!! Does anyone have a short example or even better - a working AGI script that uses "GET VARIABLE' from a /var/spool/asterisk/outgoing call that uses "SetVar"? Here's what I've tried with no luck so far: sample.call ================= Channel: SIP/1000 MaxRetries: 2 RetryTime: 60 WaitTime: 30 Application: Agi Data: playTasks.agi Callerid: Nightly Processor
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
2004 Dec 13
0
phpconfig - can't locate any of my sections
I downloaded phpconfig and set it up to read my config files, but it never successfully recognizes any of my sections. The regular expression seems to be included in the line: if(preg_match("/^\s*\[([^\]]*)\].*[\r\n]\$/", $line)) and later, the same regex. I'm not sure about the [\r\n] on the end of the line. My copy of "the regex coach" does not let me match a
2017 Feb 20
1
v2.2.28 release candidate released
On 20.02.2017 12:47, Toni Mattila wrote: >> imap: When BINARY FETCH sees invalid content, return NO [PARSE] reply >> instead of [UNKNOWNCTE] (which is now used only for actually unknown >> Content-Transfer-Encoding headers). > > Has this been tested with Roundcube webmail? I know Roundcube has some > workarounds when dovecot now responds with that
2004 Aug 06
0
Ogg response headers
At 06:16 PM 12/4/2003 -0700, you wrote: > > URL ends with ".ogg". If your script ends with ".php" (as it probably >does), >Since i got the mp3 part to work, myabe ill try adding .ogg to be parsed by >php in the >apache config, since it the winamp request ends up hanging. > >thanks for the tips, if and when i get it working ill post the results as
2009 Oct 05
1
Problem sending a DTMF remotely. Please need help!!
Hello, I need to be able to send a DTMF to an existing channel remotely. So I made a php script to do such with the Manager command PlayDTMF. I need it for example to start a transfer. isb177*CLI> features show Builtin Feature Default Current --------------- ------- ------- Pickup *8 *8 Blind Transfer # #8 Attended Transfer
2006 May 31
0
AGI MySql
thanks Billy. I replaced print "STREAM FILE $filename \"\"\n"; with print "EXEC PLAYBACK $filename \n"; and it worked fine. Interestingly when I did print "STREAM FILE beep \"\"\n"; within the script, it worked. If I wasnt a newbie to asterisk I wouldve thought this to be strange. >From: "William Piper"
2009 Oct 02
0
Sending a DTMF remotely with PlayDTMF problem.
Hello, I need to be able to send a DTMF to an existing channel remotely. So I made a php script to do such with the Manager command PlayDTMF. I need it for example to start a transfer. isb177*CLI> features show Builtin Feature Default Current --------------- ------- ------- Pickup *8 *8 Blind Transfer # #8 Attended Transfer
2009 Oct 03
0
Problem sending a DTMF remotely. Please need help...
Hello, I need to be able to send a DTMF to an existing channel remotely. So I made a php script to do such with the Manager command PlayDTMF. I need it for example to start a transfer. isb177*CLI> features show Builtin Feature Default Current --------------- ------- ------- Pickup *8 *8 Blind Transfer # #8 Attended Transfer