Uploaded image for project: 'FreePBX'
  1. FreePBX
  2. FREEPBX-21587

typo in outboundRouteEmail.php AGI script

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • ToDo:

      Description

      <IAX2/Gradwell_out-2733>AGI Rx << Exception: DateTime::__construct(): Failed to parse time string (@) at position 0 (@): Unexpected character in file /var/lib/asterisk/agi-bin/outboundRouteEmail.php on line 102
      <IAX2/Gradwell_out-2733>AGI Tx >> 510 Invalid or unknown command
      <IAX2/Gradwell_out-2733>AGI Rx << Stack trace:
      <IAX2/Gradwell_out-2733>AGI Tx >> 510 Invalid or unknown command
      <IAX2/Gradwell_out-2733>AGI Rx << 1. Exception->() /var/lib/asterisk/agi-bin/outboundRouteEmail.php:102
      <IAX2/Gradwell_out-2733>AGI Tx >> 510 Invalid or unknown command
      <IAX2/Gradwell_out-2733>AGI Rx << 2. DateTime->__construct() /var/lib/asterisk/agi-bin/outboundRouteEmail.php:102
      <IAX2/Gradwell_out-2733>AGI Tx >> 510 Invalid or unknown command
      <IAX2/Gradwell_out-2733>AGI Rx << 3. parse_email_vars() /var/lib/asterisk/agi-bin/outboundRouteEmail.php:73
      <IAX2/Gradwell_out-2733>AGI Tx >> 510 Invalid or unknown command
      <IAX2/Gradwell_out-2733>AGI Tx >> HANGUP

      $dt = new DateTime("@$nowEpoch");

      change to

      $dt = new DateTime("$nowEpoch");

      and it works.

      Ref: https://git.freepbx.org/projects/FREEPBX/repos/core/browse/agi-bin/outboundRouteEmail.php

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                kgupta Kapil Gupta
                Reporter:
                kgupta Kapil Gupta
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  NextupJiraPlusStatus

                  Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.