#!/usr/bin/bash

# Last edited: Oct 20, 2017

# Server Hangup Extension:
# Hangup on all calls not in the whitelist.
# Script is not called if caller number or name is in ncidd.whitelist.

# All hangup modes are supported.
# Make sure you 'set hupmode = 1|2|3' in ncidd.conf.

# This hangup script is REPLACED whenever NCID is updated.

echo "HangupReason: not on whitelist"
echo "hangup"
