|  |  | @ -50,6 +50,7 @@ import Foundation | 
			
		
	
		
		
			
				
					
					|  |  |  |         // Alternative way without prompting for permissions: |  |  |  |         // Alternative way without prompting for permissions: | 
			
		
	
		
		
			
				
					
					|  |  |  |         // if AVAudioSession.sharedInstance().recordPermission() == .denied { |  |  |  |         // if AVAudioSession.sharedInstance().recordPermission() == .denied { | 
			
		
	
		
		
			
				
					
					|  |  |  |         AVAudioSession.sharedInstance().requestRecordPermission { isGranted in |  |  |  |         AVAudioSession.sharedInstance().requestRecordPermission { isGranted in | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             DispatchQueue.main.async { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 // Here the permissions are either granted or denied |  |  |  |                 // Here the permissions are either granted or denied | 
			
		
	
		
		
			
				
					
					|  |  |  |                 guard isGranted == true else { |  |  |  |                 guard isGranted == true else { | 
			
		
	
		
		
			
				
					
					|  |  |  |                     Logger.warn("\(self.TAG) aborting due to missing microphone permissions.") |  |  |  |                     Logger.warn("\(self.TAG) aborting due to missing microphone permissions.") | 
			
		
	
	
		
		
			
				
					|  |  | @ -58,6 +59,7 @@ import Foundation | 
			
		
	
		
		
			
				
					
					|  |  |  |                 } |  |  |  |                 } | 
			
		
	
		
		
			
				
					
					|  |  |  |                 callUIAdapter.startAndShowOutgoingCall(recipientId: recipientId) |  |  |  |                 callUIAdapter.startAndShowOutgoingCall(recipientId: recipientId) | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |         return true |  |  |  |         return true | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |