beautypg.com

H3C Technologies H3C MSR 5600 User Manual

Page 112

background image

102

[TG-voice-sip] registrar 1 ip 10.1.1.2

[TG-voice-sip] quit

# Configure the destination address as 2.1.1.2 for outbound calls from private phone 2000 to

public phone 1000.

[TG-voice] dial-program

[TG-voice-dial] entity 1 voip

[TG-voice-dial-entity1] address sip ip 2.1.1.2

[TG-voice-dial-entity1] match-template 1000

[TG-voice-dial-entity1] quit

# Configure the destination address as 1.1.1.1 for inbound calls from public phone 1000 to

private phone 2000.

[TG-voice-dial] entity 2 voip

[TG-voice-dial-entity2] address sip ip 1.1.1.1

[TG-voice-dial-entity2] match-template 2000

3.

Configure Router B:
# Specify local number 1000 on POTS entity 1000.

system-view

[RouterB] voice-setup

[RouterB-voice] dial-program

[RouterB-voice-dial] entity 1000 pots

[RouterB-voice-dial-entity1000] line 1/0

[RouterB-voice-dial-entity1000] match-template 1000

[RouterB-voice-dial-entity1000] quit

# Configure the called number as 2000, and the destination IP address as 2.1.1.1 (the address of
the interface on the SIP trunk device) on VoIP entity 2000.

[RouterB-voice-dial] entity 2000 voip

[RouterB-voice-dial-entity2000] address sip ip 2.1.1.1

[RouterB-voice-dial-entity2000] match-template 2000

4.

Verify the configuration:

a.

Display SIP trunk account information on the SIP trunk device.

[TG-voice-dial-entity2] display voice sip register-status

Number Entity Registrar Server Expires Status

------------------------------------------------------------------------------

--

2000 0 10.1.1.2:5060 1802 Online

The output shows that the private phone number 2000 has registered with the server at
10.1.1.2.

b.

Execute the display voice statistics call-active command to verify that all calls between the
private network and public network pass through the SIP trunk device.

c.

On the SIP server of the ITSP, you can view only the interface address of the SIP trunk device,
which means that the SIP trunk device can hide the information of private users.