SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Sat Apr 27, 2024 23:06
SMSTools3 Community » Help and support Bottom

Run a script when I receive an incoming call

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Oct 2023
Location: Ukraine
Hi!
I need to run a script when I receive an incoming call.
How can I do it?

Member
Registered:
Oct 2023
Location: italy, Italy
###/etc/smsd.conf

devices = modem1
......
......
......
#################################### here ##
### add this foder with roght user permissions!
phonecalls = /var/spool/sms/phonecalls
###########################################
......
......
......

[modem1]
####################HERE
phonecalls = clip
voicecall_hangup_ath = yes
eventhandler = /usr/local/bin/smsd_eventhandler.sh
##########################################


#####usr/local/bin/smsd_eventhandler.sh

#!/bin/bash

if [ "$1" = "CALL" ]; then

####call script to execute here

fi

here the parts I use to handle incoming call... you can use to execute a external script...

Member
Registered:
Oct 2023
Location: Ukraine
Topic owner
Wow! Thanks!

Login and Post Reply

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.