]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
crienzo's hack for OSX
authorMichael S Collins <msc@freeswitch.org>
Fri, 6 Jan 2012 01:53:29 +0000 (17:53 -0800)
committerMichael S Collins <msc@freeswitch.org>
Fri, 6 Jan 2012 01:53:29 +0000 (17:53 -0800)
src/mod/applications/mod_httapi/mod_httapi.c

index 5ae74676fa544945c4a047c6057946bdb7db8681..8bd11ac470ab02a197a72203685e609e69d2221d 100644 (file)
@@ -1480,8 +1480,8 @@ static switch_status_t do_config(void)
                profile->perms.dial.enabled = 1;
 
                if ((tag = switch_xml_child(profile_tag, "conference"))) {
-                       char *var = (char *) switch_xml_attr_soft(param, "name");
-                       char *val = (char *) switch_xml_attr_soft(param, "value");
+                       char *var = (char *) switch_xml_attr_soft(tag, "name");
+                       char *val = (char *) switch_xml_attr_soft(tag, "value");
 
                        if (!strcasecmp(var, "default-profile")) {
                                profile->conference_params.use_profile = switch_core_strdup(globals.pool, val);
@@ -1489,8 +1489,8 @@ static switch_status_t do_config(void)
                }
 
                if ((tag = switch_xml_child(profile_tag, "dial"))) {
-                       char *var = (char *) switch_xml_attr_soft(param, "name");
-                       char *val = (char *) switch_xml_attr_soft(param, "value");
+                       char *var = (char *) switch_xml_attr_soft(tag, "name");
+                       char *val = (char *) switch_xml_attr_soft(tag, "value");
 
                        if (!strcasecmp(var, "context")) {
                                profile->dial_params.context = switch_core_strdup(globals.pool, val);