bin am verzweifeln - agi skript

Hias-online

Neuer User
Mitglied seit
16 Nov 2005
Beiträge
124
Punkte für Reaktionen
0
Punkte
0
hi,

so ich dreh jetzt durch, bei folgender agi kommt folgendes:

call-in.php
Code:
#!/opt/lampp/bin/php -q
<?php

ob_implicit_flush(true);

 $stdin = fopen('php://stdin', 'r');
 $stdout = fopen('php://stdout', 'w');
 $stdlog = fopen('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;
     }
  }
?>

Agi Debug
Code:
    -- Executing AGI("Zap/2-1", "call-in.php") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/call-in.php
AGI Tx >> agi_request: call-in.php
AGI Tx >> agi_channel: Zap/2-1
AGI Tx >> agi_language: de
AGI Tx >> agi_type: Zap
AGI Tx >> agi_uniqueid: asterisk-2023-1137003318.5
AGI Tx >> agi_callerid: 140094
AGI Tx >> agi_calleridname: unknown
AGI Tx >> agi_callingpres: 0
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: unknown
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: default
AGI Tx >> agi_extension: 140092
AGI Tx >> agi_priority: 1
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode:
AGI Tx >>
AGI Rx << Usage: php [options] [-f] <file> [--] [args...]
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<        php [options] -r <code> [--] [args...]
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<        php [options] [-B <begin_code>] -R <code> [-E <end_code>] [--] [args...]
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<        php [options] [-B <begin_code>] -F <file> [-E <end_code>] [--] [args...]
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<        php [options] -- [args...]
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<   -a               Run interactively
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<   -c <path>|<file> Look for php.ini file in this directory
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<   -n               No php.ini file will be used
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<   -d foo[=bar]     Define INI entry foo with value 'bar'
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<   -e               Generate extended information for debugger/profiler
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<   -f <file>        Parse <file>.
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<   -h               This help
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<   -i               PHP information
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<   -l               Syntax check only (lint)
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<   -m               Show compiled in modules
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<   -r <code>        Run PHP <code> without using script tags <?..?>
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<   -B <begin_code>  Run PHP <begin_code> before processing input lines
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<   -R <code>        Run PHP <code> for every input line
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<   -F <file>        Parse and execute <file> for every input line
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<   -E <end_code>    Run PHP <end_code> after processing all input lines
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<   -H               Hide any passed arguments from external tools.
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<   -s               Display colour syntax highlighted source.
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<   -v               Version number
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<   -w               Display source with stripped comments and whitespace.
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<   -z <file>        Load Zend extension <file>.
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<   args...          Arguments passed to script. Use -- args when first argument
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<                    starts with - or script is read from stdin
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<
AGI Tx >> 510 Invalid or unknown command
 
Hm, tja, falsche Optionen im php. Tip: /opt/lampp/bin/php --help versuchen. Glaube kaum, dass es bei Dir eine Option -q gibt.
 
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.