search for: my_agi

Displaying 9 results from an estimated 9 matches for "my_agi".

Did you mean: amyagi
2007 Aug 13
1
Can't HANGUP call or channel on 1.4.9
I've isolated this problem the furthest that I can, and I'm now convinced this is a bug in asterisk. I have a context in extensions.conf like so: [my_context] exten => _X.,1,AGI(my_agi|${EXTEN}|${CHANNEL}) exten => _X.,2,GOTO(my_other_context|${EXTEN}|1) exten => h,1,DeadAGI(my_agi_cleanup) For the purposes of this scenario, my_agi simply will try to HANGUP the channel to avoid the call going to priority 2 and instead go to my_agi_cleanup. Try as I might, I cannot hang u...
2006 Jun 02
1
PHP-AGI help
...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"); // toggle debugging output (more verbose) $debug = false; // Do function definitions before we start the main loop function read() { global $in, $debug, $stdlog; $input = str_replace("\n", "", fgets($in, 4096)); if ($debug) fputs($stdlog...
2003 Nov 10
3
AGI and PHP
...pts more portable and you don't have to fidget with the php.ini file. besides, fopen() does not pose any inconvenience for use with * agi, so use it. $stdin = fopen('php://stdin', 'r'); $stdout = fopen('php://stdout', 'w'); $stdlog = fopen('my_agi.log', 'w'); 6. * always sends a bunch of info each time agi is called as follows: agi_request: test.php agi_channel: Zap/1-1 agi_language: en agi_type: Zap agi_callerid: agi_dnid: agi_context: default agi_extension: 1000 agi_priority: 1...
2005 Oct 12
3
AGI and set_callerid for number and name
Hi, I've been trying to use the set_callerid function in the AGI. It sets the CallerIDname properly but I can't figure out how to set the CallerIDnumber. Is it at at possible ? Cheers. SL
2005 Mar 27
6
pass caller ID to another application or machine.
I would like to have asterisk pass along the caller ID phone number to a database server on a my local network (the same network that the * server resides on ) so that our customer service app. can pull up customer data automatially. Asterisk passes along caller ID to the phones fine, can someone tell me how to make it pass this info to my database server? Any suggestions would be greatly
2005 Mar 05
1
SAY DIGITS problem
...); /* Standard Input file descriptor */ $stdin = fopen('php://stdin', 'r'); /* Standard Output file descriptor */ $stdout = fopen('php://stdout', 'w'); /* Standard Log output */ $stdlog = fopen('/var/log/asterisk/my_agi.log', 'w'); while(!feof($stdin)) { $data = fgets($stdin); fputs($stdlog, $data); if ($data == "" || $data == "\n") { break; } } sleep(1); fputs($s...
2005 Aug 04
1
Callback question
Hi, I'm interested in a callback feature where I can dial my Asterisk, then hangup and Asterisk will call me back and I can then place phone calls or whatever I want to do. And also, if I've got voicemail I want Asterisk to call me back as well. Are there any scripts for this available? Any help would be apreciated! Best regards, Christian
2006 Nov 29
1
AGI PHP Issues (Not new to Asterisk but new to AGI)
...if someone could show me the way. Thanks in advance: Chris Asterisk ver: 1.2.10 PHP: #!/usr/local/php/bin/php -q <?php $stdin = fopen('php://stdin', 'r'); $stdout = fopen('php://stdout', 'w'); $stdlog = fopen('/var/log/asterisk/my_agi.log', 'w'); while (!feof($stdin)) { $temp = fgets($stdin); $temp = str_replace("\n","",$temp); $s = explode(":",$temp); $agivar[$s[0]] = trim($s[1]); if (($temp == "") || ($temp == "\n")) { break; } } fputs...
2006 Nov 30
1
AGI PHP Issues (AGI script runs but phone hangs up too quickly)
...if someone could show me the way. Thanks in advance: Chris Asterisk ver: 1.2.10 PHP: #!/usr/local/php/bin/php -q <?php $stdin = fopen('php://stdin', 'r'); $stdout = fopen('php://stdout', 'w'); $stdlog = fopen('/var/log/asterisk/my_agi.log', 'w'); while (!feof($stdin)) { $temp = fgets($stdin); $temp = str_replace("\n","",$temp); $s = explode(":",$temp); $agivar[$s[0]] = trim($s[1]); if (($temp == "") || ($temp == "\n")) { break; } } fputs...