mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 09:58:17 +00:00
more changes to sofia to make better use of the directories
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5043 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -1176,6 +1176,13 @@ SWITCH_DECLARE(switch_status_t) switch_xml_locate(const char *section,
|
||||
SWITCH_DECLARE(switch_status_t) switch_xml_locate_domain(char *domain_name, char *params, switch_xml_t *root, switch_xml_t *domain)
|
||||
{
|
||||
*domain = NULL;
|
||||
char my_params[512];
|
||||
|
||||
if (!params) {
|
||||
snprintf(my_params, sizeof(my_params), "domain=%s", domain_name);
|
||||
params = my_params;
|
||||
}
|
||||
|
||||
return switch_xml_locate("directory", "domain", "name", domain_name, root, domain, params);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user