call = ast_channel_tech_pvt(ast);
#endif
if (!call || !call->ref) {
+ /* drop the frame, if no ref exists, but return successfull delivery, or asterisk will abort connection */
ast_mutex_unlock(&chan_lock);
if (f != fr) {
ast_frfree(f);
}
- return -1;
+ return 0;
}
len = f->samples;
p = *((unsigned char **)&(f->data));