- don't send audio to local exchange when in TE mode.

This commit is contained in:
MelwareDE 2005-12-20 20:46:51 +00:00
parent 6c431378fc
commit 85a8f1a68d
1 changed files with 5 additions and 0 deletions

View File

@ -1164,6 +1164,11 @@ int capi_write(struct ast_channel *c, struct ast_frame *f)
return 0;
}
if ((!(i->ntmode)) && (i->state != CAPI_STATE_CONNECTED)) {
cc_mutex_unlock(&i->lock);
return 0;
}
if (f->frametype == AST_FRAME_NULL) {
cc_mutex_unlock(&i->lock);
return 0;