So that IPBrick executes the routing of the calls between the several network interfaces, it is necessary the definition of specific routes according to a telephony numbering.
As you can see in Figure 4.66 we have this options:
Local routes
Local routes (Figure 4.67) allow the configuration of an interconnection between LAN, PSTN, PBX or INTERNET.
The possible options by default are:
If there are other configured interfaces (acting like trunks), they may be added to the list of routes, and for that it is necessary to click the connection Available Local Routes (Figure 4.67) and then add the necessary routes.
The Insert in the top menu allows to insert one of the routes mentioned. After insertion, each type of route has a connection that allows its configuration. When acceding to this interface it is possible to choose one of these options:
Back
Modify: To change the type of local route;
Delete: Remove the local route;
Insert: It allows to add the prefixes that must be added to this route. When you indicate a prefix, all the calls whose initial digits coincide with that digit are routed by that route. Choosing Advanced Options we have this options (Figure 4.69):
Prefix: The numeric prefix to use to make calls using that route;
Include prefix in address: If Yes the prefix will be part of the destination number, so the prefix will be maintained when the call is routed. If No the prefix will be used only to identify the route. Example: To enable the use of number 6 to route a call to the Portuguese PSTN network, it is necessary to remove this prefix in order that the number stays with the correct format (the format 2XXXXXXXX instead of 62XXXXXXXX).
Postrouting prefix: It's a prefix added by the IPBrick when the number is received. Example: For the Portuguese PSTN network we use the format 2XXXXXXXX. If we use has main route a SIP account route it's necessary to use prefix 2, include prefix in address and use a postrouting prefix with 00351 (351 is the portuguese international code);
Caller IDs restriction: Will restrict the route only for the listed caller ID's;
Fallback routes: It's a backup route to use if the present one fails;
Generate local ringing tone: Will generate a local ringing tone. Can be used when it can't ring at the destination phone;
Priority: Define the prefix priority level.
Outbound routes
This option turns possible to configure which calls shall be routed to a external server which shall be responsible for routing them to their destiny (Figure 4.68). This routing is made through prefixes that may be inserted clicking the name of the route and then the link Insert above the prefixes table. To change or remove a route you only have to click its name and then the option Modify or Delete, respectively.
To add a new outbound route click Insert. Choosing Advanced Options the following parameters will be presented:
Type: Type of signalling protocol to use: Can be SIP, SIP with TLS or IAX;
Name: Outbound server name;
Server Address: Server IP/name address;
Server Port: Server port to use;
Authentication: If it is necessary to make authentication in server, you shall have to choose the option User/Password and fulfil the users name and respective password;
Available to Internet: With this option selected, the route shall be available for VoIP telephones outside the LAN;
Simetric signalling: It allows to define if signalling is sent and received through the same door (port 5060);
Activate ENUM search: It allows IPBrick to search through ENUM.4.20
DTMF type: Type of DTMF4.21 to use. Options: RFC2833 (default), Inband, Info and Auto;
Call limit: Number of possible simultaneous calls using that route, that can be useful for bandwidth control. With 0 we can disable it;
If the outbound route type is IAX, the only parameters are:
Name;
Server Address;
Server Port;
Available to Internet;
Call limit.
The prefixes inserted in this outbound routes shall be available automatically for the SIP telephones and the telephones connected to PBX. If there are additional interfaces and you intend to use a outbound route, it is necessary to add the route INTERFACE->INTERNET (for example PBX1->INTERNET or GSM->INTERNET), include in that route a prefix matching the one of the route for the SIP server and include the prefix (in option Include prefix choose Yes).
For each outbound route it's possible to define witch codecs will be used (option Modify and theirs priority with option Order.
SIP servers list for registering
Here is possible to visualize the SIP4.22 address list which have already been configured (Figure 4.70). When inserting a new one, the page generated asks for the following data:
Name: Server name;
SIP server address: SIP server IP or address.
After inserting the data, it is necessary to click the button Insert to confirm the insertion of the address. The next step is to register accounts to the local SIP server. Pressing Insert we have this options:
Login: SIP account login. Normally is the nomadic SIP number;
Authentication user: Usually equal to login;
Password: SIP account password;
Local: Internal phone that will receive the calls comming from Internet to that nomadic number.