added bad dtmf command voice prompt

pull/12/head
Tom Early 7 years ago
parent 43abd34b2b
commit 699bd57bdb

@ -70,12 +70,12 @@ int main(int argc, char *argv[])
char RADIO_ID[21]; char RADIO_ID[21];
if (argc != 4) { if (argc != 4) {
printf("Usage: %s <module> <dvtoolFile> <txtMsg>\n", argv[0]); printf("Usage: %s <module> <datFile> <txtMsg>\n", argv[0]);
printf("Where...\n"); printf("Where...\n");
printf(" <module> is one of your modules: A, B or C\n"); printf(" <module> is one of your modules: A, B or C\n");
printf(" <dvtoolFile> is an installed voice file in the configured\n"); printf(" <datFile> is an installed voice file in the configured\n");
printf(" directory, for example \"unlinked.dat\"\n"); printf(" directory, for example \"unlinked.dat\"\n");
printf(" <txtMsg> is an up to 20-character text message\n"); printf(" <txtMsg> is an up to 20-character text message\n");
return 0; return 0;
} }
char module = argv[1][0]; char module = argv[1][0];

Binary file not shown.

@ -59,6 +59,7 @@ do
GetLetter ${CMD:2:2} GetLetter ${CMD:2:2}
if [[ "$LETTER" == "$BAD" ]]; then if [[ "$LETTER" == "$BAD" ]]; then
echo "bad script letter index: '${CMD:2:2}'" echo "bad script letter index: '${CMD:2:2}'"
qnvoice $LOCAL_BAND baddtmfcmd.dat "Bad DTMF CMD"
else else
qnremote $LOCAL_BAND $LUSER ${LETTER}X >/dev/null 2>&1 qnremote $LOCAL_BAND $LUSER ${LETTER}X >/dev/null 2>&1
fi fi
@ -84,7 +85,8 @@ do
REMOTE_BAND=$LETTER REMOTE_BAND=$LETTER
if [[ "$RMT" == "$BAD" ]] || [[ "$REMOTE_NODE" == "$BAD" ]] || [[ "$REMOTE_BAND" == "$BAD" ]]; then if [[ "$RMT" == "$BAD" ]] || [[ "$REMOTE_NODE" == "$BAD" ]] || [[ "$REMOTE_BAND" == "$BAD" ]]; then
echo "nonsense link command: '$CMD'" echo "Bad link command: '$CMD'"
qnvoice $LOCAL_BAND baddtmfcmd.dat "Bad DTMF CMD"
else else
echo linking local band $LOCAL_BAND to remote node ${RMT}${REMOTE_NODE} $REMOTE_BAND requested by $LUSER echo linking local band $LOCAL_BAND to remote node ${RMT}${REMOTE_NODE} $REMOTE_BAND requested by $LUSER
qnremote ${LOCAL_BAND} "$LUSER" ${RMT}${REMOTE_NODE}${REMOTE_BAND}L >/dev/null 2>&1 qnremote ${LOCAL_BAND} "$LUSER" ${RMT}${REMOTE_NODE}${REMOTE_BAND}L >/dev/null 2>&1
@ -92,6 +94,7 @@ do
fi fi
else else
echo "Bad command: '$CMD'" echo "Bad command: '$CMD'"
qnvoice $LOCAL_BAND baddtmfcmd.dat "Bad DTMF CMD"
fi fi
fi fi
else else

Loading…
Cancel
Save

Powered by TurnKey Linux.