diff options
author | Mark Spencer <markster@digium.com> | 2001-03-10 19:12:11 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2001-03-10 19:12:11 +0000 |
commit | 7157261be4bc6700118cb8a405302a61a8d91c8b (patch) | |
tree | c16bdd5583e05977a7893075e3b541e1a3afa073 /channels/chan_modem.c | |
parent | 22318b627d954c5a555abe5a5b002af5855e5023 (diff) |
Version 0.1.7 from FTP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@236 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_modem.c')
-rwxr-xr-x | channels/chan_modem.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/channels/chan_modem.c b/channels/chan_modem.c index fc45194d3..247149c26 100755 --- a/channels/chan_modem.c +++ b/channels/chan_modem.c @@ -227,7 +227,7 @@ int ast_modem_read_response(struct ast_modem_pvt *p, int timeout) timeout *= 1000; strncpy(p->response, "(No Response)", sizeof(p->response)); do { - res = ast_waitfor_n_fd(&p->fd, 1, &timeout); + res = ast_waitfor_n_fd(&p->fd, 1, &timeout, NULL); if (res < 0) { return -1; } @@ -244,7 +244,7 @@ int ast_modem_expect(struct ast_modem_pvt *p, char *result, int timeout) timeout *= 1000; strncpy(p->response, "(No Response)", sizeof(p->response)); do { - res = ast_waitfor_n_fd(&p->fd, 1, &timeout); + res = ast_waitfor_n_fd(&p->fd, 1, &timeout, NULL); if (res < 0) { return -1; } @@ -432,7 +432,7 @@ struct ast_channel *ast_modem_new(struct ast_modem_pvt *i, int state) snprintf(tmp->name, sizeof(tmp->name), "Modem[%s]/%s", i->mc->name, i->dev + 5); tmp->type = type; tmp->fd = i->fd; - tmp->format = i->mc->formats; + tmp->nativeformats = i->mc->formats; tmp->state = state; if (state == AST_STATE_RING) tmp->rings = 1; @@ -855,3 +855,8 @@ char *description() return desc; } +char *key() +{ + return ASTERISK_GPL_KEY; +} + |