#!/bin/sh # # A primitive protocol handler for SIP using Linphone 3.x with Firefox # Linphone 4.x does not need this. # # To activate: # # 0. make this script executable (chmod u+x linphone-protohandler) # 1. in the URL bar go to about:config # 2. set network.protocol-handler.expose.sip to false # 3. set network.protocol-handler.external.sip to true (create it if it's missing) # 4. click on a sip: URL in an HTML document; Firefox should ask you for which external application to use, so point it to this script # # The setting should end up in ~/.mozilla/firefox/*.default/handlers.json /usr/bin/linphone -c "$1"