Before adding the SIP Trunk to FreePBX, please make sure you have created an Extension and added it to your Phone.
Before you start you will need 2 things. Your SIP Trunk username and your password.
Setting Up the SIP Trunk
1. Login to your FreePBX Installation. In the top menu go Connectivity → Trunks.
2. Click on the Add Trunk button and select Add SIP (chan_sip) Trunk.
3. On the General tab give the trunk a name.
4. Click on the sip Settings tab and add the below details into the PEER Details text box. Make sure to update the username and password to the ones you got from the VoIP portal under SIP Trunks
5. Click on the Incoming tab and enter the details below into the Register String. Make sure to update the username and password to the ones you got from the VoIPPortal.