1HANGUP-SKEL(1) NCID HANGUP-SKEL(1)
2
3
4
6 hangup-skel
7
9 hangup-skel [-h]
10 hangup-skel [-v] <string>
11
12 where string is in this format:
13 *DATE*<mmddyyyy>*TIME*<hhmm>*LINE*<lineid>\
14 *NMBR*<number>*NAME*<name>*MODE*<hupmode>\
15 *FNMBR*<formatted number>*NTYPE*<type of device>\
16 *CTRY*<country code>*LOCA*<location>*CARI*<carrier>\
17 *NAME*<name>*
18
20 Hangup-skel is a template for writing a server hangup extension. Use a
21 new name to duplicate the file and make the necessary modifications.
22 You need to write the code to check if a number should return the word
23 hangup to STDOUT. You have the option of returning a recording file
24 name to use with a hangup. Your script name should follow this format:
25 hangup-<name>
26
27 Script is not called if caller number or name is in ncidd.whitelist.
28
29 The example below assumes you have copied hangup-skel to hangup-
30 myscript for your customized version of hangup-skel.
31
32 Server hangup extensions are only executed by the server unless test‐
33 ing.
34
35 Execute your customized hangup-myscript in a terminal window by itself
36 for testing. Only fields used in the script are needed for the input
37 string. To test your customized hangup-myscript with a number:
38
39 /usr/share/ncid/extensions/hangup-myscript -v "*NMBR*0000000000*"
40
42 -h show help message
43
44 -v turn on verbose and send additional data to STDOUT for trou‐
45 bleshooting
46
48 Set hupname to the name of this script ncidd.conf.
49 Set hupmode to 1, 2 or 3 in ncidd.conf.
50 Set huprmd to a unique voice file in ncidd.conf, if hupmode set to 3.
51
53 /usr/share/ncid/extensions/hangup-skel
54 /usr/share/ncid/recordings/*.rmd
55 /etc/ncid/ncidd.conf
56 /etc/ncid/ncidd.whitelist
57
59 ncidd.8, ncidd.whitelist.5, hangup-calls.1, hangup-closed-skel.1,
60 hangup-message-skel.1, hangup-combo-skel.1, hangup-nohangup.1
61
62
63
64NCID 2022-11-8 HANGUP-SKEL(1)