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]: Linphone native and appimage refuse to work with tel links on linux #790

Closed Haui1112 closed 5 months ago

Haui1112 commented 8 months ago

Context

I use the newest appimage (after using the apt install version) and both dont open tel links. Ubuntu 23.04 asks me what application to use, I select linphone (now the appimage) and nothing happens. I would like the link to just call the person I selected.

The link syntax is tel:12345-45 for example.

General information

Expected behaviour

I would like the app to just start calling when I click the tel: link (and select the correct app for handling the link). Instead, it does nothing.

To Reproduce

  1. Open any html document
  2. Put in an href link "tel:123456"
  3. Click on it
  4. (Optional:) Select linphone as handler for the link
  5. See nothing happen

Additional context

No response

SDK logs URL

https://www.linphone.org:444//tmp/652e4c2e278cf_f140ab8dd3887887ed6a.gz

vKnmnn commented 8 months ago

the syntax is tel://sipnumber_in_e164_format to immediately call a number do this: tel://+1234567?method=call

you can also use sip:// instead of tel://

query the distros defaults with this:

xdg-mime query default tel://
xdg-settings get default-url-scheme-handler tel
xdg-settings get default-url-scheme-handler sip
xdg-mime query default sip://

to set this to linphone per default, do this:

# linphone-desktop must be the application name in the corresponding .desktop-file
xdg-settings set default-url-scheme-handler linphone-desktop
julonexus commented 5 months ago

Thanks for reporting. I think it has been fixed and will be available for 5.2.1. Related to #809

gilgongo commented 4 months ago

I'm running Linphone-5.2.1.AppImage on Ubuntu 23.10 (symlinked to /usr/local/bin/linphone) with the following in /usr/share/applications/linphone.desktop:

[Desktop Entry]
Name=Linphone
Comment=A libre SIP client
Terminal=false
Exec=/usr/local/bin/linphone --iconified %F
Type=Application
Icon=/home/gilgongo/.customicons/linphone.svg
Categories=Network;Telephony;
MimeType=x-scheme-handler/sip-linphone;x-scheme-handler/sip;x-scheme-handler/sips-linphone;x-scheme-handler/sips;x-scheme-handler/tel;x-scheme-handler/callto;
X-KDE-Protocols=tel;callto;
StartupNotify=true

I've run:

xdg-mime default linphone.desktop "x-scheme-handler/tel"

But when I click on a tel: link, the application starts but does not dial.

vKnmnn commented 4 months ago

@gilgongo does your tel: - link have the method parameter attached? See my first comment.

gilgongo commented 4 months ago

does your tel: - link have the method parameter attached? See my first comment.

Not in the HTML - that's just <a href="tel:0345 xxx xxx">Call Now</a> But that's a third party site so not something I can control.

lipunis commented 1 month ago

There is someone here who can help me. Thanks a lot. I've tried everything that's written here. The result is zero. I use Plasma 5.7.11, Kubuntu 24.04 does not work, although on KDE NEON 6.04 it worked immediately as Linphone indicated in the settings. What information do I need to provide to solve the problem?

lipunis commented 1 month ago

/roman@roman-virtual-kubuntu:~$ xdg-mime default gearlever_linphone_c73484.desktop x-scheme-handler/tel roman@roman-virtual-kubuntu:~$ xdg-mime query default tel:// roman@roman-virtual-kubuntu:~$