The user is actually an extension in FreePBX that Jigasi will register to.
- FreePBX - Creating the extension
- FreePBX > Applications > Extensions
- +Add Extension
- Add new CHAN_SIP Extension
- User Extension: Pick an unused number (I’m using 888)
- Display Name: Call it whatever you want (I’m using Jitsi)
- Secret: Copy this, you’ll need it for Jigasi later
If you haven’t installed jigasi, you simply need to run the installer and enter your newly created extension and password (secret) when prompted. If you already installed Jigasi, you’d need to manually edit sip-communicator. Details on that below.
- On your Jitsi system , edit sip-communicator
sudo nano /etc/jitsi/jigasi/sip-communicator.properties
- Mirror the below config.
- replace 888 with your freepbx extension
- replace my.voip.domain with the domain or IP being used for your FreePBX system
- replace 5160 with the SIP port being used on the FreePBX system
- Password is the tricky part, you need to take the ‘secret’ you copied from FreePBX and encode it as Base64, then paste it in the password line. If you waited to install Jigasi, this will be done for you.
ACCOUNT_UID=SIP\:firstname.lastname@example.org PASSWORD=PUT-your-BASE64-encoded-password-here PROTOCOL_NAME=SIP SERVER_ADDRESS=my.voip.domain SERVER_PORT=5160 PROXY_ADDRESS=my.voip.domain PROXY_PORT=5160 PROXY_ADDRESS_VALIDATED=true PROXY_AUTO_CONFIG=false PREFERRED_TRANSPORT=udp USER_IDemail@example.com KEEP_ALIVE_INTERVAL=25 KEEP_ALIVE_METHOD=OPTIONS
- Restart Jigasi
sudo systemctl restart jigasi
- FreePBX - check and make sure the extension is registering
- FreePBX > Admin > Asterisk CLI
- Run CLI command: SIP show Peers
- The extension should show “OK” if registered properly
If all that went well , you should be able to dial the extention from another SIP phone and enter the default Jitsi Room , which on mine is called “siptest”. Make sure you have the siptest room opened in your web browser before attempting to call it.