Hi Developers,
Using PJSIP v1.7, I found that the current PJMEDIA tonegen only clears
the count of tones once all queued tones have been played out.
Therefore, the tone queue can fill up quickly, once full it prevents
further tones being queued for playout, even though there are less than
the maximum tones allowed that are remaining to be played out,
effectively blocking tone generation for PJMEDIA_TONEGEN_MAX_DIGITS (e.g
32) tones worth of time.
Fix:
See attach diff files. Please excuse the formatting change in c file.
--
BRgds,
Steve King
Design Engineer
Zetron Australasia
Hi again,
Sorry, found bug in previous fix, please ignore previous post.
tonegen.c diff attached.
Cheers,
Steve
On Wed, 2011-02-16 at 08:26 +1000, Steve King wrote:
Hi Developers,
Using PJSIP v1.7, I found that the current PJMEDIA tonegen only clears
the count of tones once all queued tones have been played out.
Therefore, the tone queue can fill up quickly, once full it prevents
further tones being queued for playout, even though there are less than
the maximum tones allowed that are remaining to be played out,
effectively blocking tone generation for PJMEDIA_TONEGEN_MAX_DIGITS (e.g
32) tones worth of time.
Fix:
See attach diff files. Please excuse the formatting change in c file.
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
BRgds,
Steve King
Design Engineer
Zetron Australasia