Instructions for connecting FusionPBX with the Home Assistant Voice over IP integration:
- Setup FusionPBX, provision a SIP device, and verify with a test call. The specifics for completing this step are outside of the scope of these instructions.
- Enable Opus module: Advanced menu > Modules option > Codecs header - Set “Opus” to Enabled = True and Start the module.
- Add Opus codec to the list of preferred codecs: Advanced menu > Variables option > Codecs header – Add “OPUS” to the beginning of global_codec_prefs and outbound_codec_prefs. Set media_mix_inbound_outbound_codecs to true.
- Adjust the SIP Profiles: Advanced menu > SIP Profiles option > Settings section > Internal profile – ensure the following settings are set properly.
inbound-late-negotiation=true,true
inbound-codec-negotiation=generous,true
- On your SIP device, add Opus as an active and preferred codec. The process for accomplishing this varies by device and manufacturer. If you are using FusionPBX to provision your SIP device, you may have to adjust the appropriate variables within Advanced menu > Default Settings option > Provision header.
- Add the Outbound Dialplan: Dialplan menu > Outbound Routes option. Create a new dialplan with the following settings.
Gateway = enum
(we will change this in a moment)
DIalplan Expression = ^111$
(replace 111 with the number you wish to use to reach HA)
Enabled = true
Description = Home Assistant
- Edit the dialplan: Dialplan menu > Outbound Routes option > enum.### dialplan.
a. Change the name of the dialplan to something like “Home Assistant.###” (with ### matching the extension number you chose).
b. Configure the following settings. For settings where a > true is at the end, this signifies the Enabled column within the Dialplan.
action > set > hangup_after_bridge=true > true action > set > callee_id_name=Home Assistant > true action > set > callee_id_number=### > true (number of the extension you chose) action > bridge > sofia/internal/sip:<HA IP Address> > true
(insert IP addr of Home Assistant)
- Reboot FusionPBX to ensure everything has taken effect (optional step).
- Attempt to call Home Assistant using the extension number you defined above.