BelledonneCommunications / linphone-desktop

Linphone is a free VoIP and video softphone based on the SIP protocol. Mirror of git://git.linphone.org/linphone-desktop.git
https://linphone.org/
GNU General Public License v3.0
391 stars 200 forks source link

[Bug]: Cannot get BLF with RLS URI to work with Asterisk 20.6.0 #821

Open ComputerSnail opened 4 months ago

ComputerSnail commented 4 months ago

Context

I have an Asterisk 20.6.0 server that connects to a SIP trunk for PSTN connectivity. In my LAN, I only use SIP (no IAX2 or whatever). The extensions in my Asterisk setup are like 234, 235, ... The URI of my Asterisk server is asterisk.myorg.internal and it listens on port 5061 (TLS). Calls work fine. While presence status / BLF worked out of the box with old Linphone versions from the Debian package repository, it doesn't work anymore with Linphone 5.x. I've understood that this is due to dropping support for SIP SIMPLE presence and instead using an RFC 4662 Resource Lists server. My question is about getting this to work with plain normal stock Asterisk. Asterisk says to support acting as a Resource List server since version 13.0 and I use 20.6.

The PJSIP stack now supports RFC 4662 Resource Lists, allowing Asterisk to act as a Resource List Server. This includes defining lists of presence state, mailbox state, or lists of presence state/mailbox state; managing subscriptions to lists; and batched delivery of NOTIFY requests to subscribers. Source: https://www.asterisk.org/asterisk-news/asterisk-1300-beta2-now-available/

General information

Expected behaviour

In the Linphone settings menu, I enter asterisk.myorg.internal or asterisk.myorg.internal:5061 as my RLS URI. But no status indicators are shown. Moreover, no error message is shown. Expected: After setting my Asterisk server in the RLS URI menu text field, Linphone shows presence status for my extensions. A resource list is defined in the pjsip.conf of Asterisk as per their manual.

To Reproduce

  1. Setup the current LTS version of Asterisk (20.6.0) with transport-tls, PJSIP and a few extensions / endpoints.
  2. Download Linphone-5.2.1.AppImage from linphone.org homepage
  3. Set your Asterisk server FQDN as RLS URI in the Linphone settings.
  4. Add some extension contacts.
  5. No presence status is shown. :(

Additional context

As I couldn't find documentation sections about this RLS URI setting of Linphone, I don't know what to enter in this field to make presence indicators work with Asterisk! :(

SDK logs URL

No response