Add a new pickup hook that trigger on accept incoming calls
Signed-off-by: Reed Wade <reedwade@misterbanal.net> Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This commit is contained in:
		
							parent
							
								
									7066b54897
								
							
						
					
					
						commit
						6f94bb8159
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -86,6 +86,9 @@ acceptcall() {
 | 
			
		|||
		modem_cmd_errcheck -m "$(modem_n)" -o "$CALLID" --start
 | 
			
		||||
		log_event "call_start" "$CALLID"
 | 
			
		||||
	elif [ "$DIRECTION" = "incoming" ]; then
 | 
			
		||||
		if [ -x "$XDG_CONFIG_HOME/sxmo/hooks/pickup" ]; then
 | 
			
		||||
			"$XDG_CONFIG_HOME/sxmo/hooks/pickup" &
 | 
			
		||||
		fi
 | 
			
		||||
		modem_cmd_errcheck -m "$(modem_n)" -o "$CALLID" --accept
 | 
			
		||||
		log_event "call_pickup" "$CALLID"
 | 
			
		||||
	else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue