pttlink / Asterisk

Version of asterisk used for PTTLink. And home of the original ASL code base repo.
Other
39 stars 34 forks source link

statpost() refactored to fork-n-wget with individual node logic retained - KE8CGS #77

Closed TheCranston closed 3 years ago

TheCranston commented 3 years ago

Description This is an update to app_rpt.c which replaces the libcurl code in the statpost function. It reverts to the old fork-n-wget method from the 1.01 release but retains the 1.02 logic allowing a per node statpost override. This PR fixes a previous PR #76 that didn't glob the arguments for the exec correctly. It also restores the statpost_program part of the rpt struct and replaces the code to read that variable from the config file. There was some little code chunk that didn't sync into my fork about tail and beaconing, I added it back in manually here so you might notice that, but it's not a change...

Checklist

TheCranston commented 3 years ago

Oh and I forgot. I changed the default process scheduling from SCHED_FIFO to SCHED_RR. The round robin scheduler is best when used with a full RT Preempt kernel, which is what is under the hood.