FreeCalypso > hg > themwi-system-sw
comparison libutil/dtmf_valid.c @ 39:64b9f0f90726
themwi-test-mtc: handle DTMF from MS
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 03 Sep 2022 14:44:19 -0800 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
38:020ba624bdd8 | 39:64b9f0f90726 |
---|---|
1 /* | |
2 * Here we implement a function that validates DTMF digits which arrive | |
3 * from GSM MS via MNCC_START_DTMF_IND. | |
4 */ | |
5 | |
6 is_valid_dtmf_digit(c) | |
7 { | |
8 switch (c) { | |
9 case '0': | |
10 case '1': | |
11 case '2': | |
12 case '3': | |
13 case '4': | |
14 case '5': | |
15 case '6': | |
16 case '7': | |
17 case '8': | |
18 case '9': | |
19 case '*': | |
20 case '#': | |
21 case 'A': | |
22 case 'B': | |
23 case 'C': | |
24 case 'D': | |
25 return(1); | |
26 default: | |
27 return(0); | |
28 } | |
29 } |