mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-02 10:22:46 +00:00
Version 0.1.6 from FTP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@227 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -126,6 +126,7 @@ static int phone_digit(struct ast_channel *ast, char digit)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
ioctl(p->fd, PHONE_PLAY_TONE, digit);
|
ioctl(p->fd, PHONE_PLAY_TONE, digit);
|
||||||
|
p->lastformat = -1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -634,6 +635,7 @@ static void phone_check_exception(struct phone_pvt *i)
|
|||||||
ioctl(i->fd, PHONE_PLAY_STOP);
|
ioctl(i->fd, PHONE_PLAY_STOP);
|
||||||
ioctl(i->fd, PHONE_PLAY_CODEC, ULAW);
|
ioctl(i->fd, PHONE_PLAY_CODEC, ULAW);
|
||||||
ioctl(i->fd, PHONE_PLAY_START);
|
ioctl(i->fd, PHONE_PLAY_START);
|
||||||
|
i->lastformat = -1;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (i->dialtone) {
|
if (i->dialtone) {
|
||||||
@@ -647,6 +649,7 @@ static void phone_check_exception(struct phone_pvt *i)
|
|||||||
ioctl(i->fd, PHONE_PLAY_STOP);
|
ioctl(i->fd, PHONE_PLAY_STOP);
|
||||||
ioctl(i->fd, PHONE_REC_STOP);
|
ioctl(i->fd, PHONE_REC_STOP);
|
||||||
i->dialtone = 0;
|
i->dialtone = 0;
|
||||||
|
i->lastformat = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (phonee.bits.pstn_ring) {
|
if (phonee.bits.pstn_ring) {
|
||||||
|
Reference in New Issue
Block a user