5/12/24, 7:02 PM SIP trunk configuration examples
[x]
Configuring SIP trunk > SIP trunk configuration examples Next
SIP trunk configuration examples
Network requirements
As shown in Figure 46, configure the SIP trunk device to forward calls between the private network and public
network.
Figure 46: Network diagram
Configuration procedure
1. Configure Router A:
# Set the local number to 2000 on POTS entity 2000.
<RouterA> system-view
[RouterA] voice-setup
[RouterA-voice] dial-program
[RouterA-voice-dial] entity 2000 pots
[RouterA-voice-dial-entity2000] line 2/1/1
[RouterA-voice-dial-entity2000] match-template 2000
[RouterA-voice-dial-entity2000] quit
# Set the called number to 1000, and the destination IP address to [Link] (the address of the interface on
the SIP trunk device) on VoIP entity 1000.
[RouterA-voice-dial] entity 1000 voip
[RouterA-voice-dial-entity1000] address sip ip [Link]
[RouterA-voice-dial-entity1000] match-template 1000
2. Configure the SIP trunk device:
# Enable SIP-to-SIP calling.
[Link] 1/3
5/12/24, 7:02 PM SIP trunk configuration examples
<TG> system-view
[TG] voice-setup
[TG-voice] allow-connections sip to sip
[TG-voice] sip
# Create a SIP trunk account for phone number 2000 that uses username 2000 and password 2000 in realm
abc.
[TG-voice-sip] credentials number 2000 username 2000 password simple 2000 realm abc
# Specify the registrar [Link] for the SIP trunk account.
[TG-voice-sip] registrar 1 ip [Link]
[TG-voice-sip] quit
# Set the destination address to [Link] 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 [Link]
[TG-voice-dial-entity1] match-template 1000
[TG-voice-dial-entity1] quit
# Set the destination address to [Link] for inbound calls from public phone 1000 to private phone 2000.
[TG-voice-dial] entity 2 voip
[TG-voice-dial-entity2] address sip ip [Link]
[TG-voice-dial-entity2] match-template 2000
3. Configure Router B:
# Bind FXS interface 2/1/1 to POTS entity 1000, and set the local number to 1000 on the POTS entity.
<RouterB> system-view
[RouterB] voice-setup
[RouterB-voice] dial-program
[RouterB-voice-dial] entity 1000 pots
[RouterB-voice-dial-entity1000] line 2/1/1
[RouterB-voice-dial-entity1000] match-template 1000
[RouterB-voice-dial-entity1000] quit
# Set the called number to 2000, and the destination IP address to [Link] (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 [Link]
[RouterB-voice-dial-entity2000] match-template 2000
Verifying the configuration
# 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 [Link]:5060 1802 Online
The output shows that the private phone number 2000 has registered with the server at [Link].
[Link] 2/3
5/12/24, 7:02 PM SIP trunk configuration examples
# Execute the display voice sip call command to verify that all calls between the private network and public
network pass through the SIP trunk device. (Details not shown.)
# 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. (Details not shown.)
prev up next
Displaying and maintaining SIP trunk home Configuring call services
© Copyright 2017 Hewlett Packard Enterprise Development LP
[Link] 3/3