Logically separate Q.921 TEI link processing from D channel control.

This is in anticipation of extracting a layer 2 link structure out of
struct pri.

Also fixes Q.921 timer value access.  The timer access must always be on
the D channel control structure (Master).


git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@2063 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
Richard Mudgett 2010-10-21 16:14:54 +00:00
parent cf456d41e2
commit cd588eccce
2 changed files with 749 additions and 607 deletions

View File

@ -189,7 +189,7 @@ static inline int Q921_ADD(int a, int b)
extern void q921_dump(struct pri *pri, q921_h *h, int len, int showraw, int txrx);
/* Bring up the D-channel */
extern void q921_start(struct pri *pri);
void q921_start(struct pri *link);
//extern void q921_reset(struct pri *pri, int reset_iqueue);
@ -197,7 +197,7 @@ extern pri_event *q921_receive(struct pri *pri, q921_h *h, int len);
extern int q921_transmit_iframe(struct pri *pri, int tei, void *buf, int len, int cr);
extern int q921_transmit_uiframe(struct pri *pri, void *buf, int len);
int q921_transmit_uiframe(struct pri *link, void *buf, int len);
extern pri_event *q921_dchannel_up(struct pri *pri);

1352
q921.c

File diff suppressed because it is too large Load Diff