Skip to main content

Provider Freephoneline (Canada)

Last update 15 December 2013

Click to expand Table of Contents powered by Fongo

  • [], aka: Bud Phone, Kokanee Phone, ZPhone
  • Free phone line for outgoing and incomming in many [cities] across Canada.
  • $50 + HST one time fee to unlock and receive the SIP profile login information.
  • Sending and receiving Fax does work see [details].

SIP Gateway Settings

Create a conf/sip_profiles/ and populate it as below using your SIP login settings:

<gateway name="">
<param name="username" value="<YOUR-USER-NAME"/>
<param name="password" value="<YOUR-PASSWORD-NAME"/>
<!-- which transport to use for register -->
<param name="register-transport" value="udp"/>

Dialplan Setup

For incoming calls from your freephone DID create a conf/dialplan/public/03_inbound_ANY_did.xml dialplan file and populate it as follows.

<extension name="public_did">
Freephone line is missing support for SIP DTMF phone signaling hence we auto detect for this
and activate inband detection as needed; not having this means FS will not detect your keypresses
in your custom IVR, voicemail, etc.
<condition field="${switch_r_sdp}" expression="a=rtpmap:(\d+)\stelephone-event/8000" break="never">
<action application="set" data="rtp_payload_number=$1"/>
<anti-action application="start_dtmf"/>
<anti-action application="log" data="WARNING Incoming DID can not do SIP INFO/RFC2833 DTMF tones."/>
<!-- Replace "expression" with your DID or leave to trigger on 1-xxx-xxx-xxxx or xxx-xxx-xxxx numbers -->
<condition field="destination_number" expression="^(1{0,1}\d{10})$">
<action application="log" data="INFO matched incoming DID destination_number: ${destination_number}"/>
<anti-action application="log" data="WARNING not matched incoming DID destination_number: ${destination_number}"/>
<action application="transfer" data="1000 XML default"/>
If you have an IVR setup replace above line with something like below line:
<action application="transfer" data="IVR_danols XML default"/>

Setup your outgoing dialplan by creating conf/dialplan/default/01_outbound_america_digit_dialing.xml file and populating it as follows; don't forget to change the effective caller id and if you expand on the below pattern matching then update this page:

NOTE: Make sure your conf/dialplan/default/ file is disabled or deleted otherwise it will conflict.

freephoneline suggests following linksys dialing patters:
<extension name="America Calling">
<!-- pattern 1xxxxxxxxxx -->
<condition field="destination_number" expression="^1{0,1}(\d{10})$">
<action application="set" data="effective_caller_id_number=0000000000"/>
<action application="bridge" data="sofia/gateway/$1"/>

Sending and Receiving Faxes

It appears when searching the web that people have had success, and it is possible to send faxes, after trail and error below is what worked for me:

  • IMPORTANT: add '<action application="set" data="t38_passthru=true"/>' to your ougoing plan - without this I was not able to get realiable sending.
  • In your VOIP box switch SIP protocol to UDP
    • If you are having UDP issues but TCP works and you are behind NAT/Firewall try enabling 'Handle VIA rport' and 'Handle VIA received' options in your SIP box (spa3012 VOIP box)
  • Try changing Line 1 > Network Jitter Level: to 'very high' or 'extremely high' (spa3012 VOIP box)
  • Also I was getting better luck sending when I swtiched the 'FAX Passthru Method:' to ReINVITE

Sending long 10+ min graphic intensive faxes worked without a hitch. Directly receiving faxes was not tested as one can simply get another Freephoneline only to receive faxes. This is accomplished by using the fax to email built in service. To setup up login into Freephoneline's admin and in the VM setting setup email forwarding.