[asterisk-commits] branch murf/bug_6264-1.2try2 r27183 - /team/murf/bug_6264-1.2try2/apps/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon May 15 09:32:21 MST 2006


Author: murf
Date: Sat May 13 23:44:36 2006
New Revision: 27183

URL: http://svn.digium.com/view/asterisk?rev=27183&view=rev
Log:
Patch folded back in. Omitted the change to play the vm-dialout soundfile. That's
not purely a bug fix.



Modified:
    team/murf/bug_6264-1.2try2/apps/app_dial.c

Modified: team/murf/bug_6264-1.2try2/apps/app_dial.c
URL: http://svn.digium.com/view/asterisk/team/murf/bug_6264-1.2try2/apps/app_dial.c?rev=27183&r1=27182&r2=27183&view=diff
==============================================================================
--- team/murf/bug_6264-1.2try2/apps/app_dial.c (original)
+++ team/murf/bug_6264-1.2try2/apps/app_dial.c Sat May 13 23:44:36 2006
@@ -937,20 +937,26 @@
 		}
 		
 		if( privdb_val == AST_PRIVACY_DENY ) {
+			strcpy(status, "NOANSWER");
 			ast_verbose( VERBOSE_PREFIX_3  "Privacy DB reports PRIVACY_DENY for this callerid. Dial reports unavailable\n");
 			res=0;
 			goto out;
 		}
 		else if( privdb_val == AST_PRIVACY_KILL ) {
-			ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 201);
+			strcpy(status, "DONTCALL");
+			if (option_priority_jumping || ast_test_flag(&opts, OPT_PRIORITY_JUMP)) {
+				ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 201);
+			}
 			res = 0;
 			goto out; /* Is this right? */
 		}
 		else if( privdb_val == AST_PRIVACY_TORTURE ) {
-			ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 301);
+			strcpy(status, "TORTURE");
+			if (option_priority_jumping || ast_test_flag(&opts, OPT_PRIORITY_JUMP)) {
+				ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 301);
+			}
 			res = 0;
 			goto out; /* is this right??? */
-
 		}
 		else if( privdb_val == AST_PRIVACY_UNKNOWN ) {
 			/* Get the user's intro, store it in priv-callerintros/$CID, 
@@ -1306,6 +1312,7 @@
 								     opt_args[OPT_ARG_PRIVACY], privcid);
 						ast_privacy_set(opt_args[OPT_ARG_PRIVACY], privcid, AST_PRIVACY_DENY);
 					}
+					strcpy(status,"NOANSWER");
 					if (ast_test_flag(&opts, OPT_MUSICBACK)) {
 						ast_moh_stop(chan);
 					} else if (ast_test_flag(&opts, OPT_RINGBACK)) {



More information about the asterisk-commits mailing list