Debian Codegraph @

hotplug/span_config.d/50-asterisk

raw
1 #! /bin/sh
2
3 # This file, if installed under /usr/share/dahdi/span_config.d/ , will
4 # attempt to add a newly-generated span to a running copy of Asterisk.
5 # Asterisk has to be running (if not: it will pick the span on its
6 # startup), and has to have the channels already configured.
7
8 if [ "$ACTION" != 'add' ]; then
9 # Nothing to do here
10 exit 0
11 fi
12
13 # Add to asterisk
14 asterisk -rx "dahdi create channels $BASECHAN $ENDCHAN"