From c728ea345519190a020f6641b711115a599b9b26 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 13 Oct 2008 22:20:24 +0000 Subject: [PATCH] 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 --- src/mod/applications/mod_commands/mod_commands.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index b29eab3d05..1f4473f9df 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -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: