Configuring Kerio Operator and Grandstream GXW 4104/4108 for calls over analog telephone lines
Grandstream GXW 4104 is an analog-to-SIPSession Initiation Protocol - A communication protocol used for voice and video calls in Internet telephony or private IP telephone systems. gateway with four FXO ports. The GXW 4108 model has eight FXO ports.
Prerequisites
To complete the configuration, you need:
- Kerio Operator up and running.
- At least one internal extension.
- The Grandstream gateway connected to your LAN.
- One analog phone connected to the first port of the GXW gateway.
In the example below:
- The Kerio Operator IP address is 10.1.2.95.
- The Grandstream gateway's IP address is 10.1.2.200.
- The phone number of connected phone is 1234567.
- The internal extension's number is 100.
NOTE
The example below uses GXW 4104, firmware version 1.4.1.5. The GXW gateway runs without a SIP passwordA password for authenticating provided by a SIP provider. in a peer-to-peer configuration. Use this configuration in a safe local network.
Kerio Operator configuration
- In the administration interface, go to Configuration > Call Routing > Interfaces and routing of incoming calls.
- Click Add SIP Interface.
- Type a name for the interface (for example, the provider's name). The name must not contain spaces or special characters and must be unique.
- Select New provider.
- In the With external number field, type the number
1234567
and click Next. - Select an extension that receives all calls, For example, (
100
. - Optionally, in the Prefix to dial out field, type a prefixCountry codes, area codes, a number, or a set of numbers that are dialed before the telephone numbers. for outgoing calls and click Next.
- In the Domain (IP address/hostname) field, type the IP address of the Grandstream GXW gateway,
10.1.2.200
. - Deselect the Required to register option and click Next.
- Verify the information in the Summary section and click Finish.
Grandstream GXW configuration
To configure the GXW 4104 model, use the ch1-4
parameter. For a GXW 4108 model configuration, use the parameterch1-8
.
- In the Grandstream GXW administration interface, go to Accounts > Account 1 > General Settings.
- In the SIP Server field, type the IP address of (
10.1.2.95
). - In the Account Active field, select Yes.
- Optionally, set up your Account Name and Outbound Proxy.
- Save your settings.
The web interface now asks whether you want to reboot to apply the new configuration. You can reboot now or continue with the configuration and reboot later.
- Go to Accounts > User Account and verify that the configuration form is empty.
- Go to Settings > Channel Settings > Calling to VoIPVoice over Internet protocol - A digital telephone system that uses the internet as the transmission medium, rather than the PSTN..
- Set User ID to
ch1-4:1234567;
. Calls that come to any of the four analog ports are send to Kerio Operator as if the number called was 1234567. To differentiate among the analog ports, type additional external numbers (for example,1234568
) in the SIP interfaceAn external interface used for connecting to SIP providers. in Kerio Operator and set User ID toch1-2:1234567;ch3-4:1234568
. This configuration maps analog ports 1 and 2 to the number1234567
and ports 3 and 4 to the number1234568
. - In the SIP Server field, set
ch1-4:pl;
. - In the SIP Destination Port field, set
ch1-4:5060;
.
- Go to FXO Lines > Settings > Port Caller IDA service that provides information about caller's number. Setting.
- In the Number of Rings Before Pickup field, set
ch1-4:2;
. Analog lines usually transmit the caller ID between the first and second ring. If you want to detect the caller ID, you must allow at least two rings before accepting the call. - In the Caller ID Scheme field, set the option to the method used by your analog line provider. For example, for Bellcore use
ch1-4:1;
. - In the Caller ID Transport Type field, set
ch1-4:1;
to transmit the caller ID in the SIP From field.
- Go to FXO Lines > Dialing > Dialing to PSTNPublic switched telephone network - A global telecommunications network that operates the traditional telephony system., and in the Stage Method (1/2) field, set
ch1-4:1;
. - Reboot the gateway.
After the reboot, make several test calls to verify the configuration.
NOTE
To change the volume of the sound transmitted between the analog line and the SIP, go to FXO Lines > Settings > Port Voice Settings and modify the audio gain values.