API Module PBXact

Hi, I want to add/edit/remove inbound routes from my own application outside of PBXact and for those routes to also appear in the Inbound Routes module within PBXact.

If I understand correctly I can use the AMI to CRUD routes but this happens at the Asterisk level so PBXact would not be able to show or manage them (I’ve been unable to test & confirm this yet). The wiki says there’s a module that exposes an API for FreePBX itself but I can’t find it in PBXact.

The command fwconsole ma install api mentioned in the wiki https://wiki.freepbx.org/display/FPG/API fails with Unable to install module api: cannot find module

PBX Firmware: 12.7.6-1910-1.sng7
PBX Service Pack: 1.0.0.0

So my question is, how can I programmatically insert inbound routes that can be managed from within PBXact?

API module is only in 15, and PBXact can’t be upgraded to 15 yet. From what I can see, the API has not been extended to routing yet anyway. The only way to do what you want is with PHP bootstrap:
https://wiki.freepbx.org/display/FOP/Bootstrap

1 Like

Forgot all about this, it will give you a start:

2 Likes

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