Sangoma phpagmi

Hello, I want to use this fork of phpagi:


Examples are much older and they link to a file phpagi-asmanager.php which is not there.

If I try this code:
require_once('../manager.php');
$astman = new AGI_AsteriskManager();

then I get:
Class 'AGI_AsteriskManager' not found error

You can’t use the examples unfortunately and it’s not documented how to use that.

Thank you for explaining this. Can you tell me how Sangoma phpagi is related to this: https://git.freepbx.org/projects/FREEPBX/repos/framework/browse/amp_conf/htdocs/admin/libraries/php-asmanager.php ?
And what part of this code could be removed in this file when I want to use it also in a pure Asterisk system?

Use what you’ve already posted https://github.com/sangoma/phpagi

You can’t use php-asmanager.php directly.

But I don’t know how to link this library into my project…

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