NCID2NCID(1)
π NCID2NCID(1) π
okay bestie, sit DOWN, because this is the manual page for ncid2ncid from the NCID suite and it's literally a little matchmaker that hooks up your NCID servers π«Ά
β¨ NAME β¨
ncid2ncid β NCID to NCID gateway, connect multiple NCID sending servers to a single NCID receiving server π
π SYNOPSIS π
ncid2ncid [options]
Options:
[-C <filename> | --config <filename>]
[-D | --debug]
[-f <[host][:port]> | --fromhost <[host][:port>]
[-H <0|1> | --hostname-flag <0|1>]
[-h | --help]
[-L <filename> | --logfile <filename>]
[-t <[host][:port]> | --tohost <[host][:port>]
[-P <filename> | --pidfile <filename>]
[-u | --usage]
[-V | --version]
[-v <1-9> | --verbose <1-9>]
[-W <0|1> | --warn <0|1>]
[--osx-launchd]
πΈ DESCRIPTION πΈ
so basically: this gateway is the middle bestie of the phone-call world π. It grabs the current Caller ID or message from one or more NCID servers β those are your sending servers β and pipes them into another NCID server, the receiving server. And how do you tell whose call is whose? Line labels, babes. They're what keeps the different phone calls from getting mixed up π
You can have up to 4 sending servers, but the first sending server is not optional β you gotta set it up either on the command line or in the configuration file, fr fr. The receiving server comes with a default though, so you might not even need to configure it. lucky you π
Now, if a sending server dips out (rude), the gateway will just keep trying to reconnect until it either succeeds or gets terminated. main character persistence honestly β¨. And it's polite about it too: if a sending server disconnects, the gateway sends a disconnect message to the receiving server, and if it reconnects, it sends a reconnect message. Communication is key in every relationship π«Ά
The log file lives at /var/log/ncid2ncid.log. π
If a pid file is given β usually /var/run/ncid2ncid.pid β then a pid file is used to store the process ID. πͺͺ
And the configuration file for ncid2ncid is prefix3=/etc/ncid/ncid2ncid.conf. That's the one, no cap.
π OPTIONS π
-C <filename>|--config <filename>β the configuration file. Default:prefix3=/etc/ncid/ncid2ncid.confποΈ-D|--debugβ debug mode, bestie.ncid2ncidstays attached to the terminal and shows you all the messages that go into the log file. front-row seats π-f <fromhost[:fromport]>β specifies the first sending NCID server. It sends the Caller ID and messages to another NCID server. Port may be specified by suffixing the hostname with:<port>. Input must be<host>or<host:port>. Default::3333π-H <0|1>|--hostname-flag <0|1>β when thehosthameflag is set to1, the IDENT string sent to a server will include the hostname with the program name. (yes we saidhosthame, iconic, we don't gatekeep typos π) Default:0-h|--helpβ prints this help π-L <filename>|--logfile <filename>β specifies the logfile name to use. Heads up though: the logfile must exist before it is used, no cap. Default:/var/log/ncid2ncid.logπ-t <[host][:port]>|--ncid <[host][:port]>β specifies the receiving NCID server. It receives Caller ID and messages from another NCID server. Port may be specified by suffixing the hostname with:<port>. Input can be<host>or<:port>or<host:port>. Default:localhost:3333π-P <filename>|--pidfile <filename>β specifies the pidfile name to write. Set to/var/run/ncid2ncid.pidin its rc, init ior service script when used as a service. The program will still run if it does not have permission to write a pidfile. There is no default. If pidfile is not set, no pid file will be used. Prints this help π (yes, that last bit is copy-pasted energy from--help, we're all just doing our best)-V|--versionβ displays the version β-v <1-9>|--verbose <1-9>β verbose mode. Send information into the logfile and display information for the-Doption. Set a higher number for more information.LEVEL2will give a warning every time it fails to connect with an NCID server.LEVEL8will print the logfiles from every server andLEVEL9will add the socket of the received logfile. π
To debug, try: verbose = 2
Default: 1
-W <0|1>|--warn <0|1>β send server disconnected or server reconnected messages to clients. Default:0π¨--osx-launchdβ this option is only for OSX when using launchd to controlncidd. It preventsnciddfrom entering daemon mode. It is like debug mode, but nothing is printed to the screen. π
π¦ EXAMPLES π¦
Forward Caller ID information or messages from localhost:3334 to localhost:3333
ncid2ncid --fromhost localhost:3334
Forward Caller ID information or messages from localhost:3334 to localhost:3333 in debug mode using verbose level 1.
ncid2ncid -D -f localhost:3334
Forward Caller ID information or messages from localhost:3334 to localhost:3333 in debug mode and display all logfiles.
ncid2ncid -Dv8 -f localhost:3334
π FILES π
prefix3=/etc/ncid/ncid2ncid.conf
/var/run/ncid2ncid.pid
/var/log/ncid2ncid.log
π DIAGNOSTICS π
the return codes, bestie β memorize them, it's giving study guide:
0β Successful β-100β Usage-101β Invalid port number-104β Configuration file error-107β Invalid number-108β Missing sending host 1-110β PID file already exists-?β System error π
π SEE ALSO π
ncid2ncid.conf.5, ncidd.8, ncidd.conf.5, ncid_gateways.7 π
and that's the whole vibe check, bestie β¨ this was ncid2ncid from NCID, dated 2022-11-8, living in section NCID2NCID(1) π¦ go forth and gateway your little heart out, ily, periodt πππ
π¦ where this page comes from
- fedora 43: ncid-gateways 1.18-4.fc43 Β· GPL-3.0-or-later
- fedora 44: ncid-gateways 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