HANGUP-FAKENUM(1)
π HANGUP-FAKENUM π
okay bestie, welcome to hangup-fakenum, a lil script from the NCID fam (that's the manual, section 1) that is lowkey a bouncer for your phone line. she checks your caller ID and if the number is giving fake, she hangs up on it. no cap. π
β¨ NAME β¨
hangup-fakenum β the script that catches fake callers and tells ncidd to hang up on them π«Ά
πΈ SYNOPSIS πΈ
hangup-fakenum [-h]
hangup-fakenum [-v] <string>
and <string> has gotta be in this exact format, no freestyling:
*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 π
so hangup-fakenum checks for valid North American number plan callers, exactly as described by the North Americal Numbering Plan (yes that's how it's spelled in the original, we keep it π) over at https://en.wikipedia.org/wiki/North_American_Numbering_Plan.
β¨ important: the script is not called if the caller number or name is in ncidd.whitelist. whitelist besties are safe, periodt.
bad callers get hung up on by ncidd. here's the tea on the hangup modes:
- the
CannotBeCompleted.rmdrecording is played before the hangup if you're usinghupmode 3π - FAX tones are sent before the hangup if you're using
hupmode 2π
hangup-fakenum expects a 10 digit or 1+10 caller ID, and has ncidd hang up on everybody else, including private callers. π she also side-eyes stupid caller names that telemarketers provide, like V12345678901234 and 321-555-1212 and +1-321-555-1212. it's giving fake, it's giving scammer, it's getting hung up on. π
if prefix3=/etc/ncid/valid-area-codes exists, hangup-fakenum has ncidd hang up on areacodes that are not valid. area code vibe check failed? bye. π
π make sure youset hupmode = 1|2|3inncidd.conf. and fr fr, ncidd does not call this script if the caller number or name is inncidd.whitelist.
server hangup extensions are only executed by the server unless testing. (iykyk β¨)
π OPTIONS π
-hβ show the help message, queen of documentation π«Ά-vβ turn on verbose mode and send additional data to STDOUT for troubleshooting π
π REQUIREMENTS π
- Set
hupnameto the name of this script inncidd.conf. - Set
hupmodeto1,2or3inncidd.conf. - Set
huprmdto a unique voice file inncidd.conf, ifhupmodeis set to3.
like... do the setup bestie, she can't work without it π
π¦ FILES π¦
/usr/share/ncid/extensions/hangup-fakenum/usr/share/ncid/recording/*.rmdprefix3=/etc/ncid/ncidd.whitelistprefix3=/etc/ncid/valid-area-codes
π SEE ALSO π
ncidd.8, ncidd.whitelist.5, get-areacodes-list.1, hangup-calls.1, hangup-closed-skel.1, hangup-skel.1
π that's the whole page bestie. go forth, hang up on fake numbers, be the main character of your own phone line. no notes. β
NCID Β· 2022-11-8 β mwah, slay, bye π πΈπ«Ά
π¦ where this page comes from
- fedora 43: ncid 1.18-4.fc43 Β· GPL-3.0-or-later
- fedora 44: ncid 1.18-5.fc44 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms