/* $Id: q931.c,v 1.12.2.3 2004/01/13 14:31:26 keil Exp $
*
* code to decode ITU Q.931 call control messages
*
* Author Jan den Ouden
* Copyright by Jan den Ouden
*
* This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference.
*
* Changelog:
*
* Pauline Middelink general improvements
* Beat Doebeli cause texts, display information element
* Karsten Keil cause texts, display information element for 1TR6
*
*/
#include "hisax.h"
#include "l3_1tr6.h"
void
iecpy(u_char * dest, u_char * iestart, int ieoffset)
{
u_char *p;
int l;
p = iestart + ieoffset + 2;
l = iestart[1] - ieoffset;
while (l--)
*dest++ = *p++;
*dest++ = '\0';
}
/*
* According to Table 4-2/Q.931
*/
static
struct MessageType {
u_char nr