dahdi-tools/hotplug/span_config.d/50-asterisk

10 lines
152 B
Bash
Executable File

#! /bin/sh
if [ "$ACTION" != 'add' ]; then
# Nothing to do here
exit 0
fi
# Add to asterisk
asterisk -rx "dahdi create channels $BASECHAN $ENDCHAN"