I;m working on extending the graphql API, and I’m hitting a bit of a wall.
the ADDUSER function is missing three things I would want:
(pjsip only) max_contacts
(all). voicemail to email on/off
(all) voicemail to email: delete after sending (on/off)
I want to add these.
it looks like I can likely get max_contacts in there easily enough…
but I can not for the life of me find where Freepbx stores the status of “email attachment” or “Delete voicemail”.
if anyone can point me in that direction, it would be greatly appreciated.
if I can successfully automate those above 3 items, I can get our tier-1 staff completely hands-off for creating new extensions that meet our needs.
They are stored in
i had not thought of that.
thank you for the breadcrumb.
hopefully i can find the API equivalents for calling the update function… very exciting.
While the settings are stored in voicemail.conf, you don’t want to parse it, use the native methods
$FreePBX = FreePBX::Create();
// get vm settings for all extensions
// get vm settings for single extension
[root@freepbx tmp]# php voicemail.php
[vmcontext] => default
[pwd] => 1234
[name] => D80
[options] => Array
[attach] => no
[saycid] => no
[envelope] => no
[delete] => no
This is from this article on the Wiki:
To enable the voicemail service on an extension.
||Specify the extension to enable voicemail.
||Specify the password for the extension.
||Specify a name for voicemail.
||The email address for voicemail.
||Voice mail pager number.
||Whether play caller ID to the caller.
||Whether to play envelope to the caller.
||Whether to attach voicemail from local storage.
||Whether to delete voicemail from local storage.
email: "[email protected]"
"status" : true,
"message": "Voicemail has been created successfully"
and thats why you’re my favorite, thank you @lgaetz
i guess I should likely ask you -
do you see value in extending the AddUser and UpdateUser API calls to include max_contacts and the 4 voicemail settings?
I should be able to do the needful, you’ve just been involved far longer, so Id like to ask
If you need it, someone else does too. I would not discourage anyone from submitting PR’s.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.