search for: stdlog

Displaying 10 results from an estimated 10 matches for "stdlog".

Did you mean: sdlog
2006 Jun 02
1
PHP-AGI help
...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"); // 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($i...
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
2003 Nov 10
3
AGI and PHP
...ons making your scripts 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...
2005 Mar 05
1
SAY DIGITS problem
...flush(true); set_time_limit(10); /* 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; }...
2006 Nov 29
1
AGI PHP Issues (Not new to Asterisk but new to AGI)
...ns.conf. I would be most grateful 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&qu...
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
2019 Jul 23
4
Problems after upgrade Samba 4
...t;bind9 ctdb ldb-tools smbldap-tools ufw glusterfs-common libcephfs1" were suggesteds by apt-get command itself. However, Samba 4 has stopped working as follows: tail -n 50 /var/log/syslog Jul 23 10:19:25 samba4-dc systemd[1]: Starting Samba AD Daemon... Jul 23 10:19:25 samba4-dc liblogging-stdlog: action 'action 14' resumed (module 'builtin:omfwd') [v8.24.0 try http://www.rsyslog.com/e/2359 ] Jul 23 10:19:25 samba4-dc liblogging-stdlog: action 'action 14' resumed (module 'builtin:omfwd') [v8.24.0 try http://www.rsyslog.com/e/2359 ] Jul 23 10:19:25 samba4-dc s...
2006 Nov 30
1
AGI PHP Issues (AGI script runs but phone hangs up too quickly)
...ns.conf. I would be most grateful 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&qu...
2007 Feb 10
3
Dial out from AGI
I'm writing an AGI script and want it to dial a number on a channel connected to the PSTN. It would look something like this (pseudo-code follows): if ($a){ dial("8005551212"); }else{ dial("8665550000"); } The part I can't seem to get right is the "dial" function. I tried to mimic the dial plan like so sub dial($number){ print
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