Using FreePBX 17 with chan_sip

The Asterisk has long marked the deprecation of the chan_sip channel driver and Asterisk 21 does not support chan_sip at all. It’s also deprecated for FreePBX.

Nobody should be using chan_sip at this point, there are tools available to convert your chan_sip trunks and extensions to pjsip.

FreePBX 17.0 still has the legacy code to support chan_sip, and the project will take steps going forward to not break anything, but the project is no longer testing and are certainly not writing or accepting new contributions to support chan_sip

Using chan_sip is strongly discouraged.

Steps to enable chan_sip support in FreePBX 17

  1. Start with a new FreePBX 17 install

  2. Post install downgrade asterisk to version 20 or earlier using the asterisk-version-switch script . Allow the downgrade process to complete.

  3. In the FreePBX admin GUI, browse to Settings, Advanced Settings and locate the “SIP Channel Driver” option. In the drop down menu select ‘both’ and submit the change.

  4. Browse to Settings, Asterisk SIP settings and review the pjsip and chan_sip settings. Ensure that bind port settings between the two drivers and transports are correct and, if making changes, ensure there are no port conflicts. Review and update any other SIP config changes at this point as well.

  5. Press the red Apply Config button and wait for it to complete.

  6. Restart Asterisk (or restart the system).

  7. You can confirm that chan_sip has been enabled from the asterisk CLI:

    *CLI> sip show settings Global Settings: ---------------- UDP Bindaddress: 0.0.0.0:5160 TCP SIP Bindaddress: Disabled TLS SIP Bindaddress: Disabled RTP Bindaddress: Disabled * snip *
  8. At this point, you can create/edit chan_sip extensions and trunks as has historically been done in previous versions. Restoring a backup with chan_sip settings should result in those chan_sip extensions and/or trunks.

 

Return to Documentation Home I Return to Sangoma Support