linphone.sh 757 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. #---------------------------------------------------------
  3. # Script to launch LinPhone softphone.
  4. #
  5. # This script can be used to setup a ClickToDial system
  6. # when using LinPhone soft phone with Dolibarr.
  7. #
  8. # More information on https://wiki.dolibarr.org/index.php/Module_ClickToDial_En
  9. #---------------------------------------------------------
  10. # Note: Adding handler into gconf-tools seems to do nothing
  11. # gconftool-2 -t string -s /desktop/gnome/url-handlers/sip/command "linphone-3 -c %s"
  12. # gconftool-2 -s /desktop/gnome/url-handlers/sip/needs_terminal false -t bool
  13. # gconftool-2 -t bool -s /desktop/gnome/url-handlers/sip/enabled true
  14. echo Launch Linphone $1 $2
  15. param=`echo $1 | sed -s 's/^sip:[\/]*//' `
  16. /usr/bin/linphone-3 -c $param &