remove dirty hack to get around a bug in sofia which has now been fixed. And fix registering to pointers isn't allowed

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12324 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West
2009-02-27 16:03:22 +00:00
parent a58bdeac21
commit f5ade7cfc1
2 changed files with 7 additions and 5 deletions
+7
View File
@@ -1552,6 +1552,13 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile, sip_authorization_t co
ret = AUTH_FORBIDDEN;
goto end;
} else {
const char *type = switch_xml_attr(user, "type");
if (type && !strcasecmp(type, "pointer")) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Cant register a pointer.\n");
ret = AUTH_FORBIDDEN;
goto end;
}
}
if (!(mailbox = (char *) switch_xml_attr(user, "mailbox"))) {