Friends, is it possible to leave it free for the user to create their own extensions? Regards
Of course, give him or her the root password,
In User Management, you can enable admin login for individual users and can set which modules the user has access to when they login.
the REST API is pretty simple, you should Also be able to build a janky-ass angular site with the 6 textbox inputs you need, and have That create extensions.
(I have done this in the past)
Does REST API works?
Seems kinda deprecated to me and outdated for sure.
https://wiki.freepbx.org/display/FPG/REST+API
sorry, not Rest… this is GraphQL (but nobody honestly cares):
HTTP POST to the graphql endpoint (from your API page), with a valid oauth token:
Body:
addExtension(
input: {
extensionId: "1234"
name: "Stephen LastNameHere"
tech: "pjsip"
outboundCid: ""
email: "[email protected]"
umEnable: false
vmPassword: "6245"
vmEnable: true
maxContacts: "4"
}
)
{
status
message
}
reference: Core Module GraphQL APIs - PBX GUI - Documentation
but yeah. get an oauth token from your user/password, and send an HTTP Post to the graphql API endpoint
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.