Conpgm & discpgm - Run a script or program on node connect or disconnect
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.