R0106-HP MSR Router Series Voice Configuration Guide(V7)
87
3. The UA sends a REGISTER request to the registrar.
4. The registrar returns a 401/407 response, challenging the originator to provide credentials.
5. The UA sends a REGISTER request that includes credentials to the registrar.
6. The registrar returns a 200 OK response to the UA if the authentication succeeds.
Figure 34 Registration process with authentication
Configuration prerequisites
Complete the following tasks before you configure SIP credentials information:
• Configure a number template on each voice entity by using the match-template command. Bind
each voice entity to a voice interface by using the line command.
• Enable the voice entities and voice interfaces (in undo shutdown state).
Configuring SIP credentials
If the registrar provides UA authentication, configure SIP credentials on the SIP UA in the following ways:
• Use the user command in SIP view to configure global SIP credentials.
• Use the credentials command to configure SIP credentials for a SIP trunk account. For more
information about SIP trunk, see "Configuring SIP trunk."
• Us
e the user command in voice entity view to configure SIP credentials for a voice entity.
Registration with multiple registrars
A SIP UA can register with up to six registrars, and it uses the realm in the 401/407 response from a
registrar to identify the credentials to be sent to the registrar.
You can configure only one username by using the user command in SIP view or voice entity view. The
username can contain 12 credentials bindings. A binding that does not include a realm can be used to
respond to a 401/407 response that does not match any realm-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 realm, and the last binding contains no realm. If the SIP UA
receives a 401/407 response that includes a realm server2, the SIP UA responds with the username
1000 and password 1000. If the SIP UA receives a 401/407 response that includes a realm server4, the