Chapter 5. Advanced use of SFLPhone KDE Client

Jérémy Quentin

Emmanuel Lepage Vallee

Hooks

An interesting feature of SFLphone is the hook handle. Hooks designate some actions you can choose to trigger on a particular signal, especially when receiving or sending a call. The two useful hooks that are implemented in SFLphone are the URL argument, and the phone number formatting.

URL argument

This feature permits you to grab an URL sent in a particular header of the SIP or IAX message sent by Asterisk server, and execute it with the chosen browser command.

To configure it, go to the Hooks page of the configuration menu. Then check the SIP or/and IAX checkbox, if you want to enable hooks with SIP accounts or/and with IAX accounts. Then type the name of custom header that your Asterisk server inserts into the invite message for the SIP protocol (if you do not know the name of the custom header, ask the one who configured the Asterisk server). For IAX there is a common header for that, so you do not have to configure it. Then type the command of the browser you want to have the URL opened with, or leave x-www-browser for the default browser.

Phone number formattings

This feature permits you to add the chosen prefix at the beginning of the phone number you are calling.