HEX
Server: Apache
System: Linux srv13.cpanelhost.cl 3.10.0-962.3.2.lve1.5.38.el7.x86_64 #1 SMP Thu Jun 18 05:28:41 EDT 2020 x86_64
User: cca63905 (4205)
PHP: 7.3.20
Disabled: NONE
Upload Files
File: /home4/cca63905/www/guiaweb/scripts/clicktodial/linphone.sh
#!/bin/bash
#---------------------------------------------------------
# Script to launch LinPhone softphone.
#
# This script can be used to setup a ClickToDial system
# when using LinPhone soft phone with Dolibarr.
#
# More information on https://wiki.dolibarr.org/index.php/Module_ClickToDial_En
#---------------------------------------------------------

# shellcheck disable=2006,2086

# Note: Adding handler into gconf-tools seems to do nothing
# gconftool-2 -t string -s /desktop/gnome/url-handlers/sip/command "linphone-3 -c %s"
# gconftool-2 -s /desktop/gnome/url-handlers/sip/needs_terminal false -t bool
# gconftool-2 -t bool -s /desktop/gnome/url-handlers/sip/enabled true

echo Launch Linphone $1 $2

param=`echo $1 | sed -s 's/^sip:[\/]*//' `

/usr/bin/linphone-3 -c $param &