HANGUP-POSTAL-CODE(1)
π 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 toSTDOUTfor troubleshooting π₯ she's chatty now
π REQUIREMENTS π
like, you gotta set these up or it's giving nothing:
- Set
hupnameto the name of this scriptncidd.conf. - Set
hupmodeto1,2or3inncidd.conf. - Set
huprmdto a unique voice file inncidd.conf, ifhupmodeset to3.
β FILES β
prefix3=/etc/ncid/postal-codes/usr/share/ncid/recording/*.rmdprefix3=/etc/ncid/ncidd.confprefix3=/etc/ncid/ncidd.whitelist
π SEE ALSO π
ncidd.8ncidd.whitelist.5ncid_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
- 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