aboutsummaryrefslogtreecommitdiffstats
path: root/src/dtmf_scheduler.c
AgeCommit message (Collapse)AuthorFilesLines
2013-05-23dtmf: Check the tones that are put into the DTMF scheduler and reject a 0Holger Hans Peter Freyther1-0/+3
Playing tones should be printable ascii characters, begin by checking for NULL (as it happened before) as the first illegal tone. This is an attempt to make the API more robust and detect errors more early.
2013-05-23dtmf: Make the API more robust and avoid inconsistenciesHolger Hans Peter Freyther1-3/+4
Because of the issue parsing the MGCP request a '\0' was added to the queue. This lead to the dtmf scheduler believing that a play was in progress while the playing code didn't play anything. This lead to the queue to be stuck and nothing being played at all. Return the number of tones that should be played and stop using strlen on the tones.
2013-05-23dtmf: Improve the log message and print the number of messages queuedHolger Hans Peter Freyther1-0/+5
Print the number of log messages that are queued in the error message.
2012-12-16dtmf: Schedule DTMF tones for the MTN hardwareHolger Hans Peter Freyther1-0/+59
Create a simple queue for pending DTMF tones, play them using the MTN API, and then send the next tones once the playback is complete. The callback and scheduling is done from the same context so no locking needs to be done.