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
17 Hangup-skel is a template for writing a server hangup extension. Use a
18 new name to duplicate the file and make the necessary modifications.
19 You need to write the code to check if a number should return the word
20 hangup to STDOUT. You have the option of returning a recording file
21 name to use with a hangup. Your script name should follow this format:
22 hangup-<name>
23
24 The example below assumes you have copied hangup-skel to hangup-
25 myscript for your customized version of hangup-skel.
26
27 Server hangup extensions are only executed by the server unless test‐
28 ing.
29
30 Execute your customized hangup-myscript in a terminal window by itself
31 for testing. Only fields used in the script are needed for the input
32 string. To test your customized hangup-myscript with a number:
33
34 /usr/share/ncid/extensions/hangup-myscript -v "*NMBR*0000000000*"
35
37 -h show help message
38
39 -v turn on verbose and send additional data to STDOUT for trou‐
40 bleshooting
41
43 /usr/share/ncid/extensions/hangup-skel
44 /usr/share/ncid/recordings/*.rmd
45
47 ncidd.8, ncidd.whitelist.5, hangup-calls.1, hangup-closed-skel.1,
48 hangup-message-skel.1, hangup-combo-skel.1, hangup-nohangup.1
49
50
51
52NCID 2019-08-17 HANGUP-SKEL(1)