hangup-message-skel [-v] <string>
where string is in this format:
The example below assumes you have copied hangup-message-skel to hangup-message for your customized version of hangup-message-skel.
Delete the caller and message lines that are in hangup-message. If you want to detect a name, comment the NMBR line and uncomment the NAME line:
Add your own caller and message lines to hangup-message:
caller="<number>" message="<recording file>"
You can add as many caller-message lines as you want. You would need to record the message files if you want to leave a personalized message.
Use this format for a message name for your recording: <number>.rmd
Server hangup extensions are only executed by the server unless testing.
Execute your custom hangup-message in a terminal window by itself for testing. Only fields used in the script are needed for the input string. To test your custom hangup-message script with a number:
/usr/local/share/ncid/extensions/hangup-message -v "*NMBR*4075551212*"