Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

FreePBX Framework Structure

A good starting place for developers in trying to understand how the internals of FreePBX work is by first understanding that FreePBX was originally called AMP or Asterisk Manager Portal. It was written on PHP 4 with no hind-sight of PHP 5 in mind. Much of it's internal structure is made up of non-OO style programing. This means that many of the functions you will be using in your project are global functions and thus are prefaced with the modules name.

A good example is trying to get route patterns by ID from the core module (Core manages this). As you can guess the function name would probably be something like:

Code Block
 

What does Internal Mean?

Internal means any program that tries to access parts of FreePBX as a module that is found inside the admin/modules folder. 

For now please checkout out development module located at: https://github.com/FreePBX/helloworld

Include Page
FreePBX Big Module Object (BMO)
FreePBX Big Module Object (BMO)

Include Page
FreePBX 13 and Higher
FreePBX 13 and Higher

Include Page
FreePBX 14 and Higher
FreePBX 14 and Higher

Include Page
FreePBX 15 and Higher
FreePBX 15 and Higher