VoIP SIP Trunks: Difference between revisions

Back up to the VoIP Features Category
From AAISP Support Site
No edit summary
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__<indicator name="Configuring">[[File:Menu-cog.svg|link=:Category:VoIP Features|30px|Back up to the VoIP Features Category]]</indicator>
A SIP Trunk is a service where by VoIP calls are routed to and from SIP servers. A customer may have their own SIP Server/PBX, and need a 'SIP Trunk' service in order to make and receive calls though AAISP.
A SIP Trunk is a service where by VoIP calls are routed to and from SIP servers. A customer may have their own SIP Server/PBX, and need a 'SIP Trunk' service in order to make and receive calls though AAISP.


Our VoIP system can simple 'trunk' calls to/from your own PBX - it is perfectly normal for you to have your own office PBX, such as a FireBrick or an Asterisk server for example and for your equipment to provide you will all the 'PBX' type functionally that you require. However, you can also have SIP phones register directly against our servers and use the PBX functionality that we provide. Or, indeed, have a mix of the 2 - e.g. we can route calls to you by SIP (trunk), but we can also record calls.
Our VoIP system can simple 'trunk' calls to/from your own PBX - it is perfectly normal for you to have your own office PBX, such as a FireBrick or an Asterisk server for example and for your equipment to provide you will all the 'PBX' type functionally that you require. However, you can also have SIP phones register directly against our servers and use the PBX functionality that we provide. Or, indeed, have a mix of the 2 - e.g. we can route calls to you by SIP (trunk), but we can also record calls.


=Outbound SIP Trunks - you to us=
In practice all VoIP Numbers from AAISP can be used as a SIP Trunk, in that the SIP account can be used to make multiple outbound/inbound calls.


There is no limit on the number of calls you can make with an AAISP VoIP account, simply use the username/password and the server in your PBX config.
=Outbound SIP Trunks=


For your server config, you'd use the same details as that of a normal SIP phone:
SIP trunks are available from AAISP. In practice all VoIP accounts from AAISP can be used as a SIP Trunk, in that the SIP account can be used to make multiple outbound calls.


*'''Server''': voiceless.aa.net.uk
There is no limit on the number of outbound calls you can make with an AAISP VoIP account, simply use the username/password and the server in your PBX config.
*'''Username''': Your Number in International format, e.g. +441234567890
*'''Password''': Your SIP Password ([[VoIP_Password|which needs to be set via the control pages]])


=Inbound SIP Trunks - us to you=
If you'd like SIP trunks from AAISP, then please do contact the Sales department.

Inbound calls can be routed to a registered SIP phone, redirected to another number or routed to your own SIP server.

Configuration of our side, to send calls to your server, is set on the Control pages. You'd want the 'SIP to your Server' option.

{{HowToBox|Set SIP to your server|
#Log in to the [https://clueless.aa.net.uk Control Pages] with your xxx@a login
#Click on the phone number.
#Click the Incoming Tab
#Look at the 'Target; section, and select 'To your server via SIP'
#Enter in the detials of the SIP credentials you want us to use when sending a call to your server
}}

[[File:Voip-sip-to-server.png|none|frame|SIP to your server, put the credentials that your server is expecting]]
When we route calls to your own SIP server you do not need to register against our servers. You may if you wish, but we will then send INVITEs to both the registered device and to the SIP server set in the control pages.


==CLI/Presentation Number==
==CLI/Presentation Number==
For outbound calls, we will allow you to present the CLI of any number which has a base number that points to the number you're using as authentication.
We allow you to present the CLI of any number where the configured base number is one you are using for authentication.


We are also able to set up an additional number on request, see [[VoIP Presentation Number]].
We are also able to set up an additional number on request, see [[VoIP Presentation Number]].


=Base/Group Numbers=
=Inbound SIP Trunks=


In some number ranges (e.g. 033) we offer DDI (direct dial in) blocks. These are blocks of 10, 100, 1000 or even 10000 numbers routed to one destination. You could have several blocks.
Inbound calls can be routed to a registered SIP phone, redirected to another number or routed to your own SIP server. To help where a customer may have a block of numbers the AAISP Control Pages have a concept of grouping numbers together to use a common number as their settings.


To help where a customer may have a block of numbers the AAISP Control Pages have a concept of grouping numbers together to use a common number as their settings.
=Base/Group Numbers=


To manage the blocks each block has a base number in our control pages e.g. 01234567890 for a block of 10, or 01234567800 for a block of 100. This allows you to control where the numbers are sent (e.g. SIP to your server, registered SIP phone). Incoming calls to any of the numbers is delivered as per this setting.
AAISP are able to provide multiple phone numbers, and blocks of numbers, e.g. blocks of 10, 20, 100, 1000 etc.


To make outgoing calls you can use a SIP authenticated login using the base number as the login, and the password you set. This is just the same as using single numbers. One difference is that you can set the CLI (calling number) to any of the numbers in the block. If you set the CLI to one of the numbers then that is what is used. If you do not set the CLI or set an invalid one then the base number is used. If you have a presentation number then this is used instead when you do not set a CLI. This means you can choose to use any of your numbers, or a presentation number if you have one, on a per call basis from your own phone system.
On the Control Pages blocks of numbers can be configured in such a way that there is a 'Base' Number, and all other numbers have the Base set in the Group settings. With this setup the individual number mirror the settings on the Master.


The individual numbers within the block have their own management and billing as normal. This can be useful where most numbers are handled by your phone systems but you need some specific exceptions handled differently.
This means that settings can be changed on the Base Number which affect all numbers in the Group.


[[File:Voip-base-group.png|none|frame|Base Number setting on Control Page]]
[[File:Voip-base-group.png|none|frame|Base Number setting on Control Page]]
Line 44: Line 64:
It is also possible to register your PBX against the 'Base' Number, then calls for numbers in the 'Group' will be sent to that registration.
It is also possible to register your PBX against the 'Base' Number, then calls for numbers in the 'Group' will be sent to that registration.


===NAT?===
Please note that the base number CLI logic can be broken by NAT. We initially look for a registration for the number we have on a call (e.g. DDI), and if found, we use it. If not, and if base number is set, we check if the base number has a registration. If so, we use the DDI followed by the contact from the registration. When NAT is used we can't trust the contact for the registration.
Please note that the base number CLI logic can be broken by NAT. We initially look for a registration for the number we have on a call (e.g. DDI), and if found, we use it. If not, and if base number is set, we check if the base number has a registration. If so, we use the DDI followed by the contact from the registration. When NAT is used we can't trust the contact for the registration.


Line 49: Line 70:
If you are using the asterisk PBX, or systems based on asterisk, please see [[VoIP Phones - Asterisk]] for notes on configuration.
If you are using the asterisk PBX, or systems based on asterisk, please see [[VoIP Phones - Asterisk]] for notes on configuration.


==Other VoIP Features==
<ncl style=bullet maxdepth=5 headings=bullet headstart=2 showcats=1 showarts=1>Category:VoIP Features</ncl>





Latest revision as of 16:35, 21 November 2021

A SIP Trunk is a service where by VoIP calls are routed to and from SIP servers. A customer may have their own SIP Server/PBX, and need a 'SIP Trunk' service in order to make and receive calls though AAISP.

Our VoIP system can simple 'trunk' calls to/from your own PBX - it is perfectly normal for you to have your own office PBX, such as a FireBrick or an Asterisk server for example and for your equipment to provide you will all the 'PBX' type functionally that you require. However, you can also have SIP phones register directly against our servers and use the PBX functionality that we provide. Or, indeed, have a mix of the 2 - e.g. we can route calls to you by SIP (trunk), but we can also record calls.

Outbound SIP Trunks - you to us

In practice all VoIP Numbers from AAISP can be used as a SIP Trunk, in that the SIP account can be used to make multiple outbound/inbound calls.

There is no limit on the number of calls you can make with an AAISP VoIP account, simply use the username/password and the server in your PBX config.

For your server config, you'd use the same details as that of a normal SIP phone:

Inbound SIP Trunks - us to you

Inbound calls can be routed to a registered SIP phone, redirected to another number or routed to your own SIP server.

Configuration of our side, to send calls to your server, is set on the Control pages. You'd want the 'SIP to your Server' option.


Click to Access the Control Pages

How To: Set SIP to your server

  1. Log in to the Control Pages with your xxx@a login
  2. Click on the phone number.
  3. Click the Incoming Tab
  4. Look at the 'Target; section, and select 'To your server via SIP'
  5. Enter in the detials of the SIP credentials you want us to use when sending a call to your server
SIP to your server, put the credentials that your server is expecting

When we route calls to your own SIP server you do not need to register against our servers. You may if you wish, but we will then send INVITEs to both the registered device and to the SIP server set in the control pages.

CLI/Presentation Number

We allow you to present the CLI of any number where the configured base number is one you are using for authentication.

We are also able to set up an additional number on request, see VoIP Presentation Number.

Base/Group Numbers

In some number ranges (e.g. 033) we offer DDI (direct dial in) blocks. These are blocks of 10, 100, 1000 or even 10000 numbers routed to one destination. You could have several blocks.

To help where a customer may have a block of numbers the AAISP Control Pages have a concept of grouping numbers together to use a common number as their settings.

To manage the blocks each block has a base number in our control pages e.g. 01234567890 for a block of 10, or 01234567800 for a block of 100. This allows you to control where the numbers are sent (e.g. SIP to your server, registered SIP phone). Incoming calls to any of the numbers is delivered as per this setting.

To make outgoing calls you can use a SIP authenticated login using the base number as the login, and the password you set. This is just the same as using single numbers. One difference is that you can set the CLI (calling number) to any of the numbers in the block. If you set the CLI to one of the numbers then that is what is used. If you do not set the CLI or set an invalid one then the base number is used. If you have a presentation number then this is used instead when you do not set a CLI. This means you can choose to use any of your numbers, or a presentation number if you have one, on a per call basis from your own phone system.

The individual numbers within the block have their own management and billing as normal. This can be useful where most numbers are handled by your phone systems but you need some specific exceptions handled differently.

Base Number setting on Control Page

When a number has a Base set, then many of the settings for that number are hidden - as it will inherit its settings from the Base number.

Then on the Base number, you can set Incoming calls to be set to your server

SIP to your server, put the credentials that your server is expecting

For example, say you have a block of 10 numbers:

  1. Set all the 'SIP to Server' settings on the number ending 0
  2. On the 9 other numbers set the Base/group setting to be the number ending 0

This then makes all the number inherit the settings from the 0 number, i.e., calls for any of the numbers will be sent to the SIP server settings as specified in the Base Number.

It is also possible to register your PBX against the 'Base' Number, then calls for numbers in the 'Group' will be sent to that registration.

NAT?

Please note that the base number CLI logic can be broken by NAT. We initially look for a registration for the number we have on a call (e.g. DDI), and if found, we use it. If not, and if base number is set, we check if the base number has a registration. If so, we use the DDI followed by the contact from the registration. When NAT is used we can't trust the contact for the registration.

Asterisk

If you are using the asterisk PBX, or systems based on asterisk, please see VoIP Phones - Asterisk for notes on configuration.