Version 0.1.7 from FTP

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@236 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2001-03-10 19:12:11 +00:00
parent 22318b627d
commit 7157261be4
11 changed files with 272 additions and 207 deletions

View File

@@ -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;
}