AGI Maximum execution time exceeded in PHP

Augustino

Joined
Aug 5, 2009
Messages
9
Likes
0
Points
0
#1
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 ?
 

rafael

Joined
May 14, 2007
Messages
1,454
Likes
1
Points
0
#2
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
 

haamed

Joined
Jul 23, 2007
Messages
251
Likes
0
Points
0
#3
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)
 

amal23

Joined
May 24, 2011
Messages
3
Likes
0
Points
0

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,913
Messages
130,917
Members
17,589
Latest member
cristian.saiz
Top