2 * Copyright (c) 1997, 2000 Hellmuth Michaelis. All rights reserved.
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
13 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 *---------------------------------------------------------------------------
27 * i4b_l3.h - layer 3 header file
28 * ------------------------------
30 * $Id: i4b_l3.h,v 1.7 2005/12/10 23:51:50 elad Exp $
34 * last edit-date: [Thu Apr 27 11:07:01 2000]
36 *---------------------------------------------------------------------------*/
38 #ifndef _NETISDN_I4B_L3_H_
39 #define _NETISDN_I4B_L3_H_
41 extern int utoc_tab
[];
42 extern unsigned char cause_tab_q931
[];
44 extern int i4b_aoc ( unsigned char *, call_desc_t
*cd
);
45 extern void i4b_decode_q931 ( int isdnif
, int msg_len
, u_char
*msg_ptr
);
46 extern int i4b_decode_q931_cs0_ie ( call_desc_t
*cd
, int msg_len
, u_char
*msg_ptr
);
47 extern void i4b_decode_q931_message ( call_desc_t
*cd
, u_char message_type
);
48 extern void i4b_l3_stop_all_timers ( call_desc_t
*cd
);
49 extern void i4b_l3_tx_alert ( call_desc_t
*cd
);
50 extern void i4b_l3_tx_connect ( call_desc_t
*cd
);
51 extern void i4b_l3_tx_connect_ack ( call_desc_t
*cd
);
52 extern void i4b_l3_tx_disconnect ( call_desc_t
*cd
);
53 extern void i4b_l3_tx_release ( call_desc_t
*cd
, int send_cause_flag
);
54 extern void i4b_l3_tx_release_complete ( call_desc_t
*cd
, int send_cause_flag
);
55 extern void i4b_l3_tx_setup ( call_desc_t
*cd
);
56 extern void i4b_l3_tx_status ( call_desc_t
*cd
, u_char q850cause
);
57 extern int i4b_get_dl_stat( call_desc_t
*cd
);
58 extern void i4b_print_frame ( int len
, u_char
*buf
);
59 extern void next_l3state ( call_desc_t
*cd
, int event
);
60 extern const char *print_l3state ( call_desc_t
*cd
);
61 extern unsigned char setup_cr ( call_desc_t
*cd
, unsigned char cr
);
62 extern void T303_start ( call_desc_t
*cd
);
63 extern void T303_stop ( call_desc_t
*cd
);
64 extern void T305_start ( call_desc_t
*cd
);
65 extern void T305_stop ( call_desc_t
*cd
);
66 extern void T308_start ( call_desc_t
*cd
);
67 extern void T308_stop ( call_desc_t
*cd
);
68 extern void T309_start ( call_desc_t
*cd
);
69 extern void T309_stop ( call_desc_t
*cd
);
70 extern void T310_start ( call_desc_t
*cd
);
71 extern void T310_stop ( call_desc_t
*cd
);
72 extern void T313_start ( call_desc_t
*cd
);
73 extern void T313_stop ( call_desc_t
*cd
);
75 #endif /* !_NETISDN_I4B_L3_H_ */