mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 09:58:17 +00:00
prevent exclusive hold on xml registry during visits to the phrase section
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11900 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -2277,7 +2277,7 @@ static void do_vcard(ldl_handle_t *handle, char *to, char *from, char *id)
|
||||
switch_event_add_header_string(params, SWITCH_STACK_BOTTOM, "from", from);
|
||||
switch_event_add_header_string(params, SWITCH_STACK_BOTTOM, "object", "vcard");
|
||||
|
||||
if (switch_xml_locate("directory", "domain", "name", to_host, &xml, &domain, params) != SWITCH_STATUS_SUCCESS) {
|
||||
if (switch_xml_locate("directory", "domain", "name", to_host, &xml, &domain, params, SWITCH_FALSE) != SWITCH_STATUS_SUCCESS) {
|
||||
//switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "can't find domain for [%s@%s]\n", to_user, to_host);
|
||||
goto end;
|
||||
}
|
||||
|
@@ -1653,7 +1653,7 @@ switch_status_t reconfig_sofia(sofia_profile_t *profile)
|
||||
if (!switch_strlen_zero(dname)) {
|
||||
if (!strcasecmp(dname, "all")) {
|
||||
switch_xml_t xml_root, x_domains;
|
||||
if (switch_xml_locate("directory", NULL, NULL, NULL, &xml_root, &x_domains, xml_params) == SWITCH_STATUS_SUCCESS) {
|
||||
if (switch_xml_locate("directory", NULL, NULL, NULL, &xml_root, &x_domains, xml_params, SWITCH_FALSE) == SWITCH_STATUS_SUCCESS) {
|
||||
for (x_domain_tag = switch_xml_child(x_domains, "domain"); x_domain_tag; x_domain_tag = x_domain_tag->next) {
|
||||
dname = switch_xml_attr_soft(x_domain_tag, "name");
|
||||
parse_domain_tag(profile, x_domain_tag, dname, parse, alias);
|
||||
@@ -2361,7 +2361,7 @@ switch_status_t config_sofia(int reload, char *profile_name)
|
||||
if (!switch_strlen_zero(dname)) {
|
||||
if (!strcasecmp(dname, "all")) {
|
||||
switch_xml_t xml_root, x_domains;
|
||||
if (switch_xml_locate("directory", NULL, NULL, NULL, &xml_root, &x_domains, xml_params) == SWITCH_STATUS_SUCCESS) {
|
||||
if (switch_xml_locate("directory", NULL, NULL, NULL, &xml_root, &x_domains, xml_params, SWITCH_FALSE) == SWITCH_STATUS_SUCCESS) {
|
||||
for (x_domain_tag = switch_xml_child(x_domains, "domain"); x_domain_tag; x_domain_tag = x_domain_tag->next) {
|
||||
dname = switch_xml_attr_soft(x_domain_tag, "name");
|
||||
parse_domain_tag(profile, x_domain_tag, dname, parse, alias);
|
||||
|
Reference in New Issue
Block a user