git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12324
d0543943-73ff-0310-b7d9-
9358b9ac24b2
}
}
- /* dirty hack to avoid race condition in the library */
- if (status == 200 || status == 183) {
- switch_yield(100);// printf("Avoiding Segfault!!!\n");
- }
-
if (switch_channel_test_flag(channel, CF_PROXY_MODE) || switch_channel_test_flag(channel, CF_PROXY_MEDIA)) {
if (!sofia_test_flag(tech_pvt, TFLAG_SENT_UPDATE)) {
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"))) {