[Asterisk-Dev] 'goodbye' in voicemail2 not quite there yet

Iain Stevenson iain at iainstevenson.com
Sun May 11 12:43:49 MST 2003


I'm afraid I'm still not getting the 'goodbye' from voicemail2 after 
pressing #.  I think the logic is still a little out - this patch seems to 
make things work but doubtless has some side effects ....

  Iain
-------------- next part --------------
--- app_voicemail2.c.orig	Sun May 11 20:33:41 2003
+++ app_voicemail2.c	Sun May 11 20:35:02 2003
@@ -1977,7 +1977,7 @@
 		cmd = vm_intro(chan, &vms);
 		vms.repeats = 0;
 		vms.starting = 1;
-		while((cmd > -1) && (cmd != 't') && (cmd != '#')) {
+		while((cmd > -1) && (cmd != 't') ) {
 			/* Run main menu */
 			switch(cmd) {
 			case '1':
@@ -2095,8 +2095,9 @@
 				ast_stopstream(chan);
 				adsi_goodbye(chan);
 				cmd = play_and_wait(chan, "vm-goodbye");
-				if (cmd > 0)
-					cmd = '#';
+//				if (cmd > 0)
+//					cmd = '#';
+				cmd = -1;
 				break;
 			default:	/* Nothing */
 				cmd = vm_instructions(chan, &vms);


More information about the asterisk-dev mailing list