DTMF Click example.
Description
This example demonstrates the use of DTMF click board by showing the communication between the two click boards connected to PBX system.
The demo application is composed of two sections :
Application Init
Initializes the driver and logger, and displays the selected application mode.
Application Task
Dialing application mode:
- Resets the device settings and dials the selected number. If a call is answered it starts sending desired messages every couple of seconds with constantly checking if a call is still in progress or it's terminated from the other side. Answering application mode:
- Resets the device settings and waits for an incoming call indication, answers the call, and waits for a desired number of messages. The call is terminated after all messages are received successfully.
- Note
- We have used a Yeastar S20 VoIP PBX system for the test, where the click boards are connected to ports 1 and 2 configured as FXS extension with numbers 1000 and 1001 (dialer).
- Author
- Stefan Filipovic