[Freeswitch-svn] [commit] r6567 - freeswitch/trunk/src/mod/xml_int/mod_xml_rpc

Freeswitch SVN anthm at freeswitch.org
Fri Dec 7 11:58:19 EST 2007


Author: anthm
Date: Fri Dec  7 11:58:19 2007
New Revision: 6567

Modified:
   freeswitch/trunk/src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c

Log:
update

Modified: freeswitch/trunk/src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c
==============================================================================
--- freeswitch/trunk/src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c	(original)
+++ freeswitch/trunk/src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c	Fri Dec  7 11:58:19 2007
@@ -183,6 +183,19 @@
 				
 				box = switch_xml_attr_soft(x_user, "mailbox");
 				
+                for (x_param = switch_xml_child(x_domain, "param"); x_param; x_param = x_param->next) {
+                    const char *var = switch_xml_attr_soft(x_param, "name");
+                    const char *val = switch_xml_attr_soft(x_param, "value");
+					
+                    if (!strcasecmp(var, "password")) {
+                        mypass1 = val;
+                    } else if (!strcasecmp(var, "vm-password")) {
+                        mypass2 = val;
+                    } else if (!strncasecmp(var, "http-", 5)) {
+						ResponseAddField(r, (char *)var, (char *)val);
+                    } 
+				}
+
 				if (!(x_params = switch_xml_child(x_user, "params"))) {
 					goto authed;
                 }



More information about the Freeswitch-svn mailing list