Modes for Dial-Peer Configuration

You can manipulate a dial peer by configuring relevant commands globally, at a dial-peer level, or in a voice class that is then applied to a dial peer.

How to Configure Modes for Dial-Peer Configuration

Entering Dial-Peer Configuration Mode

SUMMARY STEPS

  1. enable
  2. configure terminal
  3. dial-peer voice number voip
  4. Enter a command to configure dial-peer behavior.
  5. exit

DETAILED STEPS

  Command or Action Purpose
Step 1

enable

Example:


Device> enable

Enables privileged EXEC mode. Enter your password if prompted.

Step 2

configure terminal

Example:


Device# configure terminal

Enters global configuration mode.

Step 3

dial-peer voice number voip

Example:

 
Device(config)# dial-peer voice 2 voip

Enters dial-peer configuration mode for the specified VoIP dial peer.

Step 4

Enter a command to configure dial-peer behavior.

Step 5

exit

Example:


Device(config-dial-peer)# exit

Exits dial-peer configuration mode and returns to privileged EXEC mode.

Entering Global VoIP Configuration Mode

SUMMARY STEPS

  1. enable
  2. configure terminal
  3. voice service voip
  4. Enter a command to configure dial-peer behavior.
  5. exit

DETAILED STEPS

  Command or Action Purpose
Step 1

enable

Example:


Device> enable

Enables privileged EXEC mode. Enter your password if prompted.

Step 2

configure terminal

Example:


Device# configure terminal

Enters global configuration mode.

Step 3

voice service voip

Example:


Device(config)# voice service voip

Enters global VoIP configuration mode.

Step 4

Enter a command to configure dial-peer behavior.

Step 5

exit

Example:


Device(config-voi-serv)# exit

Exits global VoIP configuration current mode.

Using Voice Classes to Modify Dial-Peer Behavior

SUMMARY STEPS

  1. enable
  2. configure terminal
  3. voice class media tag
  4. Enter a command to configure dial-peer behavior.
  5. dial-peer voice tag voip
  6. voice class media tag
  7. exit

DETAILED STEPS

  Command or Action Purpose
Step 1

enable

Example:


Device> enable

Enables privileged EXEC mode. Enter your password if prompted.

Step 2

configure terminal

Example:


Device# configure terminal

Enters global configuration mode.

Step 3

voice class media tag

Example:


Device(config)# voice class media 1

Enters voice-class configuration mode and assign an identification tag for a media voice class.

Step 4

Enter a command to configure dial-peer behavior.

Step 5

dial-peer voice tag voip

Example:


Device(config-class)# dial-peer voice 2 voip

Enters dial-peer configuration mode for the dial peer of your choice. You will apply the voice class on this dial peer.

Step 6

voice class media tag

Example:


Device(config-dial-peer)# voice class media 1

Applies the voice class to this dial peer. The behavior defined in the voice class is now applicable to the dial peer.

Step 7

exit

Example:


Device(config-dial-peer)# exit

Exit dial-peer configuration mode and returns to privileged EXEC mode.