mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	res_ari.c: Add additional output to ARI requests when debug is enabled
When ARI debug is enabled the logs will now output http method and the uri.
Fixes: #666
(cherry picked from commit a56d4f7936)
			
			
This commit is contained in:
		
				
					committed by
					
						 Asterisk Development Team
						Asterisk Development Team
					
				
			
			
				
	
			
			
			
						parent
						
							dd0d4efc7c
						
					
				
				
					commit
					622cff05c9
				
			| @@ -1006,6 +1006,7 @@ static int ast_ari_callback(struct ast_tcptls_session_instance *ser, | ||||
|  | ||||
| 		ast_str_append(&buf, 0, "<--- ARI request received from: %s --->\n", | ||||
| 			ast_sockaddr_stringify(&ser->remote_address)); | ||||
| 		ast_str_append(&buf, 0, "%s %s\n", ast_get_http_method(method), uri); | ||||
| 		for (var = headers; var; var = var->next) { | ||||
| 			ast_str_append(&buf, 0, "%s: %s\n", var->name, var->value); | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user