HANGUP-SKEL(1)
π HANGUP-SKEL(1) π
okay bestie, welcome to NCID land, today we're looking at hangup-skel and honestly? she's a template, she's a vibe, she's your starter kit. let's get into it π«Ά
β¨ NAME β¨
hangup-skel β the blueprint, the blueprint-iest blueprint. it's giving "copy me and make me your own" π
πΈ SYNOPSIS πΈ
hangup-skel [-h]
hangup-skel [-v] <string>
and <string> is literally formatted like this, no cap:
*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-skel is a template for writing a server hangup extension. yes queen, you read that right. use a new name to duplicate the file and make the necessary modifications β like, go off, personalize her.
you're the one writing the code to check if a number should return the word hangup to STDOUT. that's on you, bestie, the skeleton isn't gonna do it for you. and here's a lil bonus: you have the option of returning a recording file name to use with a hangup. iconic, right? your script name should follow this format: hangup-<name> β¨
heads up!! the script is not called if the caller number or name is in ncidd.whitelist. so if nothing's happening, check that list first, fr fr π
the example below assumes you have copied hangup-skel to hangup-myscript for your customized version of hangup-skel. (yes, that's the whole example, we're manifesting your rename into existence π)
server hangup extensions are only executed by the server unless testing. so don't be out here expecting your extension to run when it's not the server's turn, iykyk.
to test it out: execute your customized hangup-myscript in a terminal window by itself for testing. only fields used in the script are needed for the input string β you don't gotta bring the whole entourage, just the ones your script actually needs. so to test your customized hangup-myscript with a number:
/usr/share/ncid/extensions/hangup-myscript -v "*NMBR*0000000000*"
periodt. that's the whole test. slay. π
π OPTIONS π
-hβ show help message. that's it, that's the whole job, and she does it beautifully π-vβ turn on verbose and send additional data to STDOUT for troubleshooting. the chatterbox mode, perfect for when something's acting up and you need the tea π
π REQUIREMENTS π
okay so before this all works, you gotta set up some stuff:
- Set
hupnameto the name of this scriptncidd.conf. - Set
hupmodeto1,2or3inncidd.conf. - Set
huprmdto a unique voice file inncidd.conf, ifhupmodeset to3.
read that third one again bestie βhuprmdonly matters whenhupmodeis3. the other two modes don't care about it, and we respect that π
π FILES π
/usr/share/ncid/extensions/hangup-skel/usr/share/ncid/recordings/*.rmdprefix3=/etc/ncid/ncidd.confprefix3=/etc/ncid/ncidd.whitelist
β SEE ALSO β
ncidd.8, ncidd.whitelist.5, hangup-calls.1, hangup-closed-skel.1, hangup-message-skel.1, hangup-combo-skel.1, hangup-nohangup.1
like, go read the whole family, they're all icons in their own right π§
and that's the page!! this one's from NCID, dated 2022-11-8, and yes she's still serving. mwah, go write your extension, you're gonna eat πβ¨ππ¦
π¦ 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