hangup-postal-code - Man Page
hangup-POSTAL-CODE
Synopsis
hangup-postal-code [-h]
hangup-postal-code [-v] <string>
where string is in this format: *DATE*<mmddyyyy>*TIME*<hhmm>*LINE*<lineid>\ *NMBR*<number>*NAME*<name>*MODE*<hupmode>\ *FNMBR*<formatted number>*NTYPE*<type of device>\ *CTRY*<country code>*LOCA*<location>*CARI*<carrier>\ *NAME*<name>*
Description
The hangup-postal-code Extension searches the US postal codes for a state, commonwealth or territory abbreviation at the end of a Caller ID name. If a postal code is found, the server will hangup on the call. The caller name format for hangup is "CITY POSTAL_CODE". The extension only checks for a POSTAL_CODE at end of the name field.
The script is not called if the caller name is in ncidd.whitelist.
The postal-codes file was created from https://www.50states.com/abbreviations.htm.
Server hangup extensions are only executed by the server unless testing.
Options
- -h
show help message
- -v
turn on verbose and send additional data to STDOUT for troubleshooting
Requirements
Set hupname to the name of this script ncidd.conf. Set hupmode to 1, 2 or 3 in ncidd.conf. Set huprmd to a unique voice file in ncidd.conf, if hupmode set to 3.
Files
/etc/ncid/postal-codes /usr/share/ncid/recording/*.rmd /etc/ncid/ncidd.conf /etc/ncid/ncidd.whitelist
See Also
ncidd(8) ncidd.whitelist(5) ncid_extensions(7)
Info
2023-9-20 NCID