diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2000-12-28 19:21:06 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2000-12-28 19:21:06 +0000 |
commit | 8011b6fef5ecc306c25468f52e4526b3c7380352 (patch) | |
tree | 9309a7657dde513262c672f2118cd8516a4dccca /channels | |
parent | f1f8d090c614d75a02e41932d2003375a0712c07 (diff) |
Version 0.1.6 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@227 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_phone.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_phone.c b/channels/chan_phone.c index 3bdfdfd26..f46083a58 100755 --- a/channels/chan_phone.c +++ b/channels/chan_phone.c @@ -126,6 +126,7 @@ static int phone_digit(struct ast_channel *ast, char digit) return -1; } ioctl(p->fd, PHONE_PLAY_TONE, digit); + p->lastformat = -1; 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_CODEC, ULAW); ioctl(i->fd, PHONE_PLAY_START); + i->lastformat = -1; } } else { 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_REC_STOP); i->dialtone = 0; + i->lastformat = -1; } } if (phonee.bits.pstn_ring) { |