01-23-2021, 01:34 AM
(01-23-2021, 01:08 AM)hiimtye Wrote: you should have a .config directory but it is not necessary to receive calls. the hooks folder is for running scripts, ie a ringtone or sending an email or what ever else you can imagine. they're not the core functionality of the phone.
you probably haven't enabled the modem (config -> modem toggle)
Code:
acceptcall() {
CALLID="$1"
echo "Attempting to initialize CALLID $CALLID">&2
DIRECTION="$(
mmcli --voice-status -o "$CALLID" -K |
grep call.properties.direction |
cut -d: -f2 |
tr -d " "
)"
if [ "$DIRECTION" = "outgoing" ]; then
modem_cmd_errcheck -m "$(modem_n)" -o "$CALLID" --start
log_event "call_start" "$CALLID"
echo "Started call $CALLID">&2
elif [ "$DIRECTION" = "incoming" ]; then
if [ -x "$XDG_CONFIG_HOME/sxmo/hooks/pickup" ]; then
echo "Invoking pickup hook (async)">&2
"$XDG_CONFIG_HOME/sxmo/hooks/pickup" &
fi
This is from the modemcall script, and it's looking for the pickup hook. Doesn't do anything else for incoming calls.