Default the bandwidth of an ISDN B channel to 65536bps
This commit is contained in:
parent
595a9d6ebc
commit
2ceee5e9a7
@ -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 *
|
||||
|
Loading…
Reference in New Issue
Block a user