Don't do SIP contact/route DNS if we're not using the result.
[asterisk/asterisk.git] / apps / app_url.c
index a36daa2..00ea720 100644 (file)
  * 
  * \ingroup applications
  */
+
+/*** MODULEINFO
+       <support_level>extended</support_level>
+ ***/
  
 #include "asterisk.h"
 
@@ -97,7 +101,7 @@ static int sendurl_exec(struct ast_channel *chan, const char *data)
        struct ast_frame *f;
        char *status = "FAILURE";
        char *opts[0];
-       struct ast_flags flags;
+       struct ast_flags flags = { 0 };
        AST_DECLARE_APP_ARGS(args,
                AST_APP_ARG(url);
                AST_APP_ARG(options);
@@ -139,7 +143,7 @@ static int sendurl_exec(struct ast_channel *chan, const char *data)
                                break;
                        }
                        if (f->frametype == AST_FRAME_HTML) {
-                               switch(f->subclass) {
+                               switch (f->subclass.integer) {
                                case AST_HTML_LDCOMPLETE:
                                        res = 0;
                                        ast_frfree(f);
@@ -154,7 +158,7 @@ static int sendurl_exec(struct ast_channel *chan, const char *data)
                                        goto out;
                                        break;
                                default:
-                                       ast_log(LOG_WARNING, "Don't know what to do with HTML subclass %d\n", f->subclass);
+                                       ast_log(LOG_WARNING, "Don't know what to do with HTML subclass %d\n", f->subclass.integer);
                                };
                        }
                        ast_frfree(f);