Monday, July 24, 2017

How to configure SIP Voice Service on Huawei ONU?

How to configure voice services based on the Session Initiation Protocol (SIP) on an optical network unit (ONU). The voice over IP (VoIP) services have high quality, but require low cost.

Prerequisites

  • The IP Multimedia Subsystem (IMS) interface data and public switched telephone network (PSTN) user data corresponding to the SIP interface is configured on the IMS.
  • Status of the voice board on Huawei ONU is normal. (To verify board status, run the display board 0 command.)

Precautions
1. An ONU like MA5822 24FE+24POTS supports both the H.248 and SIP protocols; however, these two protocols are mutually exclusive. You can run the display protocol support command to query the
currently supported voice protocol.

2. If the voice protocol needs to be switched, you need to delete the global digitmap and the
MG interface (under H.248 protocol) or SIP interface (under SIP protocol) first and run
the protocol support command to switch the protocol. After the configuration is
complete, save the configuration and restart the system to make the configured protocol
take effect.

Procedure

Step 1 Log in to and configure the ONU.
You can remote log in to the ONU from Huawei OLT to perform the configuration. The user name
is root and the password is admin123.

Step 2 Configure the upstream VLAN interface.
Specify the upstream VLAN interface for the media stream and the signaling flows and
configure the IP addresses of the Layer 3 interface. These IP addresses are the sources of the
IP address pools for the media stream and the signaling flows.
1. Create an upstream VLAN.
The VLAN ID is 200 and the VLAN is a smart VLAN.
huawei(config)#vlan 200 smart
2. Add the upstream port to the created upstream VLAN.
Add upstream port 0/0/1 to VLAN 2000.
huawei(config)#port vlan 200 0/0 1
3. Configure the IP address of the Layer 3 interface.
Enter the VLAN interface mode and configure the lP address of the Layer 3 interface to
10.10.10.10
huawei(config)#interface vlanif 200
huawei(config-if-vlanif200)#ip address 10.10.10.10 24
huawei(config-if-vlanif200)#quit

Step 3 Configure the media and signaling IP address pools.
Set the media IP address and signaling IP address to 10.10.10.10, and the media gateway to
10.10.10.1.
huawei(config)#voip
huawei(config-voip)#ip address media 10.10.10.10 10.10.10.1
huawei(config-voip)#ip address signaling 10.10.10.10
huawei(config-voip)#quit

Step 4 Configure static routes.
Because the IP address of the VLAN interface and that of the IMS (200.200.200.200/24) are
in different network segments, the configured routes must be from gateway 10.10.10.1 to the
network segment 200.200.200.0.
huawei(config)#ip route-static 200.200.200.0 24 10.10.10.1

Step 5 Add an SIP interface.
The SIP interface is used for IMS communication.
huawei(config)#interface sip 0
Are you sure to add the SIP interface?(y/n)[n]:y

Step 6 Configure the basic attributes of the SIP interface.
huawei(config-if-sip-0)#if-sip attribute basic media-ip 10.10.10.10 signal-ip
10.10.10.10 signal-port 5060 transfer udp primary-proxy-ip1 200.200.200.200
primary-proxy-port 5060 home-domain huawei sipprofile-index 1

Step 7 (Optional) Configure the optional attributes of the SIP interface.
Run the if-sip attribute optional command to configure the optional attributes, including the
domain name, description, register server uniform resource identifier (URI), phone context,
and conference factory URI of the SIP interface.

Step 8 Reset the SIP interface.
huawei(config-if-sip-0)#reset
Are you sure to reset the SIP interface?(y/n)[n]:y
huawei(config-if-sip-0)#quit

Step 9 Configure the SIP PSTN user data.
Configure in batches the phone numbers of users 0/3/0-0/3/15 to 83110001-83110016.
l To configure the data of a single SIP PSTN user, run the sippstnuser add command.
l To configure the data of multiple SIP PSTN users in batches, run the sippstnuser batadd command.
huawei(config)#esl user
huawei(config-esl-user)#sippstnuser batadd 0/3/0 0/3/15 0 telno 83110001

Step 10 Configure call priorities for SIP PSTN users.
huawei(config-esl-user)#sippstnuser attribute set 0/3/0 priority cat2
huawei(config-esl-user)#quit

Step 11 Configure all the PSTN ports to support polarity reversal.
Configure the physical attributes of the PSTN port to which the users belong to support
polarity reversal so that the user supports polarity reversal accounting.
huawei(config)#pstnport
huawei(config-pstnport)#pstnport attribute batset 0/3/0 0/3/15 reverse-pole-pulse
enable
huawei(config-pstnport)#quit

Step 12 Save the data.
huawei(config)#save






No comments:

Post a Comment