mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	ari: Provide the caller ID RDNIS for the channels
Provide the caller ID RDNIS when available. This will allow an
application to follow the redirect.
(cherry picked from commit 3c9e7ad4ba)
			
			
This commit is contained in:
		
				
					committed by
					
						 Asterisk Development Team
						Asterisk Development Team
					
				
			
			
				
	
			
			
			
						parent
						
							79bab53afd
						
					
				
				
					commit
					97042e0a3a
				
			| @@ -1323,6 +1323,10 @@ struct ast_json *ast_channel_snapshot_to_json( | ||||
| 		"creationtime", ast_json_timeval(snapshot->base->creationtime, NULL), | ||||
| 		"language", snapshot->base->language); | ||||
|  | ||||
| 	if (!ast_strlen_zero(snapshot->caller->rdnis)) { | ||||
| 		ast_json_object_set(json_chan, "caller_rdnis", ast_json_string_create(snapshot->caller->rdnis)); | ||||
| 	} | ||||
|  | ||||
| 	if (snapshot->ari_vars && !AST_LIST_EMPTY(snapshot->ari_vars)) { | ||||
| 		ast_json_object_set(json_chan, "channelvars", ast_json_channel_vars(snapshot->ari_vars)); | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user