Custom Module Development - starter module to read and publishing process?

Didn’t read through the entire dialplan, just FYI, Macro() has been deprecated.

1 Like

Thanks for the heads up. I’ll read through Converting Macro to Gosub - FreePBX OpenSource Project - Documentation and redesign referencing other modules.

You can see how allowlist provides hooks for custom dialplan here, which is how all dialplan hooks will look in fbpx 17: Source of Allowlist.class.php - allowlist - FreePBX GIT

uc-68246819*CLI> dialplan show app-allowlist-check
[ Context 'app-allowlist-check' created by 'pbx_config' ]
  's' =>            1. GosubIf($[${DIALPLAN_EXISTS(app-allowlist-check-predial-hook,s,1)}]?app-allowlist-check-predial-hook,s,1()) [extensions_additional.conf:4485]
1 Like

Thanks! Will have a look.

I note there is still a macro here:

https://git.freepbx.org/projects/FPBXCN/repos/allowlist/browse/Allowlist.class.php#306

    $ext->add($id, $c, '', new \ext_macro('user-callerid'));

Yes. That is being worked on. The point was to not develop new things, like this, with functions/apps that are going away.

2 Likes

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