Jitsi Desktop and FreePBX: Can't dial out but can receive calls

Hello!

I am currently setting up a FreePBX installation and used Jitsi for testing the SIP functionality. During this I noticed that I cannot dial out using Jitsi Desktop.

What I tried:

  • I configured a SIP account in Jitsi Desktop. Registering with FreePBX/asterisk works.
  • I called the configured extension. Jitsi Desktop rings.
  • I called back the number I used in the previous step. Jitsi Desktop hangs a minute or a half at “Initiating call” and finally quits with “The remote party has not replied.[…]”.
  • I installed “Telephone” (I’m on macOS) and configured the same SIP account there. Registering with FreePBX/asterisk works.
  • I called the configured extension. Telephone rings.
  • I called back the number I use in the previous step. The number rings.

When looking at the asterisk CLI (asterisk -rvvvvv) asterisk doesn’t even notice my dial out attempt with Jitsi Desktop. So I used tcpdump port 5060 on client and host while dialing out with Jitsi Desktop and Telephone.

Jitsi Desktop (client):

10.2.102.13 > 10.0.20.110 INVITE0<myprivatemobilenumber>@<mypbx>/2.0
10.0.20.110 > 10.2.102.13/2.0 401 Unauthorized
10.2.102.13 > 10.0.20.110 ACK0<myprivatemobilenumber>@<mypbx>/2.0
10.2.102.13 > 10.0.20.110 INVITE0<myprivatemobilenumber>@<mypbx>/2.0
10.2.102.13 > 10.0.20.110 INVITE0<myprivatemobilenumber>@<mypbx>/2.0
10.2.102.13 > 10.0.20.110 INVITE0<myprivatemobilenumber>@<mypbx>/2.0
10.2.102.13 > 10.0.20.110 INVITE0<myprivatemobilenumber>@<mypbx>/2.0
10.2.102.13.60106 > 10.0.20.110
10.2.102.13 > 10.0.20.110 INVITE0<myprivatemobilenumber>@<mypbx>/2.0
10.2.102.13 > 10.0.20.110 INVITE0<myprivatemobilenumber>@<mypbx>/2.0
10.0.20.110 > 10.2.102.13 OPTIONS95@10.2.102.13:5060;registering_acc=<my_pbx>/2.0
10.2.102.13 > 10.0.20.110/2.0 200 OK
10.2.102.13 > 10.0.20.110 REGISTER<mypbx>/2.0
10.0.20.110 > 10.2.102.13/2.0 401 Unauthorized
10.2.102.13 > 10.0.20.110 REGISTER<mypbx>/2.0
10.0.20.110 > 10.2.102.13/2.0 200 OK
10.2.102.13.60106 > 10.0.20.110
10.2.102.13 > 10.0.20.110 INVITE0<myprivatemobilenumber>@<mypbx>/2.0
10.2.102.13.60106 > 10.0.20.110

Jitsi Desktop (host):

10.2.102.13 > 10.0.20.110 INVITE0<myprivatemobilenumber>@<mypbx>/2.0
10.0.20.110 > 10.2.102.13/2.0 401 Unauthorized
10.2.102.13 > 10.0.20.110 ACK<myprivatemobilenumber>@<mypbx>/2.0
10.2.102.13 > 10.0.20.110
217.10.68.150 > 10.0.20.110
10.0.20.110 > 10.2.102.13 OPTIONS95@10.2.102.13:5060;registering_acc=<my_pbx>/2.0
10.2.102.13 > 10.0.20.110/2.0 200 OK
10.2.102.13 > 10.0.20.110 REGISTER<mypbx>/2.0
10.0.20.110 > 10.2.102.13/2.0 401 Unauthorized
10.2.102.13 > 10.0.20.110 REGISTER<mypbx>/2.0
10.0.20.110 > 10.2.102.13/2.0 200 OK
217.10.68.150 > 10.0.20.110
10.2.102.13 > 10.0.20.110
217.10.68.150 > 10.0.20.110
10.2.102.13 > 10.0.20.110
10.0.20.110 > 217.10.68.150 OPTIONS2395563t0connectgate.de/2.0
217.10.68.150 > 10.0.20.110/2.0 200 OK

Telephone (client):

10.2.102.13 > 10.0.20.110 INVITE0<myprivatemobilenumber>@<mypbx>/2.0
10.0.20.110 > 10.2.102.13/2.0 401 Unauthorized
10.2.102.13 > 10.0.20.110 ACK0<myprivatemobilenumber>@<mypbx>/2.0
10.2.102.13 > 10.0.20.110 INVITE0<myprivatemobilenumber>@<mypbx>/2.0
10.0.20.110 > 10.2.102.13/2.0 100 Trying
10.0.20.110 > 10.2.102.13/2.0 183 Session Progress
10.0.20.110 > 10.2.102.13/2.0 183 Session Progress
10.0.20.110 > 10.2.102.13/2.0 183 Session Progress
10.0.20.110 > 10.2.102.13 OPTIONS95@10.2.102.13:5060;registering_acc=<my_pbx>/2.0
10.2.102.13 > 10.0.20.110/2.0 200 OK
10.2.102.13 > 10.0.20.110 REGISTER<mypbx>/2.0
10.0.20.110 > 10.2.102.13/2.0 401 Unauthorized
10.2.102.13 > 10.0.20.110 REGISTER<mypbx>/2.0
10.0.20.110 > 10.2.102.13/2.0 200 OK
10.0.20.110 > 10.2.102.13/2.0 200 OK
10.2.102.13 > 10.0.20.110 ACK10.0.20.110:5060/2.0
10.0.20.110 > 10.2.102.13 INVITE95@10.2.102.13;ob/2.0
10.2.102.13 > 10.0.20.110/2.0 200 OK
10.0.20.110 > 10.2.102.13 ACK95@10.2.102.13;ob/2.0
10.2.102.13 > 10.0.20.110 BYE10.0.20.110:5060/2.0
10.0.20.110 > 10.2.102.13/2.0 200 OK
10.2.102.13 > 10.0.20.110
10.2.102.13 > 10.0.20.110
10.2.102.13 > 10.0.20.110 REGISTER<mypbx>/2.0
10.0.20.110 > 10.2.102.13/2.0 200 OK
10.2.102.13 > 10.0.20.110

Telephone (host):

10.2.102.13 > 10.0.20.110 INVITE<myprivatemobilenumber>@<mypbx>/2.0
10.0.20.110 > 10.2.102.13/2.0 401 Unauthorized
10.2.102.13 > 10.0.20.110 INVITE<myprivatemobilenumber>@<mypbx>/2.0
10.0.20.110 > 10.2.102.13/2.0 100 Trying
10.2.102.13 > 10.0.20.110 ACK<myprivatemobilenumber>@<mypbx>/2.0
10.0.20.110 > 217.10.68.150 INVITE+49<myprivatemobilenumber>connectgate.de/2.0
217.10.68.150 > 10.0.20.110/2.0 407 Proxy Authentication Required
10.0.20.110 > 217.10.68.150 ACK+49<myprivatemobilenumber>connectgate.de/2.0
10.0.20.110 > 217.10.68.150 INVITE+49<myprivatemobilenumber>connectgate.de/2.0
217.10.68.150 > 10.0.20.110/2.0 100 trying -- your call is important to us
217.10.68.150 > 10.0.20.110/2.0 183 Session Progress
10.0.20.110 > 10.2.102.13/2.0 183 Session Progress
10.0.20.110 > 10.2.102.13/2.0 183 Session Progress
217.10.68.150 > 10.0.20.110/2.0 180 Ringing
10.0.20.110 > 10.2.102.13/2.0 183 Session Progress
10.0.20.110 > 10.2.102.13 OPTIONS95@10.2.102.13:5060;registering_acc=<my_pbx>/2.0
10.2.102.13 > 10.0.20.110/2.0 200 OK
10.2.102.13 > 10.0.20.110 REGISTER<mypbx>/2.0
10.0.20.110 > 10.2.102.13/2.0 401 Unauthorized
10.2.102.13 > 10.0.20.110 REGISTER<mypbx>/2.0
10.0.20.110 > 10.2.102.13/2.0 200 OK
217.10.68.150 > 10.0.20.110
217.10.68.150 > 10.0.20.110/2.0 200 OK
10.0.20.110 > 217.10.68.150 ACK220049D078<myprivatemobilenumber>@217.10.67.136:5060/2.0
10.0.20.110 > 10.2.102.13/2.0 200 OK
10.2.102.13 > 10.0.20.110 ACK10.0.20.110:5060/2.0
10.0.20.110 > 10.2.102.13 INVITE95@10.2.102.13;ob/2.0
10.2.102.13 > 10.0.20.110/2.0 200 OK
10.0.20.110 > 10.2.102.13 ACK95@10.2.102.13;ob/2.0
10.2.102.13 > 10.0.20.110 BYE10.0.20.110:5060/2.0
10.0.20.110 > 10.2.102.13/2.0 200 OK
10.0.20.110 > 217.10.68.150 BYE220049D078<myprivatemobilenumber>@217.10.67.136:5060/2.0
217.10.68.150 > 10.0.20.110/2.0 200 OK
10.2.102.13 > 10.0.20.110
217.10.68.150 > 10.0.20.110
10.0.20.110 > 217.10.68.150 OPTIONS2395563t0connectgate.de/2.0
217.10.68.150 > 10.0.20.110/2.0 200 OK

Most noteworthy is that Telephone continues after “401 unauthorized” with another INVITE while Jitsi tries to continue with ACK. If I understand the SIP flow correctly Jitsi should repeat the invite but with credentials this time. I am no SIP expert but I see the error on Jitsi Desktop’s part at the moment.

But maybe I configured something wrong. Any hint appreciated.

Masin Al-Dujaili

In case it’s important: The SIP trunk as well as the extension are configured as pjsip.