Conpgm & discpgm - Run a script or program on node connect or disconnect

From AllStarLink Wiki
Revision as of 01:28, 10 February 2023 by KB8JNM (talk | contribs) (Created page with "Useful tool for running a script or program when a node connects or disconnects. Usage: connpgm = /etc/asterisk/myscripts/48230connect.sh discpgm = /etc/asterisk/myscripts...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Useful tool for running a script or program when a node connects or disconnects.


Usage:

connpgm = /etc/asterisk/myscripts/48230connect.sh

discpgm = /etc/asterisk/myscripts/48230disconnect.sh


Each node requiring this can have it's own in that nodes stanza.

No requirement for using both. Use the one you need or both.

Think your project through as this will run on 'every connect or disconnect'. There is no way to limit it. However, your script could have a provision to ignore certain nodes or certain times.