Is there a way to create a extension in FreePBX that calls the voice assist?
Yes, this is possible. Go to FreePBX > Connectivity > Trunks > Add Trunk > Add SIP (chan_pjsip) Trunk
to create a new trunk. Under the General
page, you can leave everything as default. Under pjsip Settings
, set Authentication
to None
and Registration
to None
. Set the SIP Server
as your Home Assistant IP and 5060 as the SIP Server Port
. Use a transport that does normal UDP.
Under the Advanced
tab of the pjsip Settings
, set the Qualify Frequency
to 0
which disables the SIP OPTIONS PING functionality (based on my testing, Home Assistant doesn’t respond SIP OPTIONS PING. Under the Codecs
tab ensure that only Opus
is ticked.
Now you just need to create a new Outbound Route pointing to your new trunk and use any Dial Pattern. The first time you call, Home Assistant will prompt you to continue setup in the settings. You can then enable the FreePBX client from there.