Jitsi-Meet Jigasi FreePBX Asterisk Integration

I’ve read a lot of topics on this forum as well as some things off of github and I seem to be stuck. I have a working Jitsi-Meet Installation, working FreePBX Installation, I’ve installed Jigasi on the Jitsi-Meet deployment, but I did not use the correct settings.

My Jitsi-Meet deployment is a public deployment so I do not use authentication on it. If anyone can, can someone share a working example of Jigasi’s config file as well as a working Jigasi sip-communicator.properties?

@damencho Any Advice?

I’ve gone through the logs and something isn’t configured properly I know that much and it stems from the fact that Jigasi isn’t able to register with the SIP FreePBX Server so I need help on what a working config looks like so I can edit my configuration files accordingly.

1 Like

Can you upload logs, to see the problem. A working properties file you can find in the source code: https://github.com/jitsi/jigasi/blob/master/jigasi-home/sip-communicator.properties

@damencho I think I figured out what’s wrong and it’s half the FreePBX side and the other half Jitsi-Meet. I wasn’t getting any registrations on chan_sip in FreePBX. I’ve been able to isolate that problem and fix it. Now I need to know how to manually enter the settings properly in Jitsi-Meet Jigasi config and sip-communicator.properties.

I’ve heard that when you type the password into the jigasi automated setup that it encrypts the password, how can I manually encrypt the password to enter it into sip-communicator.properties and config files manually?

Sorry for the Double Post.
@damencho Alright there was a configuration issue with FreePBX. I’m able to get extensions registered, the problem was the freepbx firewall. I needed to whitelist an ip.

I checked the jigasi.log and figured out what I needed to do for the Jitsi-Meet deployment with Jigasi.
Apparently I had to re-encrypt/hash the password via Base64 add that into both jigasi/config and jigasi/sip-communicator.properties.

Which fixed one problem, I had to set authentication to always trusted which i’m only using Let’s Encrypt certificates on Jitsi-Meet deployment and FreePBX deployment.

I've used evilcreamsicle's jitsi_curling.sh
    #!/bin/bash
     
    jit_rm=$(curl --silent https://jitsi-api.jitsi.net/conferenceMapper?id=$1 | cut -d \, -f 3 | cut -d \: -f 2 | cut -d \" -f 2 | cut -d \@ -f 1)
    echo "SET VARIABLE JITSI \"${jit_rm}\" "

And extensions_override_freepbx.conf example modifying with my extension.
    [ext-local]
    exten => 1002,1,Set(__RINGTIMER=${IF($["${DB(AMPUSER/1002/ringtimer)}" > "0"]?${DB(AMPUSER/1002/ringtimer)}:${RINGTIMER_DEFAULT})})
    exten => 1002,2,Read(Pin,"custom/my_system_recording")
    exten => 1002,3,Verbose(result is: ${Pin})
    exten => 1002,4,AGI(jitsi_curling.sh,${Pin})
    exten => 1002,5,Verbose(result is: ${JITSI})
    exten => 1002,6,SIPAddHeader(Jitsi-Conference-Room: ${JITSI})
    exten => 1002,7,Macro(exten-vm,novm,1002,0,0,0)
    exten => 1002,8(dest),Set(__PICKUPMARK=)
    exten => 1002,9,Goto(${IVR_CONTEXT},return,1)
    exten => 1002,hint,SIP/1002&Custom:DND1002,CustomPresence:1002

But the problem is I can only call in to the siptest room the call gets answered by the freepbx server and joins the jitsi-meet siptest room as the city and state of the phone number instead of just listing the phone number.

However I cannot get Jigasi to answer the freepbx call on any other conference room other than siptest.

@damencho What did I forget? Here’s what I’ve got so far.

Jigasi’s jigasi.log (43.3 KB)
Jigasi’s sip-communicator.properties.txt (8.7 KB)
Jigasi’s config.txt (355 Bytes)

You can open the pcap file from jigasi log folder with wireshark and check the incoming sip traffic do you see your custom header Jitsi-Conference-Room?

@damencho I honestly don’t know what i’m looking for i’m looking at the pcap in wireshark and nothing looks out of the ordinary.

I’ve got some misconfiguration but I can’t figure out why it’ll only call into siptest conference room but no other conference room.

I used evilcreamsicle’s confirguations for jitsi_curling.sh and extensions_override_freepbx.conf and I can achieve call in on siptest but no other conference room.

Do you see the Jitsi-Conference-Room header in the incoming sip INVITE?

@damencho, @nightstryke
I got presicely to same place as nightstryke, the examples provided does not realy explain how to set up to Freepbx (Asterisk) IVR.
Nor how to get Jitsi to display the dialin numbers.
In fact if someone would share a ‘Jigasi<->Freepbx setup for dummies’ it would help me a lot…

@janlov You’re not the only one who wants guide as I’ve wrapped my head around this and can’t get it to work properly.

Have you searched the forum? Not once an asterisk examples had been posted. Also explaining about the numbers, it is a simple json file with number that need to be set up in config.js