R2511-HP MSR Router Series Voice Configuration Guide(V5)

213
[TG-voice] sip-trunk enable
# Create SIP server group 1. Add a SIP server into the server group: the index and the IPv4 address
of the server are 1 and 10.1.1.2 respectively.
[TG-voice] server-group 1
[TG-voice-group1] address 1 ipv4 10.1.1.2
[TG-voice-group1] quit
# Create SIP trunk account 1 with the host user name 2000, and associate the account with SIP
server group 1.
[TG-voice] sip-trunk account 1
[TG-voice-account-1] assign contact-user 2000
[TG-voice-account-1] registrar server-group 1
[TG-voice-account-1] register enable
[TG-voice-account-1] quit
# Configure the call route for the outbound calls from private network user 2000 to public network
user 1000 by binding SIP server group 1 to VoIP voice entity 1.
[TG-voice] dial-program
[TG-voice-dial] entity 1 voip
[TG-voice-dial-entity1] address sip server-group 1
[TG-voice-dial-entity1] bind sip-trunk account 1
[TG-voice-dial-entity1] match-template 1000
[TG-voice-dial-entity1] quit
# Configure the call route for the inbound calls from public network user 1000 to private network
user 2000. Configure the IP address of the peer end as 1.1.1.1, which is the address of the
interface on Router A.
[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 1000 as a local number of POTS voice entity 2000.
<RouterB> 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 VoIP voice entity 2000. The called number is 2000. Specify to use the SIP proxy
server for SIP message exchange.
[RouterB-voice-dial] entity 2000 voip
[RouterB-voice-dial-entity2000] address sip proxy
[RouterB-voice-dial-entity2000] match-template 2000
[RouterB-voice-dial-entity2000] quit
[RouterB-voice-dial] quit
# Configure the IPv4 address of the registrar as 10.1.1.2 and enable the registrar.
[RouterB-voice] sip
[RouterB-voice-sip] registrar ipv4 10.1.1.2
[RouterB-voice-sip] register-enable on