| Step 1 |
enable
Example:
|
Enables privileged EXEC mode.
- Enter your password if prompted.
|
| Step 2 | configureterminal
Example:
Device> configure terminal
|
Enters global configuration mode.
|
| Step 3 | voice
class
uritag
Example:
Device(config)# voice class uri ab200 sip
|
Creates a voice class for matching dial peers to a SIP and enters voice URI class configuration mode.
|
| Step 4 | host
hostname-pattern
or
host {host {ipv4:
ipv4-address |
ipv6:ipv6-address |dns:dns-address |hostname-pattern
}
Example:
Device(config-voice-uri-class)# host server1
or
Device(config-voice-uri-class)# host ipv4:10.0.0.0
|
(Optional) Specifies a regular expression pattern for matching the hostname field in the SIP URI.
- This command can have a single instance only.
- You can specify up to ten instances of this command.
| Note
| You can use either the
host hostname or
host {host {ipv4:
ipv4-address |
ipv6:ipv6-address |dns:dns-address |hostname-pattern
} command.
|
|
| Step 5 | exit
Example:
Device(config-voice-uri-class)# exit
|
Enters global configuration mode.
|
| Step 6 | dial-peer
voice
tagvoip
Example:
Device(config)# dial-peer voice 6000 voip
|
Enters dial peer voice configuration mode.
|
| Step 7 | sessionprotocol
sipv2
Example:
Device(config-dial-peer)# session protocol sipv2
|
Configures SIP as the session protocol type.
|
| Step 8 | incoming
uri {
from |
request |
to |
via
tag
Example:
Device(config-dial-peer)# incoming uri via ab200
|
Specifies the voice class used to match a VoIP dial peer to the URI of an incoming call.
|
| Step 9 | end
Example:
Device(config-dial-peer)# end
|
Exits dial peer voice configuration mode and enters privileged EXEC mode.
|