mirror of
				https://github.com/eworm-de/routeros-scripts.git
				synced 2024-05-11 05:55:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			299 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			299 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
#!rsc
 | 
						|
# RouterOS script: sms-action
 | 
						|
# Copyright (c) 2018 Christian Hesse <mail@eworm.de>
 | 
						|
#
 | 
						|
# run action on received SMS
 | 
						|
 | 
						|
:global "sms-action";
 | 
						|
 | 
						|
:local code ($"sms-action"->$action);
 | 
						|
:local parsed [ :parse $code ];
 | 
						|
 | 
						|
:log info ("Acting on SMS action '" . $action . "': " . $code);
 | 
						|
:delay 1s;
 | 
						|
$parsed;
 |