Default the bandwidth of an ISDN B channel to 65536bps

This commit is contained in:
Brian Somers 2000-08-16 09:06:59 +00:00
parent 595a9d6ebc
commit 2ceee5e9a7

View File

@ -246,11 +246,13 @@ static int
i4b_Speed(struct physical *p)
{
struct termios ios;
int ret;
if (tcgetattr(p->fd, &ios) == -1)
return 0;
if (tcgetattr(p->fd, &ios) == -1 ||
(ret = SpeedToInt(cfgetispeed(&ios))) == 0)
ret = 65536;
return SpeedToInt(cfgetispeed(&ios));
return ret;
}
static const char *