commit | 9905b18811af33aa87ae2920ec13e84a33dfa1dc | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <zecke@selfish.org> | Tue May 21 17:16:24 2013 +0200 |
committer | Holger Hans Peter Freyther <zecke@selfish.org> | Thu May 23 09:59:25 2013 +0200 |
tree | 4f8584ebab10180aaec911678b50575c8e369419 | |
parent | 6c981176abb0aa4e0edd63a107a6fb1b8e780cbb [diff] |
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.