[Asterisk-cvs] asterisk/apps app_voicemail.c,1.34,1.35

markster at lists.digium.com markster at lists.digium.com
Thu Nov 13 17:55:15 CST 2003


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv2355/apps

Modified Files:
	app_voicemail.c 
Log Message:
If no vm box, go to 101 if appropriate (bug #489)


Index: app_voicemail.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_voicemail.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- app_voicemail.c	13 Nov 2003 05:46:01 -0000	1.34
+++ app_voicemail.c	14 Nov 2003 00:21:31 -0000	1.35
@@ -1235,8 +1235,12 @@
 		} else
 			ast_log(LOG_WARNING, "No format for saving voicemail?\n");					
 		free_user(vmu);
-	} else
+	} else {
 		ast_log(LOG_WARNING, "No entry in voicemail config file for '%s'\n", ext);
+			/*Send the call to n+101 priority, where n is the current priority*/
+			if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->callerid))
+				chan->priority+=100;
+	}
 	/* Leave voicemail for someone */
 	manager_event(EVENT_FLAG_CALL, "MessageWaiting", "Mailbox: %s\r\nWaiting: %d\r\n", ext, ast_app_has_voicemail(ext));
 	return res;




More information about the svn-commits mailing list