Extra check for voice frames.
git-svn-id: http://yate.null.ro/svn/yate/trunk@216 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
93e54b3442
commit
18c25f932b
|
@ -901,6 +901,10 @@ void YateIAXConnection::sourceAudio(void *buffer, int len, int format)
|
|||
format &= s_ast_formats;
|
||||
if (m_muted || !format)
|
||||
return;
|
||||
if (!buffer || (len < 0) || (len > 1024)) {
|
||||
Debug("IAXAudio",DebugFail,"Invalid buffer=%p or len=%d [%p]",buffer,len,this);
|
||||
return;
|
||||
}
|
||||
if (!getSource()) {
|
||||
// Exact match required - incoming data must be a single format
|
||||
const char *frm = lookup(format,dict_iaxformats);
|
||||
|
|
Loading…
Reference in New Issue