HANGUP-FAKENUM(1)

πŸ“¦ version 1.18, in fedora 43, fedora 44

πŸ’– 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.rmd recording is played before the hangup if you're using hupmode 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 you set hupmode = 1|2|3 in ncidd.conf. and fr fr, 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. (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 hupname to the name of this script in ncidd.conf.
  • Set hupmode to 1, 2 or 3 in ncidd.conf.
  • Set huprmd to a unique voice file in ncidd.conf, if hupmode is set to 3.

like... do the setup bestie, she can't work without it 😭


πŸ¦‹ FILES πŸ¦‹

  • /usr/share/ncid/extensions/hangup-fakenum
  • /usr/share/ncid/recording/*.rmd
  • prefix3=/etc/ncid/ncidd.whitelist
  • prefix3=/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