char outbound_count[80] = "";
callback_t cbt = { 0 };
char *sql = NULL;
- char *domain_name = NULL;
-
if (!globals.running) {
return NULL;
}
node->name = switch_core_strdup(node->pool, name);
if (!strchr(name, '@')) {
- domain_name = switch_core_get_domain(SWITCH_TRUE);
- node->domain_name = switch_core_strdup(node->pool, domain_name);
+ node->domain_name = switch_core_strdup(node->pool, switch_core_get_domain(SWITCH_FALSE));
}
for (x = 0; x < MAX_PRI; x++) {
globals.nodes = node;
switch_mutex_unlock(globals.mutex);
- switch_safe_free(domain_name);
-
return node;
}