linphone-desktop icon indicating copy to clipboard operation
linphone-desktop copied to clipboard

tel URIs don't dial or display

Open ari opened this issue 3 years ago • 3 comments

How to reproduce

  1. Click on link like <a href="tel:1234">this</a>
  2. Set it to open in Linphone
  3. Linphone opens, but does not display or dial the number

This was tested with Linphone Desktop 4.3.0-alpha-97-g8aa04c28 - Qt5.15.2 on OSX.

ari avatar Jun 23 '21 07:06 ari

Set the default telephone app in the Facetime preferences on your mac then try again.

ibroom avatar Jul 21 '21 13:07 ibroom

I don't have Facetime configured on my machine at all. But the problem isn't that Linphone doesn't launch. It launches (because the browser has it has the "tel" helper). But Linphone doesn't react and dial or show the number.

ari avatar Jul 23 '21 01:07 ari

I have Facetime with default call app set to Linphone and I can confirm the issue. The app starts, but a number isn't dialed.

missiskisses avatar Aug 02 '21 17:08 missiskisses

Same on Linux (me: Ubuntu 20.04). The Linphone console log shows this when I click a tel: link in the browser (phone number masked out)...

[09:31:26:480][0x2797770][Warning]"This command doesn't exist: `tel`."
[09:31:26:480][0x2797770][Info]"Detecting URI command: `tel:*********`..."
[09:31:26:480][0x2797770][Info]"Execute command:" QHash(("sip-address", "sip:*********"))
[09:33:01:124][0x2797770][Info]"Received command from other application: `show`."
[09:33:01:124][0x2797770][Info]"Detecting cli command: `show`..."
[09:33:01:124][0x2797770][Info]"Execute command:" QHash()

... but nothing happens, no call is placed, nothing happens in the UI at all. If in the background, it doesn't even come to the foreground despite the logging above around "show".

If I manually execute the Linphone AppImage with the parameter "call sip-address=*********" (including quotes) it works as intended, but this isn't achievable with the usual protocol handler registering which passes a tel: link as above.

awnz avatar Sep 27 '22 20:09 awnz

Workaround (based on https://github.com/BelledonneCommunications/linphone-desktop/issues/246#issuecomment-495100602):

#!/bin/sh
#
# Translate the tel: link to a Linphone callto: command
number=`echo "$1" | sed 's/callto:\|tel://'`
exec ~/Applications/Linphone* "call sip-address=$number"

I used this in conjunction with https://github.com/TheAssassin/AppImageLauncher which placed the Linphone AppImage in the ~/Applications folder and manually pointed my Firefox to it by clicking a tel: link and going "Choose other application..." the first time.

awnz avatar Sep 27 '22 23:09 awnz

Hi The things is that passing from URL, it will try to call sip:123 that is not a sip address. So the call is not done. When calling from CLI, it will try to call 123, that can be transform into a sip address. (sip:123@domain) A fix is available on 5.0.

julonexus avatar Oct 17 '22 07:10 julonexus