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:
parent
493bd6a5ba
commit
c728ea3455
|
@ -89,11 +89,23 @@ SWITCH_STANDARD_API(user_data_function)
|
||||||
|
|
||||||
if (var && val && !strcasecmp(var, key)) {
|
if (var && val && !strcasecmp(var, key)) {
|
||||||
stream->write_function(stream, "%s", val);
|
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:
|
end:
|
||||||
|
|
Loading…
Reference in New Issue