linphone.sh 738 B

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