[asterisk-commits] oej: branch oej/minivoicemail r58096 - /team/oej/minivoicemail/apps/app_minivm.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Mar 6 14:09:20 MST 2007


Author: oej
Date: Tue Mar  6 15:09:19 2007
New Revision: 58096

URL: http://svn.digium.com/view/asterisk?view=rev&rev=58096
Log:
Fix some bugs

Modified:
    team/oej/minivoicemail/apps/app_minivm.c

Modified: team/oej/minivoicemail/apps/app_minivm.c
URL: http://svn.digium.com/view/asterisk/team/oej/minivoicemail/apps/app_minivm.c?view=diff&rev=58096&r1=58095&r2=58096
==============================================================================
--- team/oej/minivoicemail/apps/app_minivm.c (original)
+++ team/oej/minivoicemail/apps/app_minivm.c Tue Mar  6 15:09:19 2007
@@ -256,7 +256,7 @@
 	"    u    - Play the 'unavailable greeting.\n"
 	"\n";
 
-static char *synopsis_minivm_notify = "Notify voicemail owner about new messages.\n";
+static char *synopsis_minivm_notify = "Notify voicemail owner about new messages.";
 static char *descrip_minivm_notify = 
 	"Syntax: MinivmNotify(username at domain[,template])\n"
 	"This application is part of the Mini-Voicemail system, configured in minivm.conf.\n"
@@ -284,7 +284,7 @@
 	"	 FAILED is set if the file does not exist or can't be deleted.\n"
 	"\n";
 
-static char *synopsis_minivm_accmess = "Record account specific messages\n";
+static char *synopsis_minivm_accmess = "Record account specific messages";
 static char *descrip_minivm_accmess = 
 	"Syntax: MinivmAccmess(username at domain,option)\n"
 	"This application is part of the Mini-Voicemail system, configured in minivm.conf.\n"
@@ -2057,6 +2057,10 @@
 		LOCAL_USER_REMOVE(u);
 		return -1;
 	}
+
+	/* Answer channel if it's not already answered */
+	if (chan->_state != AST_STATE_UP)
+		ast_answer(chan);
 	
 	/* Here's where the action is */
 	if (ast_test_flag(&flags, OPT_BUSY_GREETING)) {



More information about the asterisk-commits mailing list