I’m still kind of an Asterisk/FreePBX noob so I took me a while to figure out how to configure OVH’s SIP trunk for inbound and outbound calls. I chose OVH since they offer a SIP trunk for €1/mo (depending on your country the price may be higher) which includes free landline calling to 40 countries: Argentina, Australia, Austria, Belgium, Brazil, Canada, Chile, China, Colombia, Cyprus, Denmark, France, Germany, Greece, Hong Kong, Hungary, Ireland, Israel, Italy, Kazakhstan, Luxembourg, Malaysia , Mexico, Norway, Netherlands, New Zealand, Panama, Peru, Poland, Portugal, Russia, Singapore, Slovakia, Spain, Sweden, Switzerland, Taiwan, Thailand, United Kingdom, USA and Venezuela to a maximum of 99 different numbers per month.
You can choose a phone number from various countries and for some countries, OVH even offers free number portability for your existing landline number.
Since OVH wants me to dial the numbers (even local ones) with an international 00 prefix, I had to add a rule to manipulate the numbers stored in my phone book. I also added the G.722 wideband codec to the list of supported codecs since this is what my Fritzbox supports natively. There’s a codec menu in OVH’s manager interface which lets you choose additional codecs like G.722. Make sure to watch Asterisk’s log file for all kind of errors until everything runs smoothly. By the way, FreePBX/Asterisk is running very stable on my Raspberry Pi using the RasPBX distro.
While it’s obviously tempting to use OVH’s SIP trunk for landline calls, some of their international mobile rates are rather high. For instance, the rate to call a Swiss mobile phone
is around €0.40/minute. The real rate seems to be €0.146/minute according to my tests. The Swiss mobile rate OVH publishes in their list doesn’t seem to be correct.
Trunk Name: 41nn519nnnn
Outbound Caller ID: 0041nn519nnnn
Dialed Number Manipulation Rules (sample for Switzerland, not needed anymore (see first comment))
() + |
Trunk Name: 0041nn519nnnn
DID Number: 0041nn519nnnn
Don’t forget to set a destination extension.
Route Name: 41nn519nnnn
Route CID: 0041nn519nnnn
Dial Patterns that will use this Route (very basic, not safe if you have multiple outbound routes)
() + | /
Trunk Sequence for Matched Routes
Choose the OVH trunk you created earlier.