[Freeswitch-svn] [commit] r10001 - freeswitch/trunk/src/mod/applications/mod_commands

Freeswitch SVN mikej at freeswitch.org
Mon Oct 13 18:20:25 EDT 2008


Author: mikej
Date: Mon Oct 13 18:20:24 2008
New Revision: 10001

Modified:
   freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c

Log:
add domain params to be found in user data output

Modified: freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c	Mon Oct 13 18:20:24 2008
@@ -89,11 +89,23 @@
 
 				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:



More information about the Freeswitch-svn mailing list