How to configure FreePBX for OVH’s SIP trunk

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. Continue reading