R0106-HP MSR Router Series Voice Configuration Guide(V7)

88
SIP UA responds with the username 1000 and password 3000 because no credentials binding contains
the realm server4.
Credentials selection for a phone number that exists on multiple voice entities
Upon receiving a 401/407 response for a phone number that exists on multiple voice entities, the SIP UA
considers the phone number to belong to the voice entity with the smallest ID. The SIP UA selects the
credentials for the phone number in the following order:
1. Credentials on the voice entity with the smallest ID.
2. Credentials configured by using the credentials command.
3. Credentials configured in SIP view.
The SIP UA always uses the matching credentials for the phone number even if a voice entity that has a
higher match priority is added. If no matching credentials are found, the SIP UA fails to register the
phone number.
For example, the registrar maintains the username abcd, password 1234, and domain name abc for the
phone number 1000. The SIP UA has the following settings for the phone number 1000:
POTS entity 1 maintains the username abcd, password 1234, and domain name aaa for the phone
number 1000.
<Sysname> system-view
[Sysname] voice-setup
[Sysname-voice] dial-program
[Sysname-voice-dial] entity 1 pots
[Sysname-voice-dial-entity1] match-template 1000
[Sysname-voice-dial-entity1] user abcd password simple 1234 realm aaa
POTS entity 2 maintains the username abcd, password 1234, and domain name abc for the phone
number 1000.
<Sysname> system-view
[Sysname] voice-setup
[Sysname-voice] dial-program
[Sysname-voice-dial] entity 2 pots
[Sysname-voice-dial-entity2] match-template 1000
[Sysname-voice-dial-entity2] user abcd password simple 1234 realm abc
The SIP trunk account maintains the username abcd, password 1234, and domain name abc for the
phone number 1000.
<Sysname> system-view
[Sysname] voice-setup
[Sysname-voice] sip
[Sysname-voice-sip] credentials number 1000 username abcd password simple 1234 realm
abc
The global SIP credentials information includes the username abcd, password 1234, and domain
name abc.
<Sysname> system-view
[Sysname] voice-setup
[Sysname-voice] sip
[Sysname-voice-sip] user abcd password simple 1234 realm abc
Upon receiving a 401/407 response for the phone number 1000, the SIP UA considers the phone
number to belong to POTS entity 1. The SIP UA selects the credentials on POTS entity 1 because POTS
entity 1 has a smaller ID, but the credentials fail the authentication. Then the SIP UA selects the credentials