Configuring sip credentials, Registration with multiple registrars – H3C Technologies H3C MSR 5600 User Manual
Page 92
82
•
Configure a number template on each voice entity with the match-template command and bind
each voice entity to a voice subscriber line with the line command.
•
Enable the voice entities and voice subscriber lines (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
•
Use 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 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.
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 belongs to the voice entity with the smallest ID and selects the credentials for
the phone number in the following order:
1.
Credentials on the voice entity with the smallest ID.
2.
Credentials configured with 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] voice-setup
[Sysname-voice] dial-program