User:Roy/Sandbox
From VoIP.ms Wiki
| Line 46: | Line 46: | ||
*Username: Type your account's number or if you're using a sub-account type its name. | *Username: Type your account's number or if you're using a sub-account type its name. | ||
*Password: Type your SIP password for this account | *Password: Type your SIP password for this account | ||
| + | |||
| + | [[File:IAX2 trunk.png|thumb|none|550px|Click to enlarge]] | ||
Revision as of 16:40, 19 April 2019
Creating a trunk
To create a new VoIP.ms trunk head to Extension/Trunk>> VoIP trunks, from the left panel. In this section, you can choose to add a SIP or an IAX trunk.
SIP Trunk
To create a SIP trunk you only need to fill some basic information.
- Type: Choose "Register SIP trunk" from the dropdown menu
- Provider Name: Type VoIP.ms (any name can be used), if not listed
- Host: Type the domain name of any server listed here: https://wiki.voip.ms/article/Choosing_Server
- Keep trunk CID: Enable it, if you want the trunk to send its own CID number or disable it if your extensions are going to send their own CID number
- Username: Type your account's number or if you're using a sub-account type its name.
- Password: Type your SIP password for this account
When done, just click on "Save" button. Your new trunk will be created but changes won't take effect until you click on "Apply changes" button, we can do this later when the set up is complete.
If you get a pop-up window letting you know about the SIP port number, just click "Ok"
Once your basic SIP trunk has been created we will proceed to improve some settings on it, click on the edit icon for your trunk.
New settings will show up, in order to send your SIP headers as we require, please make sure the "fromuser" field has your account or sub-account name in it. In short, username and fromuser fields should contain the same information.
Now click at "Advanced Settings" and at "Codec Preference" use only the supported codecs by VoIP.ms. At the right column choose only G.729, PCMU, GSM in this order.
If your trunk is going to send its own CID number you can use PAI (P-Asserted-Identity) header. You only need to enable "Send PAI Header" and type the caller ID name and Caller ID number your trunk will send by using the following format: YourName<YourPhoneNumber>.
In order to send PAI header successfully, bear in mind that no CID number must be set from your VoIP.ms portal at your account or sub-accounts section, otherwise the CID number set in your portal will override the one sent by your trunk.
We also suggest enabling "Enable Heartbeat Detection" in order to send SIP OPTIONS messages to our server and avoid your modem to close your local SIP ports. Make "Heartbeat Frequency" to 50 seconds, this should be enough time to renew your local SIP port connection.
Finally, just click on "Save" button and at this stage, you can also click on "Apply Changes". Your trunk should be shown as "Registered" from your VoIP.ms dashboard, however, no calls will work until you set up your outbound and inbound routes.
IAX2 Trunk
To create an IAX2 trunk just fill the following information:
- Type: Register IAX trunk
- Provider Name: Type VoIP.ms (any name can be used), if not listed
- Host: Type the domain name of any server listed here: https://wiki.voip.ms/article/Choosing_Server
- Keep trunk CID: Enable it, if you want the trunk to send its own CID number or disable it if your extensions are going to send their own CID number
- Username: Type your account's number or if you're using a sub-account type its name.
- Password: Type your SIP password for this account
