Revision
15798
Author
anthm
Date
2009-12-04 17:05:37 -0600 (Fri, 04 Dec 2009)

Log Message

fix missing arg in alias table

Modified Paths

Diff

Modified: freeswitch/trunk/src/switch_console.c (15797 => 15798)


--- freeswitch/trunk/src/switch_console.c	2009-12-04 22:06:03 UTC (rev 15797)
+++ freeswitch/trunk/src/switch_console.c	2009-12-04 23:05:37 UTC (rev 15798)
@@ -723,7 +723,7 @@
 				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;