mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-08 20:43:51 +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:
1 parent
d038cdbfdb
commit
01f9b3f1c8
8 files changed
+282
-190
No files matched your search
@@ -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