]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3613 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 18 Oct 2011 13:21:00 +0000 (08:21 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 18 Oct 2011 13:21:06 +0000 (08:21 -0500)
src/mod/applications/mod_valet_parking/mod_valet_parking.c

index 23196c5226ab135e6a3f707bcd133cf5c7067635..950ceb481c440a7143bde87b304b292f227a2274 100644 (file)
@@ -447,7 +447,6 @@ SWITCH_STANDARD_API(valet_info_function)
                const void *i_var;
                void *i_val;
                char *i_ext;
-               char *i_uuid;
 
                switch_hash_this(hi, &var, NULL, &val);
                name = (char *) var;
@@ -459,10 +458,12 @@ SWITCH_STANDARD_API(valet_info_function)
                stream->write_function(stream, "  <lot name=\"%s\">\n", name);
 
                for (i_hi = switch_hash_first(NULL, lot->hash); i_hi; i_hi = switch_hash_next(i_hi)) {
+                       valet_token_t *token;
+
                        switch_hash_this(i_hi, &i_var, NULL, &i_val);
                        i_ext = (char *) i_var;
-                       i_uuid = (char *) i_val;
-                       stream->write_function(stream, "    <extension uuid=\"%s\">%s</extension>\n", i_uuid, i_ext);
+                       token = (valet_token_t *) i_val;
+                       stream->write_function(stream, "    <extension uuid=\"%s\">%s</extension>\n", token->uuid, i_ext);
                }
                stream->write_function(stream, "  </lot>\n");
        }