Add test program for windowing, implement proper windowing

git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@79 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
Mark Spencer
2004-03-29 08:09:01 +00:00
parent d00abddee3
commit 91b4a60c1f
7 changed files with 291 additions and 9 deletions

9
pri.c
View File

@@ -72,8 +72,8 @@ struct pri *pri_new(int fd, int node, int switchtype)
p->q931_rxcount = 0;
p->q931_txcount = 0;
#endif
/* Start Q.921 layer */
q921_start(p, 1);
/* Start Q.921 layer, Wait if we're the network */
q921_start(p, p->localtype == PRI_CPE);
}
return p;
}
@@ -338,6 +338,11 @@ void pri_set_overlapdial(struct pri *pri,int state)
pri->overlapdial = state;
}
int pri_fd(struct pri *pri)
{
return pri->fd;
}
void pri_dump_info(struct pri *pri)
{
#ifdef LIBPRI_COUNTERS