Phpagi with php version 8


I’m using asterisk 18 with php8.1

But I can’t use phpagi, one of the errors it presents for example:

PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /etc/asterisk/scripts/phpagi-2.20/phpagi.php on line 921

Today it is possible to use php8 with phpagi.php, is there any place where we can download the updated phpagi, that we can work with php version 8?

It’s a long time that it was announced and marked deprecated

Just replace {} witth []

From what I’m seeing it will be necessary to adjust the phpagi.php to work in the php8.1 version.

Just so you’re not caught by surprise @tootai I edited your post and put your last sentence as pre-formatted text to make it clearer.

1 Like

Just replace {} witth

already adjusted and working

I had a look to see where the project comes from, and found two separate ones, on SourceForge and GitHub. The former doesn’t seem to have been updated in a long time, while the latter has been updated, but not that recently.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.