
Originally Posted by
juhanak
RFC 2617 says:
"A string to be displayed to users so they know which username and password to use. This string should contain at least the name of the host performing the authentication and might additionally indicate the collection of users who might have access. An example might be "registered_users@gotham.news.com"."
Service provider should set an unique string as a realm. On a client side nonce(received from server), realm, username and password are used to calculate the response which is then sent via new REGISTER message.
Some SIP Client implementations don't require you to set the realm value (like X-lite). These clients use incoming value (value from 401 message).
Nokia's implementation checks that received realm value (in 401 message) and the value in sip settings are equal. If values differ, SIP client won't send a new REGISTER message and registering fails..