9
0
Fork 0
Commit Graph

4 Commits

Author SHA1 Message Date
Holger Hans Peter Freyther e48231c539 dtmf: Check the tones that are put into the DTMF scheduler and reject a 0
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-23 09:59:25 +02:00
Holger Hans Peter Freyther 9905b18811 dtmf: Make the API more robust and avoid inconsistencies
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-23 09:59:25 +02:00
Holger Hans Peter Freyther 6c981176ab dtmf: Improve the log message and print the number of messages queued
Print the number of log messages that are queued in the error message.
2013-05-23 09:59:25 +02:00
Holger Hans Peter Freyther d74ac33574 dtmf: Schedule DTMF tones for the MTN hardware
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.
2012-12-16 11:33:27 +01:00