|
Example settings from provider: | |
Registration username: | <Phone number> |
Domain: | trunktest.voipit.nl |
Authentication username: | <Username> please ask RoutIT to make this the same as the Registration username, this means: <Phone number> |
Authentication password: | <SIP Password> |
Outbound proxy: | <IP address Outbound proxy> |
Telephone numbers | 085-1111111 |
Important is that RoutIT would like to see the domain name in the registration, but because it is now a valid domain name, this must be created manually in the local host file. Login the PBX using SSH and change the /etc/hosts file, we added the line: |
127.0.0.1 localhost localhost.localdomain GigasetPBX <IP address Outbound proxy> trunktest.voipit.nl |
After a restart of the PBX, open a ping to trunktest.voipit.nl
[root@GigasetPBX ~]# ping trunktest.voipit.nl PING trunktest.voipit.nl (......) 56(84) bytes of data. |
If you see the correct IP address, than you can go further.
In the Gigaset PBX go to "Configuration" - "Lines" - "Lines" and click on: New Line
Give the Line an unique name, insert the Registration username <Phone number> and Password. <SIP Password>
In the Provider pull-down list, select "new.."
Use the settings below.
The fromuser field should be the same as the Registration username: <Phonenumber>
The host and fromdomain field are the same as the provider domain settings.
Just add the telephone numbers for this SIP trunk. The Country Code and Area Code can be filled in, if different than the default setting.
To enable incoming calls, you need to use the settings below.
Open the Manual Configuration and change the default settings like in the example below. Do not forget to enable the check-box Active.
You can copy the text below to paste into the field.
[RoutIT-incoming] exten => _X.,1,Set(channelname=RoutIT-incoming) exten => _X.,2,Set(var_to=${SIP_HEADER(To)}) exten => _X.,3,Set(firstcut=${CUT(var_to,:,2)}) exten => _X.,4,Set(secoundcut=${CUT(firstcut,@,1)}) exten => _X.,5,Set(CALLERID(all)=${CALLERID(number)}) exten => _X.,6,Goto(incoming,${secoundcut},1) exten => _X.,7,Hangup |
The above settings where to enable the SIP registration and outgoing calls, the settings below are needed to open the firewall to accept the incomings calls from this provider. |
In the Gigaset PBX go to "Configuration" - "Lines" - "Lines" and click on:
Give the Line an unique name, set the authentication to: no
In the Provider pulldown list, select "new.."
Use the settings below.
The host field is the same as the provider Outbound proxy: settings.
Number Area settings:
Just add a random telephone number for this SIP account.
Extended settings:
To enable incoming calls, you need to use the settings below.
Open the Manual Configuration and change the default settings like in the example below. Do not forget to enable the check-box Active.
You can copy the text below to paste into the field.
[RoutITdummy-incoming] exten => _X.,1,Set(channelname=RoutITdummy-incoming) exten => _X.,2,Set(var_to=${SIP_HEADER(To)}) exten => _X.,3,Set(firstcut=${CUT(var_to,:,2)}) exten => _X.,4,Set(secoundcut=${CUT(firstcut,@,1)}) exten => _X.,5,Set(CALLERID(all)=${CALLERID(number)}) exten => _X.,6,Goto(incoming,${secoundcut},1) exten => _X.,7,Hangup |