mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
Make sure other drivers also zero delivery (thanks to steven davies)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3295 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -368,6 +368,8 @@ static struct ast_frame *phone_exception(struct ast_channel *ast)
|
||||
p->fr.src = type;
|
||||
p->fr.offset = 0;
|
||||
p->fr.mallocd=0;
|
||||
p->fr.delivery.tv_sec = 0;
|
||||
p->fr.delivery.tv_usec = 0;
|
||||
|
||||
phonee.bytes = ioctl(p->fd, PHONE_EXCEPTION);
|
||||
if (phonee.bits.dtmf_ready) {
|
||||
@@ -429,6 +431,8 @@ static struct ast_frame *phone_read(struct ast_channel *ast)
|
||||
p->fr.src = type;
|
||||
p->fr.offset = 0;
|
||||
p->fr.mallocd=0;
|
||||
p->fr.delivery.tv_sec = 0;
|
||||
p->fr.delivery.tv_usec = 0;
|
||||
|
||||
/* Try to read some data... */
|
||||
CHECK_BLOCKING(ast);
|
||||
|
Reference in New Issue
Block a user