mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-24 12:14:13 +00:00
FS-3585 --resolve
This commit is contained in:
1 parent
607c112fb7
commit
7b2c563e61
1 file changed
+8
-4
@@ -4203,10 +4203,14 @@ switch_status_t config_sofia(int reload, char *profile_name)
|
||||
}
|
||||
} else if (!strcasecmp(var, "alias")) {
|
||||
sip_alias_node_t *node;
|
||||
if ((node = switch_core_alloc(profile->pool, sizeof(*node)))) {
|
||||
if ((node->url = switch_core_strdup(profile->pool, val))) {
|
||||
node->next = profile->aliases;
|
||||
profile->aliases = node;
|
||||
if (zstr(val)) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Alias Param has no data...\n");
|
||||
} else {
|
||||
if ((node = switch_core_alloc(profile->pool, sizeof(*node)))) {
|
||||
if ((node->url = switch_core_strdup(profile->pool, val))) {
|
||||
node->next = profile->aliases;
|
||||
profile->aliases = node;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (!strcasecmp(var, "dialplan")) {
|
||||
|
||||
Reference in new issue
Block a user