KV4S
April 14, 2022, 3:31pm
1
I’ve been running this bash script from congpm for a few years, and it’s functioned flawlessly.
echo “Node $2 connected to node $1 at $(date +%Y-%m-%d.%H:%M:%S):” | mail -s “My repeater” 6165551212@vtext.com # verizon text message
Are there variables I can use to pass to the bash script to get the callsign and/or the node information to “pretty up” my message?
Example: Node: 47923 Node Information from Allmon: KV4S 432.200 Chelsea, Alabama
73,
Russell Thomas, KV4S
kb3awq
April 14, 2022, 10:38pm
2
Cool. How would this be done on hamvoip?
KV4S
April 15, 2022, 2:12am
3
I did mine from here:
works HamVoip or ASL
i didn’t write these from scratch but i cloned or forked the code I used in case the author ever deleted the original.
1 Like
wd6awp
April 15, 2022, 2:14pm
4
My first thought would be to modify the script to parse astdb.txt
Mike
April 15, 2022, 4:39pm
5
From asterisk
${CALLERID(name)}
I kinda do the same but all asterisk traffic gets logged to different files by type timestamped from extensions.conf script call. If that should give you some other ideas.
But you should be able to parse a line in astdb to include.
KV4S
April 15, 2022, 7:23pm
6
Got this working plus I added Telegram support!
msg_on_connect
msg_on_disconnect
system
Closed
April 18, 2022, 7:23pm
7
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.