• No results found

Configuring the SIP-based Voice Service (Through the CLI)

The OLT manages ONTs and applies VoIP configurations to the ONT using the OMCI protocol.

This topic describes how to configure the SIP-based voice service.

Data Plan

Table 1-37 Data plan

Item Data

ONT line profile Profile name: ftth T-CONT ID: 4 GEM port ID: 12 ONT service profile Profile name: ftth

ONT port capability set: adaptive

Voice parameter IP address of the SIP server: 200.200.200.200/24 Port ID of the SIP server: 5060

User phone number 1: 77730010 User phone number 2: 77730020

Prerequisite

l Data has been configured on the SIP server for interoperating with the SIP interface on the ONT.

l The connection between the OLT and the SIP server has been set up. The OLT can ping the IP address of the SIP server successfully.

l The ONT has been added to the OLT. For details, see Adding an ONT to an OLT.

l The ONT software needs to support the configuration. Currently, only V100R002C02 supports this configuration.

Procedure

Step 1 Configure a VLAN translation policy and service flows.

1. Perform this step in the gateway ONT (single VLAN tag) scenario.

Table 1-38 Scenario plan

Scenario VLAN Plan VLAN Translation Policy

Scenario 1 Single VLAN tag l SVLAN ID: 300 l SVLAN type: smart l SVLAN attribute: common l CVLAN ID: 300

ONT: The iTMS issues the VLAN of the WAN port or factory default setting is used.

OLT: transparently transmits VLAN (CVLAN is the same as the planned SVLAN).

Scenario 2 Single VLAN tag l SVLAN ID: 300 l SVLAN type: smart l SVLAN attribute: common l CVLAN ID: 3001

ONT: The iTMS issues the VLAN of the WAN port or factory default setting is used.

OLT: performs VLAN translation: C<->S (CVLAN is different from the planned SVLAN).

Scenario 1:

Configure the mapping relationship between a GEM port and a VLAN. The service flow of user VLAN 300 is mapped to GEM port 12 in the ONT line profile.

huawei(config)#ont-lineprofile gpon profile-name ftth huawei(config-gpon-lineprofile-1)#gem mapping 12 2 vlan 300 huawei(config-gpon-lineprofile-1)#commit

huawei(config-gpon-lineprofile-1)#quit

Create a service VLAN and add an upstream port to it. Add upstream port 0/19/0 to VLAN 300.

huawei(config)#vlan 300 smart huawei(config)#port vlan 300 0/19 0

Create service flows. Set the service VLAN to 300, GEM port ID to 12, and user VLAN to 300, and use traffic profile ftth_voip.

huawei(config)#service-port vlan 300 gpon 0/1/0 ont 1 gemport 12 multi-service user-vlan 300 inbound traffic-table name ftth_voip outbound traffic-table name

ftth_voip

huawei(config)#service-port vlan 300 gpon 0/1/0 ont 2 gemport 12 multi-service user-vlan 300 inbound traffic-table name ftth_voip outbound traffic-table name

ftth_voip

Scenario 2:

Configure the mapping relationship between a GEM port and a VLAN. The service flow of user VLAN 3001 is mapped to GEM port 12 in the ONT line profile.

huawei(config)#ont-lineprofile gpon profile-name ftth huawei(config-gpon-lineprofile-1)#gem mapping 12 2 vlan 3001 huawei(config-gpon-lineprofile-1)#commit

huawei(config-gpon-lineprofile-1)#quit

Create a service VLAN and add an upstream port to it. Add upstream port 0/19/0 to VLAN 300.

huawei(config)#vlan 300 smart

huawei(config)#vlan attrib 300 stacking huawei(config)#port vlan 300 0/19 0

Create service flows. Set the service VLAN to 300, GEM port ID to 12, and user VLAN to 3001. Use traffic profile ftth_voip.

huawei(config)#service-port vlan 300 gpon 0/1/0 ont 1 gemport 12 multi-service

user-vlan 3001 tag-transform translate inbound traffic-table name ftth_voip outboun

d traffic-table name ftth_voip

huawei(config)#service-port vlan 300 gpon 0/1/0 ont 2 gemport 12 multi-service

user-vlan 3001 tag-transform translate inbound traffic-table name ftth_voip outboun

d traffic-table name ftth_voip

Step 2 (Optional) Configure global media attributes.

Set the fax mode to transparent transmission and the maximum jitter buffer to 200 ms. Use default values for other parameters.

huawei(config)#ont-voip-media attribute faxmode passthru jitter-buffer max 200

Step 3 Configure the IP addresses of ONT SIP users.

huawei(config)#interface gpon 0/1

huawei(config-if-gpon-0/1)#ont ipconfig 1 1 static ip-address 10.10.10.10 mask 255.255.255.0 vlan 20

huawei(config-if-gpon-0/1)#ont ipconfig 1 2 static ip-address 10.10.10.20 mask 255.255.255.0 vlan 20

huawei(config-if-gpon-0/1)#quit

Step 4 Configure ONT voice service profiles.

The ONT voice service profiles include the digitmap profile, SIP agent profile, and POTS profile.

l The digitmap profile contains the digitmap information of the ONT, including the digitmap format and timeout time of the digitmap timer.

l The SIP agent profile contains the SIP agent information of the ONT, including the SIP agent server, signaling transmission mode, and signaling transmission port.

l The POTS profile contains the physical attributes of POTS ports on the ONT, including the port impedance and port signaling type.

1. Configure a digitmap profile.

Run the display ont-digitmap-profile command to query the existing digitmap profiles in the system. If the existing digitmap profiles in the system do not meet the requirements, run the ont-digitmap-profile add command to add a digitmap profile.

Create digitmap profile 2 with the internal digitmap format of the ONT.

huawei(config)#ont-digitmap-profile add profile-id 2 digitmap-format not_defined

2. Configure a SIP agent profile.

Run the display ont-sipagent-profile command to query the existing SIP agent profiles in the system. If the existing SIP agent profiles do not meet the requirements, run the ont-sipagent-profile add command to add a SIP agent profile.

Create SIP agent profile 2, set the IP address of the SIP server to 200.200.200.200 and signaling port ID to 5060, and use default values for other parameters.

huawei(config)#ont-sipagent-profile add profile-id 2 proxy-server 200.200.200.200 signal signal-port 5060

3. Configure a POTS profile.

Run the display ont-pots-profile command to query the existing POTS profiles in the system. If the existing POTS profiles in the system do not meet the requirements, run the ont-pots-profile add command to add a POTS profile.

In this example, the default POTS profile, namely POTS port 1 is used.

Step 5 Configure SIP PSTN users.

1. Add PSTN users.

Add PSTN user huawei1 (phone number: 77730010) and PSTN user huawei2 (phone number: 77730020) on ONT1 and ONT2 respectively.

huawei(config)#interface gpon 0/1

huawei(config-if-gpon-0/1)#sippstnuser add 1 1 1 username huawei1 telno 77730010

huawei(config-if-gpon-0/1)#sippstnuser add 1 2 1 username huawei2 telno 77730020

2. Bind ONT voice service profiles to PSTN users.

The ONT voice service profiles include the digitmap profile, SIP agent profile, and POTS profile. By default, a new PSTN user is bound to SIP agent profile 1, digitmap profile 1, and POTS profile 1. If the default profiles do not meet the requirements, bind other profiles.

In this example, bind digitmap profile 2 and SIP agent profile 2 to the PSTN user. Use the default POTS profile.

huawei(config-if-gpon-0/1)#sippstnuser digitmap 1 1 1 digitmap-profile profile-id 2

huawei(config-if-gpon-0/1)#sippstnuser digitmap 1 2 1 digitmap-profile profile-id 2

huawei(config-if-gpon-0/1)#sippstnuser ipconfig 1 1 1 sip-agent-profile profile-id 2

huawei(config-if-gpon-0/1)#sippstnuser ipconfig 1 2 1 sip-agent-profile profile-id 2

huawei(config-if-gpon-0/1)#quit

Step 6 Save the data.

huawei(config)#save

----End

Result

After two telephone sets are connected to two POTS ports on different ONTs, calls can be made between the two telephone sets.