1HANGUP-POSTAL-CODE(1)                NCID                HANGUP-POSTAL-CODE(1)
2
3
4

NAME

6       hangup-POSTAL-CODE
7

SYNOPSIS

9       hangup-postal-code [-h]
10       hangup-postal-code [-v] <string>
11
12              where string is in this format:
13              *DATE*<mmddyyyy>*TIME*<hhmm>*LINE*<lineid>\
14              *NMBR*<number>*NAME*<name>*MODE*<hupmode>\
15              *FNMBR*<formatted number>*NTYPE*<type of device>\
16              *CTRY*<country code>*LOCA*<location>*CARI*<carrier>\
17              *NAME*<name>*
18

DESCRIPTION

20       The  hangup-postal-code  Extension  searches  the US postal codes for a
21       state, commonwealth or territory abbreviation at the end of a Caller ID
22       name.   If  a postal code is found, the server will hangup on the call.
23       The caller name format for hangup is "CITY POSTAL_CODE".  The extension
24       only checks for a POSTAL_CODE at end of the name field.
25
26       The script is not called if the caller name is in ncidd.whitelist.
27
28       The        postal-codes        file        was       created       from
29https://www.50states.com/abbreviations.htm⟩.
30
31       Server hangup extensions are only executed by the server  unless  test‐
32       ing.
33

OPTIONS

35       -h     show help message
36
37       -v     turn  on  verbose  and  send additional data to STDOUT for trou‐
38              bleshooting
39

REQUIREMENTS

41       Set hupname to the name of this script ncidd.conf.
42       Set hupmode to 1, 2 or 3 in ncidd.conf.
43       Set huprmd to a unique voice file in ncidd.conf, if hupmode set to 3.
44

FILES

46       /etc/ncid/postal-codes
47       /usr/share/ncid/recording/*.rmd
48       /etc/ncid/ncidd.conf
49       /etc/ncid/ncidd.whitelist
50

SEE ALSO

52       ncidd.8
53       ncidd.whitelist.5
54       ncid_extensions.7
55
56
57
58NCID                               2023-9-20             HANGUP-POSTAL-CODE(1)
Impressum