1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dolibarr_ynh.git synced 2024-09-03 18:35:53 +02:00
dolibarr_ynh/sources/dolibarr/scripts/clicktodial/linphone.sh

19 lines
738 B
Bash
Raw Normal View History

2015-09-28 22:09:38 +02:00
#!/bin/bash
#---------------------------------------------------------
# Script to launch LinPhone softphone.
# This script can be used to setup a ClickToDial system
# when using LinPhone soft phone.
# More information on http://wiki.dolibarr.org/index.php/Module_ClickToDial_En
#---------------------------------------------------------
# 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 &