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:
Anthony Minessale
2007-04-30 20:35:35 +00:00
parent d038cdbfdb
commit 01f9b3f1c8
8 changed files with 282 additions and 190 deletions

View File

@@ -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);
}