Understanding FreePBX API calls

I am hoping to ask this in a more public setting so that Others who are hoping to work on bugfixes and feature improvements

When chasing down interesting items in the source code, you will often come across calls to FreePBX / other functions that look like this:

how would one go about finding out where the above addMailbox function actually exists?

or in other words, can someone assist with decoding those breadcrumbs?

working on what I believe is a bug in the voicemail creation API, but having trouble chasing down the source.

it looks like this explicitly refers to Voicemail > voicemail.class.php and the addMailbox function therein

1 Like


In your case Module is Voicemail


It pretty much always follows this pattern.
Webroot, admin, modules, the module name, the Modulename.class.php

If you find something that’s just a function without the FreePBX module name stuff in front of it such as

voicemail_dosomething() then it will be in the same folder and likely in functions.inc.php

1 Like

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