R2511-HP MSR Router Series Voice Command Reference(V5)

246
any of the above mentioned three header fields, the host name in the From header field of the INVITE
message is used as the source host name.
You can specify only one source host name prefix based match rule for a VoIP voice entity. If you execute
match source host-prefix command multiple times, the new configuration overwrites the existing one.
Examples
# Specify that calls with a source host name starting with Bil are permitted on VoIP voice entity 1.
<Sysname> system-view
[Sysname] voice-setup
[Sysname-voice] dial-program
[Sysname-voice-dial] entity 1 voip
[Sysname-voice-dial-entity1] match source host-prefix bil
match destination host-prefix
Use match destination host-prefix to match a destination host name prefix for a VoIP voice entity.
Use undo match destination host-prefix to delete the call match rule that specifies the prefix of
destination host name.
Syntax
match destination host-prefix host-prefix
undo match destination host-prefix
Default
No prefix of destination host name is specified as a call match rule for a VoIP voice entity. In other words,
all destination host names can be matched.
Views
VoIP voice entity view
Default command level
2: System level
Parameters
Host-prefix: Destination host name prefix. The value consists of 1 to 31 characters, which are not
case-sensitive and can include letters, digits, underlines (_), hyphens (-), asterisk (*), and dots (.). An
asterisk represents a character string of any length, for example, b*y can match the destination host
names boy, boundary, and so on.
Usage guidelines
The specified prefix of destination host name is used to match against the destination host names of calls.
The host name in the To header field of an INVITE message received by the SIP trunk device is used as
the destination host name.
You can specify only one destination host name prefix based match rule for a VoIP voice entity. If you
execute match destination host-prefix command multiple times, the new configuration overwrites the
existing one.
Examples
# Specify that calls with a destination host name starting with ali are permitted on VoIP voice entity 1.
<Sysname> system-view