HANGUP-POSTAL-CODE(1)

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

πŸ’– HANGUP-POSTAL-CODE(1) πŸ’–

okay bestie, gather round, because this is the NCID girlie that hangs up on people for you 🫢 and yes, the man page name is literally hangup-POSTAL-CODE(1), we're doing this ✨


✨ NAME ✨

hangup-POSTAL-CODE β€” no cap, that's the whole name, she's lowkey iconic like that πŸ’…


🌸 SYNOPSIS 🌸

hangup-postal-code [-h]
hangup-postal-code [-v] <string>

and the <string> is in this format, exactly, don't freestyle it:

*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 the hangup-postal-code Extension is out here doing a little detective work πŸ” β€” it searches the US postal codes looking for a state, commonwealth, or territory abbreviation sitting at the end of a Caller ID name. Found one? The server will hang up on that call. periodt. βœ‹

the caller name format for the hangup is "CITY POSTAL_CODE". And fr fr, the extension only checks for a POSTAL_CODE at the end of the name field β€” nowhere else, she's not scrolling, she checks the last line of the name and that's it πŸ’€

the script is not called if the caller name is in ncidd.whitelist. bestie is protected, we love that 🌈

the postal-codes file was created from https://www.50states.com/abbreviations.htm β€” credit where credit is due πŸ‘‘

Server hangup extensions are only executed by the server unless testing. 🧚 so don't come crying to me if you ran it standalone, iykyk

πŸ’… OPTIONS πŸ’…

  • -h β€” show help message, aka the "bestie what do i do" button πŸ™ˆ
  • -v β€” turn on verbose and send additional data to STDOUT for troubleshooting πŸ”₯ she's chatty now

πŸŽ€ REQUIREMENTS πŸŽ€

like, you gotta set these up or it's giving nothing:

  • 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 ⭐

  • prefix3=/etc/ncid/postal-codes
  • /usr/share/ncid/recording/*.rmd
  • prefix3=/etc/ncid/ncidd.conf
  • prefix3=/etc/ncid/ncidd.whitelist

πŸ‘‘ SEE ALSO πŸ‘‘

  • ncidd.8
  • ncidd.whitelist.5
  • ncid_extensions.7

and that's the whole vibe, bestie πŸ’œ this was NCID, dated 2023-9-20, and she ate, no crumbs 🌸 mwah, go hang up on some spam callers πŸŽ€βœ¨

πŸ“¦ where this page comes from