Difference between revisions of "Conpgm & discpgm - Run a script or program on node connect or disconnect"

From AllStarLink Wiki
Jump to navigation Jump to search
(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...")
(No difference)

Revision as of 01:28, 10 February 2023

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.