[asterisk-commits] [svn-commits] mmichelson: branch jrothenberger/asterisk-urgent r106495 - /team/jrothenberge...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Mar 6 17:01:48 CST 2008


Author: mmichelson
Date: Thu Mar  6 17:01:48 2008
New Revision: 106495

URL: http://svn.digium.com/view/asterisk?view=rev&rev=106495
Log:
Removing an unneeded ast_strlen_zero call. The flag will never be NULL, and if it
is zero-length, then it will be impossible to set a message as urgent. I found this
when trying to send a voicemail from VoiceMailMain to another box.


Modified:
    team/jrothenberger/asterisk-urgent/apps/app_voicemail.c

Modified: team/jrothenberger/asterisk-urgent/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/team/jrothenberger/asterisk-urgent/apps/app_voicemail.c?view=diff&rev=106495&r1=106494&r2=106495
==============================================================================
--- team/jrothenberger/asterisk-urgent/apps/app_voicemail.c (original)
+++ team/jrothenberger/asterisk-urgent/apps/app_voicemail.c Thu Mar  6 17:01:48 2008
@@ -9523,7 +9523,7 @@
 		case '4':
 			if (outsidecaller) {  /* only mark vm messages */
 				/* Mark Urgent */
-				if (!ast_strlen_zero(flag) && strcmp(flag, "URGENT")) {
+				if (strcmp(flag, "URGENT")) {
 					ast_verbose(VERBOSE_PREFIX_3 "marking message as URGENT\n");
 					res = ast_play_and_wait(chan, "vm-marked-urgent");
 					strcpy(flag, "URGENT");


_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

svn-commits mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/svn-commits





More information about the asterisk-commits mailing list