====== Using FreePBX with SDF VOIP ======

This tutorial shows how to add your SDF VOIP extension as a trunk in [[https://www.freepbx.org/|FreePBX]].

===== Prerequisites =====

  * A working FreePBX setup
  * Access to the FreePBX admin interface

===== Procedure =====

In the admin interface follow these steps, replacing "$EXTENSION" and "$PASSWORD" with your extension number and password respectively:

  - Go to //Connectivity// » //Trunks//
  - Select //Add Trunk// and choose //Add SIP (chan_sip) trunk//
  - Set //Trunk Name// to "sdf"
  - Set //Outbound Caller ID// to "&lt;$EXTENSION@sip.sdf.org&gt;"
  - Set //CID Options// to //Force Trunk CID//
  - Go to the //sip Settings// tab
  - Set //Trunk Name// to "SDF"
  - Set peer details to:   host=sip.sdf.org
    username=$EXTENSION
    secret=$PASSWORD
    type=friend
    context=from-trunk
    insecure=port,invite
    trustrpid=yes
    sendrpid=yes
    directmedia=no
    qualify=yes
    keepalive=45
    nat=yes
    dtmfmode=rfc2833
    disallow=all
    allow=ulaw
  - Go to the //Incoming// tab
  - Set //Register String// to "$EXTENSION:$PASSWORD@sip.sdf.org"
  - Click //Submit//

You can now define Inbound and Outbound routes using this new trunk. To test inbound calls, you can queue a test call through "maint".

$Id: sdf_voip_freepbx.html,v 1.2 2017/11/07 12:49:54 irl Exp $