mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-03 20:38:59 +00:00 
			
		
		
		
	func_callerid: Emit warning if invalid redirecting reason set.
Emit a warning if REDIRECTING(reason) is set to an invalid reason, consistent with what happens when REDIRECTING(orig-reason) is set to an invalid reason. Resolves: #683
This commit is contained in:
		
				
					committed by
					
						
						asterisk-org-access-app[bot]
					
				
			
			
				
	
			
			
			
						parent
						
							0923a49cc2
						
					
				
				
					commit
					bb33925d75
				
			@@ -1716,6 +1716,7 @@ static int redirecting_write(struct ast_channel *chan, const char *cmd, char *da
 | 
			
		||||
			 * reason, so we can just set the reason string to what was given and set the
 | 
			
		||||
			 * code to be unknown
 | 
			
		||||
			 */
 | 
			
		||||
			ast_log(LOG_WARNING, "Unknown redirecting reason '%s', defaulting to unknown\n", val);
 | 
			
		||||
			redirecting.reason.code = AST_REDIRECTING_REASON_UNKNOWN;
 | 
			
		||||
			redirecting.reason.str = val;
 | 
			
		||||
			set_it(chan, &redirecting, NULL);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user