If you're looking to set up a basic SIP trunk on your FreePBX, Elastics, or Issabel switchboard, this guide will walk you through the process step-by-step. Although the guide screenshots are based on Issabel, the steps are the same for all switchboards mentioned earlier.
Please note that this is only an example configuration, and you may need to modify the settings based on your specific requirements and setup.
First, under the PBX tab, select PBX Configuration, and then click on Basic/Trunks.:
From here, create a new trunk and add a name for your reference, such as Megacall. Then, add the following settings:
The dialling plan shown above allows agents to dial Spanish destinations with local dialling, and it will automatically add the country code (34) before routing the calls out through Megacall's SIP trunk.
It's important to remember that all calls must include the CallerID (Origin) and the Destination number in international format (e.g Country Code + Destination).
For peer details, use the following configuration:
type=peer
username={VoIP Username}
secret={VoIP Password}
fromuser={VoIP Username}
authname={VoIP Username}
host=gw.megacall.es
insecure=invite,port
nat=force_rport,comedia (only use when your PBX is behind NAT, otherwise exclude from the configuration)
disallow=all
allow=alaw&ulaw&g729
qualify=yes
sendrpid=pai
trustrpid=yes
directmedia=no
sipreinvite=no
allowguest=no
alwaysauthreject=yes
language=en
dtmfmode=rfc2833
tcpenable=yes
There's no need to add a registration string, as calls are authenticated based on your public IP address and the Digest-Auth method. The registration is not enabled and will be rejected.
Once you've entered all the necessary details, click "Submit Changes" at the bottom of the page, and then click "Apply Changes" at the top of the same page to complete the task.
The next step is to create an outbound route. Go to the PBX tab, select PBX Configuration, and then click on Basic/Outbound Routes.
Add a route name, such as Megacall-Outbound.
You must also add dial plan rules to match the numbers your agents are dialling to use this outgoing rule. In this example, we'll use this outgoing rule when the numbers start with 00, 34 (Spain), 44 (UK), or any Spanish number with the local format, which will add the country code 34 before the call is routed.
Finally, select Megacall's SIP trunk that we created previously.
Once you've entered all the necessary details, click "Submit Changes" at the bottom of the page, and then click "Apply Changes" at the top of the same page to complete the task.
Now your SIP trunk is ready, and your agents can start calling out.
If you have any questions or experience any issues, please contact our Technical Support team at "support@megacall.es" for further assistance.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article