hangup-fakenum [-v] <string>
where string is in this format:
hangup-fakenum is an ncidd server hangup extension script to check for valid North American number plan callers as described by https://en.wikipedia.org/wiki/North_American_Numbering_Plan
Bad callers have ncidd hangup on them. The CannotBeCompleted.rmd recording is played before the hangup if using hupmode 3. FAX tones are sent before the hangup if using hupmode 2.
hangup-fakenum expects 10 digit or 1+10 caller ID and has ncidd hangup on others including private callers. There is also a check for stupid caller names provided by telemarketers, such as V12345678901234 and 321-555-1212 and +1-321-555-1212
If /etc/ncid/valid-area-codes exists, hangup-fakenum has ncidd hangup on areacodes that are not valid.
Make sure you 'set hupmode = 1|2|3' in ncidd.conf. ncidd does not call this script if the caller number or name is in ncidd.whitelist.
Server hangup extensions are only executed by the server unless testing.
show help message
turn on verbose and send additional data to STDOUT for troubleshooting
ncidd(8), ncidd.whitelist(5), hangup-calls(1), hangup-closed-skel(1), hangup-skel(1)
get-areacodes-list(1), hangup-combo-skel(1), hangup-nohangup(1), ncid_extensions(7).