]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix missing arg in alias table
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 4 Dec 2009 23:05:37 +0000 (23:05 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 4 Dec 2009 23:05:37 +0000 (23:05 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15798 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_console.c

index 8abf633a0c98244dfd5fb1b764dc56fcbb1c79fa..431f064b2d30faccaad3d296598574f69d3dd540 100644 (file)
@@ -723,7 +723,7 @@ SWITCH_DECLARE(switch_status_t) switch_console_set_alias(const char *string)
                                sql = switch_mprintf("delete from aliases where alias='%q' and hostname='%q'", argv[1], switch_core_get_variable("hostname"));
                                switch_cache_db_persistant_execute(db, sql, 5);
                                switch_safe_free(sql);
-                               sql = switch_mprintf("insert into aliases (sticky, alias, command, hostname) values (0, '%q','%q')", 
+                               sql = switch_mprintf("insert into aliases (sticky, alias, command, hostname) values (0, '%q','%q','%q')", 
                                                                         argv[1], argv[2], switch_core_get_variable("hostname"));
                                switch_cache_db_persistant_execute(db, sql, 5);
                                status = SWITCH_STATUS_SUCCESS;