add domain params to be found in user data output

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10001 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-10-13 22:20:24 +00:00
parent 493bd6a5ba
commit c728ea3455
1 changed files with 13 additions and 1 deletions

View File

@ -89,11 +89,23 @@ SWITCH_STANDARD_API(user_data_function)
if (var && val && !strcasecmp(var, key)) {
stream->write_function(stream, "%s", val);
break;
goto end;
}
}
}
if ((x_params = switch_xml_child(x_domain, container))) {
for (x_param = switch_xml_child(x_params, elem); x_param; x_param = x_param->next) {
const char *var = switch_xml_attr(x_param, "name");
const char *val = switch_xml_attr(x_param, "value");
if (var && val && !strcasecmp(var, key)) {
stream->write_function(stream, "%s", val);
goto end;
}
}
}
}
end: