mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-07 21:44:51 +00:00
tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9977 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
f61698e118
commit
92d870d237
@ -256,15 +256,15 @@ SWITCH_STANDARD_API(module_exists_function)
|
|||||||
|
|
||||||
SWITCH_STANDARD_API(domain_exists_function)
|
SWITCH_STANDARD_API(domain_exists_function)
|
||||||
{
|
{
|
||||||
switch_xml_t root, domain;
|
switch_xml_t root = NULL, domain = NULL;
|
||||||
|
|
||||||
if (!switch_strlen_zero(cmd)) {
|
if (!switch_strlen_zero(cmd)) {
|
||||||
if (switch_xml_locate_domain(cmd, NULL, &root, &domain) == SWITCH_STATUS_SUCCESS) {
|
if (switch_xml_locate_domain(cmd, NULL, &root, &domain) == SWITCH_STATUS_SUCCESS) {
|
||||||
stream->write_function(stream, "true");
|
stream->write_function(stream, "true");
|
||||||
|
switch_xml_free(root);
|
||||||
} else {
|
} else {
|
||||||
stream->write_function(stream, "false");
|
stream->write_function(stream, "false");
|
||||||
}
|
}
|
||||||
switch_xml_free(root);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user