Configuring the Signaling Proxy and Media Proxy on a Public Network
When the PBX is deployed on a public network, configure signaling media proxy to process and forward packets and media streams.
Context
Prerequisites
- A PBX user has been configured. For details on how to configure a PBX user, see Configuring a PBX User.
- A call prefix has been configured. For details on how to configure a call prefix, see Configuring a Call Prefix.
Configuring Interface Addresses and Address Pools
Step |
Action |
Command |
Description |
---|---|---|---|
1 |
Enter the system view. |
system-view | - |
2 |
Enter the interface view. |
interface interface-type interface-number | - |
3 |
(Optional) Bind a VPN instance to an interface. |
ip binding vpn-instance vpn-instance-name |
Before running the ip binding vpn-instance command, create a VPN instance. When you run the ip binding vpn-instance command on an interface, all Layer 3 features on the interface, such as the IP address and routing protocol, are deleted. To use these features, re-configure them. By default, no VPN instance is bound to an interface. |
4 |
Configure an Ethernet IP address. |
ip address ip-address { mask | mask-length } |
If you configure a new IP address for an interface that already has an IP address, the new IP address overwrites the old one. |
5 |
Return to the system view. |
quit | - |
6 |
Enter the voice view. |
voice | - |
7 |
Add an IP address to the signaling IP address pool. |
voip-address signalling interface interface-type interface-number { ip-address | dynamic } | To specify the ip-address parameter, ensure that an IP address has been configured for the specified interface. To specify the dynamic parameter, ensure that an IP address has been dynamically allocated to the specified interface. |
8 |
Add an IP address to the media IP address pool. |
voip-address media interface interface-type interface-number { ip-address | dynamic } | It is recommended that the media and signaling IP address pools be the same. |
9 |
(Optional) Configure a bound VPN instance. |
voip-vpn-instance vpn-instance-name | Only SIP trunk groups can be bound to VPN instances. Before running the voip-vpn-instance command, ensure that a VPN instance has been created and interfaces to which the signaling IP addresses and media IP addresses belong have been bound to the instance. By default, no VPN instance is specified to be used by voice services. |
10 |
Return to the system view. |
quit | - |
Configuring the SIP Server and signaling media proxy
Step |
Action |
Command |
Description |
---|---|---|---|
1 |
Enter the SIP server view. |
sipserver | - |
2 |
Configure the signaling IP address and signaling port number of the SIP server. |
signaling-address { ip ip-address | addr-name addr-name-value } port port-value | The signaling IP address of the SIP server must be allocated from the signaling IP address pool on the corresponding interface. |
3 |
Configure the media IP address of the SIP server. |
media-ip { ip-address | addr-name addr-name-value } | The media IP address of the SIP server must be allocated from the media IP address pool on the corresponding interface. |
4 |
Configure the URI for the SIP server. |
register-uri uri | The Uniform Resource Identifier (URI) is used for SIP user registration. |
5 |
Configure the home domain for the SIP server. |
home-domain domain | The SIP server fills this parameter into the From field in SIP messages. |
6 |
Enable signaling proxy. |
sbc signalling-proxy |
- |
7 |
Enable media proxy. |
sbc media-proxy |
- |
8 |
Reset the SIP server. |
reset | NOTE:
Resetting the SIP server requires a dozen of seconds. Wait until the system displays SIP server reset succeeds. before performing other operations; otherwise, configurations will fail. |
9 |
Save the configuration. |
save | - |
Example
- Configure interface addresses and address pools.
Set the public network address of GE0 to 172.16.2.2 and add this address to the media IP address pool and signaling IP address pool.
<Huawei> system-view [Huawei] interface gigabitethernet 0/0/0 [Huawei-GigabitEthernet0/0/0] ip address 172.16.2.2 24 [Huawei-GigabitEthernet0/0/0] quit [Huawei] voice [Huawei-voice] voip-address media interface gigabitethernet 0/0/0 172.16.2.2 [Huawei-voice] voip-address signalling interface gigabitethernet 0/0/0 172.16.2.2 [Huawei-voice] quit
- Configure the SIP server and signaling media proxy.
Configure the SIP server, and enable the signaling proxy and media proxy.
[Huawei-voice] sipserver [Huawei-voice-sipserver] signalling-address ip 172.16.2.2 port 5060 [Huawei-voice-sipserver] media-ip 172.16.2.2 [Huawei-voice-sipserver] register-uri abcd.com [Huawei-voice-sipserver] home-domain abcd.com [Huawei-voice-sipserver] sbc signalling-proxy enable [Huawei-voice-sipserver] sbc media-proxy enable [Huawei-voice-sipserver] reset [Huawei-voice-sipserver] SIP server reset succeeds. [Huawei-voice-sipserver] save
Verification
Action |
Command |
Expected Result |
---|---|---|
Verify the configuration of a SIP server. |
display voice sipserver | [Huawei]display voice sipserver Config Signalling IP : 172.16.2.2 Signalling IP address name : Signalling domain : DDNS client name : Signalling port : 5060 Media IP : 172.16.2.2 Media IP address name : Register URI : abcd.com Home domain : abcd.com |