How do I add custom dialplans to FreePBX?


I’m trying to migrate some asterisk dialplan code into FreePBX and I am not sure how to go about doing it. My initial thought was to add the code to the custom code conf files, but then our code is invisible to FreePBX.

Our code queries a web service, based on the callerID and the dialed extension, where the dialed extension is a wildcard value.

Here is what we have now:

In our sip configuration:,our-app-context

In our custom extension files:


exten => _X.,1,NoOp(“New call- From: ${SIP_HEADER(From)} To: ${EXTEN}@${SIPDOMAIN}”)

Is there a way to manage custom dialplan code like this in FreePBX?