Procedure
- Configure the upstream VLAN interface for the media stream and the signaling stream.
The VLAN ID is 50, the VLAN type is smart VLAN, the upstream port is 0/19/0, and the IP address of the VLAN interface is 10.50.1.10/24.
huawei(config)#vlan 50 smart huawei(config)#port vlan 50 0/19 0 huawei(config)#interface vlanif 50 huawei(config-if-vlanif50)#ip address 10.50.1.10 24 huawei(config-if-vlanif50)#quit
NOTE: If the packet transmitted from the upstream port is untagged, run the native-vlan command to configure the native VLAN of the upstream port to be the same as the VLAN of the upstream port. - Configure the media and signaling IP address pools.
The media and signaling IP addresses are 10.50.1.10/24, and the gateway IP address is 10.50.1.1.
huawei(config)#voip huawei(config-voip)#ip address media 10.50.1.10 10.50.1.1 huawei(config-voip)#ip address signaling 10.50.1.10 huawei(config-voip)#quit
NOTE: When configuring the SIP interface attributes, ensure that the media and signaling IP addresses exist in the corresponding address pools.
- Configure a static route to the IMS.
The IP address of the destination network segment of the static route to the IMS is 10.10.1.0/24, and the gateway IP address is 10.50.1.1.
huawei(config)#ip route-static 10.10.1.0 255.255.0.0 10.50.1.1
- Add a SIP interface.
SIP interface 0 is added.
huawei(config)#interface sip 0 Are you sure to add the SIP interface?(y/n)[n]:y
- Configure the basic attributes of the SIP interface.
The media and signaling IP addresses of the SIP interface are 10.50.1.10/24, the signaling port ID is 5555, the transmission protocol is UDP (default setting), the IP address 1 of the primary proxy server is 10.10.1.1/24, the port ID of the primary proxy server is 5555, the IP address 1 of the secondary proxy server is 10.10.1.2/24, the port ID of the secondary proxy server is 5555, the home domain name is MA5600T/MA5603T/MA5608T.com, and the profile index is 0.
huawei(config-if-sip-0)#if-sip attribute basic media-ip 10.50.1.10 signal-ip 10.50.1.10 signal-port 5555 transfer udp primary-proxy-ip1 10.10.1.1 primary-proxy-port 5555 secondary-proxy-ip1 10.10.1.2 secondary-proxy-port 5555 home-domain MA5600T/MA5603T/MA5608T.com sipprofile-index 0 - Configure the optional attributes of the SIP interface.
The domain name of the SIP interface is huawei.com, and the phone context is +86755.
huawei(config-if-sip-0)#if-sip attribute optional mg-domain huawei.com phone-context +86755
- Reset the SIP interface.
huawei(config-if-sip-0)#reset Are you sure to reset SIP interface?(y/n)[n]:y huawei(config-if-sip-0)#quit
- Save the data.
huawei(config)#save


