]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add clarification to warning message
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 22 Jul 2008 15:07:16 +0000 (15:07 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 22 Jul 2008 15:07:16 +0000 (15:07 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9131 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_reg.c

index 9f58f582fcf7ce63bb3aec9a62fbb40cf93268f8..3d30800d4ce4e74bbdc92931f37e3134328a9a10 100644 (file)
@@ -1244,7 +1244,11 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile, sip_authorization_t co
 
        if (switch_xml_locate_user("id", switch_strlen_zero(username) ? "nobody" : username, 
                                                           domain_name, ip, &xml, &domain, &user, params) != SWITCH_STATUS_SUCCESS) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "can't find user [%s@%s]\n", username, domain_name);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "can't find user [%s@%s]\n"
+                                                 "You must define a domain called '%s' in your directory and add a user with the id=\"%s\" attribute\n"
+                                                 "and you must configure your device to use the proper domain in it's authentication credentials.\n"
+                                                 , username, domain_name, domain_name, username);
+
                ret = AUTH_FORBIDDEN;
                goto end;
        }