|
|
@ -4556,6 +4556,7 @@ static int socket_read(int *id, int fd, short events, void *cbdata)
|
|
|
|
drop it, since we don't have a scallno to use for an INVAL */
|
|
|
|
drop it, since we don't have a scallno to use for an INVAL */
|
|
|
|
/* Process as a mini frame */
|
|
|
|
/* Process as a mini frame */
|
|
|
|
f.frametype = AST_FRAME_VOICE;
|
|
|
|
f.frametype = AST_FRAME_VOICE;
|
|
|
|
|
|
|
|
if (iaxs[fr.callno]) {
|
|
|
|
if (iaxs[fr.callno]->voiceformat > 0) {
|
|
|
|
if (iaxs[fr.callno]->voiceformat > 0) {
|
|
|
|
f.subclass = iaxs[fr.callno]->voiceformat;
|
|
|
|
f.subclass = iaxs[fr.callno]->voiceformat;
|
|
|
|
f.datalen = len;
|
|
|
|
f.datalen = len;
|
|
|
@ -4594,6 +4595,7 @@ static int socket_read(int *id, int fd, short events, void *cbdata)
|
|
|
|
ast_log(LOG_WARNING, "Received trunked frame before first full voice frame\n ");
|
|
|
|
ast_log(LOG_WARNING, "Received trunked frame before first full voice frame\n ");
|
|
|
|
iax2_vnak(fr.callno);
|
|
|
|
iax2_vnak(fr.callno);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
ast_mutex_unlock(&iaxsl[fr.callno]);
|
|
|
|
ast_mutex_unlock(&iaxsl[fr.callno]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ptr += len;
|
|
|
|
ptr += len;
|
|
|
|