Author |
Post |
|
#1 Thu Oct 26, 2023 12:09, 15 months ago.
|
Member
Registered: Oct 2023
Location: Ukraine
|
Hi! I need to run a script when I receive an incoming call. How can I do it?
|
|
#2 Thu Oct 26, 2023 16:28, 15 months ago.
|
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...
|
|
#3 Thu Oct 26, 2023 19:27, 15 months ago.
|
Member
Registered: Oct 2023
Location: Ukraine
Topic owner
|
Wow! Thanks!
|