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

305
[RouterA-voice] dial-program
[RouterA-voice-dial] entity 100 pots
[RouterA-voice-dial-entity100] match-template 100
[RouterA-voice-dial-entity100] line 1/0
[RouterA-voice-dial-entity100] quit
# Configure VoIP voice entity 300 to Router B.
[RouterA-voice-dial] entity 300 voip
[RouterA-voice-dial-entity300] match-template 300
[RouterA-voice-dial-entity300] address sip ip 1.1.1.2
[RouterA-voice-dial-entity300] outband sip
2. Configure Router B:
# Configure POTS voice entity 500.
<RouterB> system-view
[RouterB] voice-setup
[RouterB-voice] dial-program
[RouterB-voice-dial] entity 500 pots
[RouterB-voice-dial-entity500] match-template 500
[RouterB-voice-dial-entity500] line 1/0
[RouterB-voice-dial-entity500] quit
# Configure IVR voice entity 300 and specify node 10 as the root node.
[RouterB-voice-dial] entity 300 ivr
[RouterB-voice-dial-entity300] match-template 300
[RouterB-voice-dial-entity300] ivr-root 10
[RouterB-voice-dial-entity300] quit
[RouterB-voice-dial] quit
# Specify media resource IDs for media resource files:
{ Specify 10002 for the file cfa0:/wav/g729r8/timeout.wav
{ Specify 10003 for the file cfa0:/wav/g729r8/input_error.wav
{ Specify 10004 for the file cfa0:/wav/g729r8/bye.wav
[RouterB-voice] ivr-system
[RouterB-voice-ivr] media-file g729r8
[RouterB-voice-ivr-g729r8] set-media 10002 file cfa0:/wav/g729r8/timeout.wav
[RouterB-voice-ivr-g729r8] set-media 10003 file cfa0:/wav/g729r8/input_error.wav
[RouterB-voice-ivr-g729r8] set-media 10004 file cfa0:/wav/g729r8/bye.wav
[RouterB-voice-ivr-g729r8] quit
# Configure global error processing and timeout processing methods:
{ If the timeout value expires before the subscriber dials at Telephone A, Router B plays the audio file
timeout.wav. If the timeout value expires for four times, Router B terminates the call.
{ If the subscriber dials a wrong number at Telephone A, Router B plays the audio file input_error.wav. If the
subscriber dials wrong numbers for three times, Router B terminates the call.
[RouterB-voice-ivr] ivr-timeout repeat 4 expires 5 media-play 10002
[RouterB-voice-ivr] ivr-input-error repeat 3 media-play 10003
# Configure Service node 10: by specifying the execution order of the functions, configure the
node to play the audio file bye.wav, and terminate the call after that.