How Can I Add Custom Asterisk Code to FreePBX

Hi all.

I am wanting to create a special extension not using the FreePBX http interface but rather directly in extensions_custom.conf. I need to create an inbound route from an FXO gateway and then do some fiddling with dtmf tones received from a Siemens PBX. I’m afraid i’m not having much luck. I am confused about under which context i should create this special extension. I am able to create a normal extension under the default and pre-existing from-internal-custom context in extensions_custom.conf and that works, but my inbound route won’t pick up calls from the FXOM gateway. When i create an inbound route from FreePBX it all works. Any help muchly appreciated. The FXO gateway is connected to Asterisk via a Trunk created from FreePBX.

Regards.

Andrew.

Hi all.

Its ok i figured it out for myself - i added the code under the from-pstn-custom context and it works. I am still confused about contexts, this must be a context that already exists in Asterisk. I wonder if there is a list of all the existing contexts …

Andrew.

Hi,
to see the list of all the contexts type
CLI> dialplan show + TAB

IN