I think I see what the (my) problem is - I expected a global variable to be accessible by the shell, but apparently it is only accessible by the Asterisk AMI or AGI. But I can see it in the Asterisk CLI
Maybe Event Management isn’t what I want but I am after a way to have a bash script I’m running know if RX is active or not
I see your text of what works for you, but as far as I can see, you are creating a file ‘test’ on RPT_RXUNKEYED
But to know why or how that worked, I would need to see the rest of the judgement you are making when the statement is not true, for the file still exists from 'touch’ing it.
You are not removing it as well when the statement is untrue.
Well… I was just touching a file to verify the feature was working. (I certainly wouldn’t touch and delete a file every time RX went active/inactive on an SD card).
What I ultimately wish to do is set a variable that can be read by a bash script to determine RX activity. But from my above test, it seems that variables don’t work as the Wiki says they should. At least not for me
I should mention that there is a method to carry a var back into asterisk from a shell.
But I would use a global declaration for it.
I’m sure that gets additional wheels turning.
@AH6LE you can always put the file on a RAMdisk. That’s very easy to do on Linux, especially if you have ramfs available (certainly seen it on anything Debian based). Software such as Pi-Star makes extensive use of RAMdisks for logging and other frequently written directories.
Thanks, I’m looking to rebuild my IRLP node and upgrade my ASL node to ASL2.0, and this functionality could be useful to support IRLP’s busy channel lockout.