Skip to main content

Dialing tel links with freeswitch

General

Write a handler for tel links in your dialplan.

 <include>
<extension name="handle_tel">
<condition field="destination_number" expression="^tel:(.*)$">
<action application="transfer" data="$1 XML default"/>
</condition>
</extension>
</include>

Firefox

Go to the about:config page and add the following new boolean properties.

network.protocol-handler.external.tel         true
network.protocol-handler.expose.tel false
network.protocol-handler.warn-external.tel false

Open up your favorite text editor and save the following script for your platform.

Windows - with a .bat extension.

c:\progra~1\freeswitch\fs_cli.exe -x "pa call %1"

Linux - executable by your user.

/usr/local/freeswitch/bin/fs_cli -x "pa call $1"

Click on any tel link on any page and Firefox should prompt you to open it up with an application... enter the path to your script, and all should be well with the world.

Thunderbird

Tests

[tel:888*543 FreeSWITCH Conference via ISN]
[tel:18019214488 FreeSWITCH Conference via PSTN]