voip.ms with Asterisk

I’ve been testing voip.ms, an ITSP based in Canada, for the past few weeks.

They have quite a few interesting features including a server located in London (which has been producing good results for me),  multiple ways to download rate information (CSV, Excel, XML API …) and the ability to set up reseller accounts.

It works well with Asterisk and below are an example of settings that can be used for a FreePBX trunk –

Trunk Name:

voip.ms

Dial Rules alter the way that the dialled number is passed to the call provider. This can be used to convert a number dialled in the local country format to an ‘international’ format. For instance, in the UK, you would want to remove the leading zero and replace it with the country code, 44.

Dial Rules:

44+0|[1-3].
44+0|7[56789].
44+0|8.
011+00|.

Trunk Name:

voipms

PEER Details:

username=USERNAME
type=friend
trustrpid=yes
sendrpid=yes
secret=PASSWORD
qualify=yes
insecure=port,invite
host=london.voip.ms
fromuser=USERNAME
disallow=all
context=from-trunk
canreinvite=nonat
allow=ulaw

Register String:

USERNAME:[email protected]:5060

Obviously you need to replace the USERNAME and PASSWORD with your own voip.ms account details.

6 thoughts on “voip.ms with Asterisk

  1. francis

    Hi … our extension is currently set to: context=from-internal

    Should we use “context=from-trunk” instead?

    We are also using our asterisk and freebpx to use voip.ms for outside calls.

    Would appreciate any help setting this up thanks.

  2. matt Post author

    No, that should work fine. You should leave your extension context as from-internal. The from-trunk context is the default FreePBX one for incoming calls.

  3. jermaine

    hey matt
    ii don’t understand the dial rule. when am making call to the uk using voip.ms rate card in a2billing i have to modify the rate card and add 01144 before the call can go through are u saying i can add this setting to the trunk and not to rate card because it would be very easy to add to trunk in freepbx and not rate card in a2billing

  4. matt Post author

    Adding prefixes via the trunk in FreePBX will not work for an a2billing call. You need to add any numbers via the add prefix option on the trunk in a2billing.

    I would recommend having the rates start with the country code (ie 44 for UK). The 011 can then be added via the trunk in a2billing if required (although I don’t think it is with voip.ms).

Comments are closed.