DTMF - telephone keypad codes

This example shows how to use DTMF sequence during a phone call.

Configuration

PLMN channel enabled (a valid SIM card must be installed).

Users

In user list, add the users enabled to control the outputs:

NAME:       Fourier
TYPE:       TELEPHONE
IDENTIFIER: +3398765432
GROUP:
START:      01/01/2000 00:00
STOP:       31/12/2099 23:59
WEEKDAYS:   YYYYYYY
TICKETS:    UNLIMITED
NAME:       Maxwell
TYPE:       TELEPHONE
IDENTIFIER: +4487654912
GROUP:
START:      01/01/2000 00:00
STOP:       31/12/2099 23:59
WEEKDAYS:   YYYYYYY
TICKETS:    UNLIMITED
NAME:       Newton
TYPE:       TELEPHONE
IDENTIFIER: +4412345678
GROUP:
START:      01/01/2000 00:00
STOP:       31/12/2099 23:59
WEEKDAYS:   YYYYYYY
TICKETS:    UNLIMITED

Rules

Rule 001 is triggered on incoming call from enabled users.
No conditions are set.
Answer the incoming call and play an audio message "intro.wav".

AnswerCall
↯ Call from user
✛
✛
✛
✛
✛
> ATA
> AT+AUDIO=intro.wav
>
>
>

Rule 002 if a keyboard code is received during the active call.
Condition: the user entered the sequence 1*.
Output 1 turned ON and audio message "out1.wav" is played.

DTMF.1
↯ DTMF code received
✛ PLMN - Last DTMF Code Received = 1
✛
✛
✛
✛
> out1=ON
> AT+AUDIO=out1.wav
>
>
>

Rule 003 if a keyboard code is received during the active call.
Condition: the user entered the sequence 2*.
Output 2 turned ON and audio message "out2.wav" is played.

DTMF.2
↯ DTMF code received
✛ PLMN - Last DTMF Code Received = 2
✛
✛
✛
✛
> out2=ON
> AT+AUDIO=out2.wav
>
>
>

Rule 004 if a keyboard code is received during the active call.
Condition: the user entered the sequence 9*.
The audio message "intro.wav" is played.

DTMF.9
↯ DTMF code received
✛ PLMN - Last DTMF Code Received = 9
✛
✛
✛
✛
> AT+AUDIO=intro.wav
>
>
>
>