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

307
<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
[RouterB-voice-dial] quit
# Configure IVR voice entity 300 and specify node 1 as the root node.
[RouterB-voice-dial] entity 300 ivr
[RouterB-voice-dial-entity300] match-template 300
[RouterB-voice-dial-entity300] ivr-root 1
[RouterB-voice-dial-entity300] quit
[RouterB-voice-dial] quit
# Specify media resource IDs for media resource files:
{ Specify 10001 for the file cfa0:/wav/g729r8/welcome.wav
{ 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
{ Specify 10005 for the file cfa0:/wav/g729r8/call.wav
[RouterB-voice] ivr-system
[RouterB-voice-ivr] media-file g729r8
[RouterB-voice-ivr-g729r8] set-media 10001 file cfa0:/wav/g729r8/welcome.wav
[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] set-media 10005 file cfa0:/wav/g729r8/call.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 Jump node 1 (the root node):
{ After the IVR access number 300 is matched, Router B plays the audio file welcome.wav.
{ If the subscriber press the * key at Telephone A, the call jumps to node 20; if the subscriber presses the # key
at Telephone A, the call jumps to node 10.
[RouterB-voice-ivr] node 1 jump
[RouterB-voice-ivr-node1] user-input # goto-node 10
[RouterB-voice-ivr-node1] user-input * goto-node 20
[RouterB-voice-ivr-node1] media-play 10001 force
[RouterB-voice-ivr-node1] quit