[asterisk-commits] mogorman: branch anthonyl/voicemail-odbc r49353 - /team/anthonyl/voicemail-od...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Jan 3 16:18:41 MST 2007


Author: mogorman
Date: Wed Jan  3 17:18:40 2007
New Revision: 49353

URL: http://svn.digium.com/view/asterisk?view=rev&rev=49353
Log:
keep depth of path consistant with rest of app_voicemail

Modified:
    team/anthonyl/voicemail-odbc/apps/app_voicemail.c

Modified: team/anthonyl/voicemail-odbc/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/team/anthonyl/voicemail-odbc/apps/app_voicemail.c?view=diff&rev=49353&r1=49352&r2=49353
==============================================================================
--- team/anthonyl/voicemail-odbc/apps/app_voicemail.c (original)
+++ team/anthonyl/voicemail-odbc/apps/app_voicemail.c Wed Jan  3 17:18:40 2007
@@ -1943,11 +1943,11 @@
 {
 	int res;
 	char fn[256];
-	char dest[1024];
+	char dest[256];
 
 	snprintf(fn, sizeof(fn), "%s%s/%s/greet", VM_SPOOL_DIR, context, ext);
 
-	if (!(res = create_dirpath(dest,1024,context,ext,"greet"))) {
+	if (!(res = create_dirpath(dest,256,context,ext,"greet"))) {
 		ast_log(LOG_WARNING, "Failed to make directory(%s)\n", fn);
 		return -1;
 	}
@@ -2399,7 +2399,7 @@
 	int ouseexten = 0;
 	char date[256];
 	char dir[256], tmpdir[260];
-	char dest[1024];
+	char dest[256];
 	char fn[256];
 	char prefile[256]="";
 	char tempfile[256]="";
@@ -2443,14 +2443,14 @@
 	else
 		ast_copy_string(ext_context, vmu->context, sizeof(ext_context));
 	if (ast_test_flag(options, OPT_BUSY_GREETING)) {
-		res = create_dirpath(dest, 1024, vmu->context, ext, "busy");
+		res = create_dirpath(dest, 256, vmu->context, ext, "busy");
 		snprintf(prefile, sizeof(prefile), "%s%s/%s/busy", VM_SPOOL_DIR, vmu->context, ext);
 	} else if (ast_test_flag(options, OPT_UNAVAIL_GREETING)) {
-		res = create_dirpath(dest, 1024, vmu->context, ext, "unavail");
+		res = create_dirpath(dest, 256, vmu->context, ext, "unavail");
 		snprintf(prefile, sizeof(prefile), "%s%s/%s/unavail", VM_SPOOL_DIR, vmu->context, ext);
 	}
 	snprintf(tempfile, sizeof(tempfile), "%s%s/%s/temp", VM_SPOOL_DIR, vmu->context, ext);
-	if (!(res = create_dirpath(dest, 1024, vmu->context, ext, "temp"))) {
+	if (!(res = create_dirpath(dest, 256, vmu->context, ext, "temp"))) {
 		ast_log(LOG_WARNING, "Failed to make directory (%s)\n", tempfile);
 		return -1;
 	}
@@ -4809,7 +4809,7 @@
 	int duration = 0;
 	char prefile[256]="";
 	unsigned char buf[256];
-	char dest[1024];
+	char dest[256];
 	int bytes=0;
 
 	if (adsi_available(chan))
@@ -4822,7 +4822,7 @@
 		adsi_transmit_message(chan, buf, bytes, ADSI_MSG_DISPLAY);
 	}
 	snprintf(prefile,sizeof(prefile), "%s%s/%s/temp", VM_SPOOL_DIR, vmu->context, vms->username);
-	if (!(res = create_dirpath(dest, 1024, vmu->context, vms->username, "temp"))) {
+	if (!(res = create_dirpath(dest, 256, vmu->context, vms->username, "temp"))) {
 		ast_log(LOG_WARNING, "Failed to create directory (%s).\n", prefile);
 		return -1;
 	}



More information about the asterisk-commits mailing list