-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Core
-
Labels:None
-
ToDo:
<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