How to create custom trunk in freepbx with custom dial string

Freepbx Custom Trunk Custom dial string

Topic: How to create custom trunk in freepbx with custom dial string

freepbx custom trunk

  Introduction: Freepbx

    FreePBX is a web-based open-source graphical user interface (GUI) that manages Asterisk, a voice over IP and telephony server.
FreePBX is licensed under the GNU General Public License version 3.

  Overview: Freepbx Custom Trunk

    In Freepbx sometimes you may need to configure the Trunks in cli instead of freepbx gui and in Freepbx the outbound route will only list the trunks which are created in GUI - Trunk section.
    To overcome this issue , Freepbx have the option to create custom trunk, where you can define your trunks created in sip_custom.conf.

  Steps to create Custom Trunk

1. Configure your trunks (SIP/IAX/PRI) in there respective XXX_custom.conf
    example: vi /etc/asterisk/sip_custom.conf
2.Create a custom dialplan with proper context and trunk in extensions_custom.conf

vi /etc/asterisk/extensions_custom.conf
exten => _X.,1,Answer()
exten => _X.,2,Dial(SIP/voiptrunk/${EXTEN},,Ttor)
extne => _X.,3,Hangup

 3. Now in Freepbx under Trunks create Custom Trunk  and under custom dial string enter the below format

Dial String = Local/$OUTNUM$@myoutgoing

If you want to define trunk without a dialplan use the below custom dialplan string

Dial String = SIP/$OUTNUM$@
Dial String = IAX2/$OUTNUM$@
Next Post Previous Post
  • gopi baskar
    gopi baskar April 4, 2022 at 11:42 AM

    How to Create Custom Trunk in Freepbx

Add Comment
comment url