AGI Maximum execution time exceeded in PHP

Discussion in 'General' started by Augustino, Sep 3, 2009.

  1. Augustino

    Joined:
    Aug 5, 2009
    Messages:
    9
    Likes Received:
    0
    extensions_custom.conf

    [testcontest]
    exten => 300,1,AGI(/var/www/html/agiscript.php, ${variable})
    exten => 300,1,Hangup

    Tested many examples, including the of web site of AGI PHP

    But always say

    #!/usr/bin/php -q
    Fatal Error> Maximum execution time of 90 seconds exceeded in /var/lib/asterisk/agi-bin/phpagi-2.14/phpagi.php on line 186

    I verified the path to PHP the which is /usr/bin/php

    Why is Maximum execution time exceeded ?
     
  2. rafael

    Joined:
    May 14, 2007
    Messages:
    1,454
    Likes Received:
    1
    Maybe the script takes too long. You may want to increase the execution time in /etc/php.d/elastix.ini

    Something like:

    max_execution_time = 120

    Regards,

    Rafael
     
  3. haamed

    Joined:
    Jul 23, 2007
    Messages:
    251
    Likes Received:
    0
    this maximum execution time is a limit in PHP, any script running longer then 90 secs will be stopped.
    you will need to edit the max_execution_time variable in php.ini and increase this to 120. If you are running Apache, you should restart it after making this change.

    Good luck B)
     
  4. amal23

    Joined:
    May 24, 2011
    Messages:
    3
    Likes Received:
    0

Share This Page