R0106-HP MSR Router Series Voice Command Reference(V7)
142
simple: Specifies a plaintext password.
password: Specifies a case-sensitive password. If simple is specified, the password must be a string of 1
to 16 characters. If cipher is specified, the password must be a string of 1 to 53 characters.
realm realm: Specifies a realm, which is a string of 1 to 50 case-sensitive characters. If no realm is
specified, the credentials can be used to respond to any registrars.
Usage guidelines
A SIP UA can register with up to six registrars, and it uses the domain name in the 401/407 response
from a registrar to identify the credentials to be sent to the registrar.
You can configure only one username with the user command in SIP view or voice entity view. The
username can contain 12 credentials bindings. A binding that does not include a domain name can be
used to respond to a 401/407 response that does not match any domain name-included binding. The
following example configures four credentials bindings:
[Sysname-voice-dial-entity100] user 1000 password simple 1000 realm server1
[Sysname-voice-dial-entity100] user 1000 password simple 1000 realm server2
[Sysname-voice-dial-entity100] user 1000 password simple 2000 realm server3
[Sysname-voice-dial-entity100] user 1000 password simple 3000
The first three bindings each contain a domain name, and the last binding contains no domain name. If
the SIP UA receives a 401/407 response that includes a domain name server2, the SIP UA responds with
the username 1000 and password 1000. If the SIP UA receives a 401/407 response that includes a
domain name server4, the SIP UA responds with the username 1000 and password 3000 because no
credentials binding contains the domain name server4.
Examples
# Configure global SIP credentials that include username abcd and plaintext password 1234 .
<Sysname> system-view
[Sysname] voice-setup
[Sysname-voice] sip
[Sysname-voice-sip] user abcd password simple 1234
# Configure SIP credentials that include username abcd, plaintext password 1234, and realm abc for
POTS entity 100.
<Sysname> system-view
[Sysname] voice-setup
[Sysname-voice] dial-program
[Sysname-voice-dial] entity 100 pots
[Sysname-voice-dial-entity100] user abcd password simple 1234 realm abc
Related commands
Registrar
voice-class sip bind
Use voice-class sip bind to configure source interface binding for outgoing SIP messages or media
packets on a VoIP entity.
Use undo voice-class sip bind to remove the configured binding.
Syntax
voice-class sip bind { control | media } source interface interface-type interface-number