NCIDD.ALIAS(5)

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

πŸ’– NCIDD.ALIAS πŸ’–

okay bestie, gather round, we're talking about ncidd.alias(5) β€” that's the manual page for the NCID Server Alias File ✨


🌸 NAME 🌸

ncidd.alias β€” the NCID Server Alias File, aka the glow-up document for your Caller ID ✨


πŸŽ€ DESCRIPTION πŸŽ€

The ncidd.alias file is where all the alias info for ncidd, the NCID Server, lives. It's giving matchmaker for Caller ID names and numbers πŸ’– β€” and not only that, it also holds the aliases for telephone line identifiers too. so many jobs, so iconic.

The ncidd.alias file understands 3 types of lines, and only 3:

  • blank line: ignored. not even looked at. ghosted. πŸ‘»
  • comment line, beginning with #: also ignored. it said what it said and we moved on. πŸ’…
  • alias line: processed. this is the main character. πŸ‘‘

here's what an alias line looks like:

alias [NMBR|NAME] ["]FROM["] = ["]TO["] [if ["]VALUE["]]
alias [LINE] ["]FROM["] = ["]TO["
     where  NMBR, NAME or LINE is a KEYWORD
            FROM is a CID string:
                 can be a '*' (match everything) when using if
            TO is the alias for the FROM string
            VALUE is a NAME if KEYWORD = NMBR
            VALUE is a NMBR if KEYWORD = NAME
                  can contain a '^' (partial match from beginning)
            VALUE is a LINE if KEYWORD = LINE

so like, breaking it down fr fr:

  • NMBR, NAME or LINE is a KEYWORD
  • FROM is a CID string β€” and ngl, it can be a '*' (match everything) when using if πŸ‘€
  • TO is the alias for the FROM string
  • VALUE is a NAME if KEYWORD = NMBR
  • VALUE is a NMBR if KEYWORD = NAME β€” and it can contain a '^' (partial match from beginning) 🎯
  • VALUE is a LINE if KEYWORD = LINE

✨ Alias Types ✨

these are the flavors, pick your vibe:

NAME and NMBR: alias <name> = <new name>
NAME: alias NAME <name> = <new name>
NMBR: alias NMBR <number> = <new number>
LINE: alias LINE <line> = <new line>
(the name, number and line can contain a simple posix or pcre expression)

NAMEDEP: NAME * = <new name> if <number>
NMBRDEP: NMBR * = <new number> if <name>
(the The '*' in NAMEDEP and NMBRDEP is a placeholder and is ignored)

lowkey obsessed with the fact that the name, number and line can contain a simple posix or pcre expression 🧚 β€” regex girlies, this one's for you.

and heads up: that '*' in NAMEDEP and NMBRDEP is a placeholder and is ignored. it's just there for the aesthetic, not the function. periodt.


πŸ¦‹ EXAMPLES πŸ¦‹

okay these are so satisfying, watch:

Change OUT-OF-AREA to UNAVAILABLE in both name and number fields:

alias OUT-OF-AREA = UNAVAILABLE

Change OUT-OF-AREA to UNAVAILABLE in the name field only:

alias NAME OUT-OF-AREA = UNAVAILABLE

Change any name to a specific name for a phone number:

alias NAME * = "John on cell" if 4075551212

Change any name to a specific name matching the beginning of a phone number:

alias NAME * = "Toll Free" if ^800

Mask a phone number:

alias NMBR 4075551212 = "----------"

The default line indicator for a POTS line is -. and bestie, the ncid client will not display the - indicator. so if you wanna display 'POTS' for a POTS line:

alias LINE - = POTS

To not display a gateway line indicator, change it from the one received to a -. If the line indicator is '1122':

alias LINE 1122 = -

Change any line indicator to VOIP. πŸ‘‘ but be careful β€” place this after a POTS line indicator if a POTS line is also present:

alias LINE * = VOIP
⚠️ fr fr, that ordering thing is not a drill. put the LINE * wildcard last or it'll eat everything before the specific ones get a chance. πŸ’€

🌈 SEE ALSO 🌈

ncidd.8, ncidd.conf.5, ncidd.blacklist.5, ncidd.whitelist.5 β€” go read them, they're all part of the family 🫢


and that's the whole page bestie, no notes πŸ’…

this was NCID, dated 2024-06-23 β€” the NCID manual, serving NCIDD.ALIAS(5) realness ✨ πŸ’–πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from