From b53c31d3f3b7087f90a7e293ccf309846c7943ab Mon Sep 17 00:00:00 2001
From: Stefan Knoblich <stkn@freeswitch.org>
Date: Mon, 3 Nov 2008 20:55:26 +0000
Subject: [PATCH] Fix OPENZAP-32 (and possibly others), thanks to Lukasz
 Kutkowski for spotting this...

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@607 a93c3328-9c30-0410-af19-c9cd2b2d52af
---
 libs/openzap/src/isdn/include/Q931.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libs/openzap/src/isdn/include/Q931.h b/libs/openzap/src/isdn/include/Q931.h
index 9877912f79..b9c1cd3d94 100644
--- a/libs/openzap/src/isdn/include/Q931.h
+++ b/libs/openzap/src/isdn/include/Q931.h
@@ -563,10 +563,13 @@ typedef struct {
 	L3UINT		Size;           /* Size of message in bytes             */
 	L3UCHAR		ProtDisc;       /* Protocol Discriminator               */
 	L3UCHAR		MesType;        /* Message type                         */
-	L3UCHAR		Tei;            /* TEI                                  */
 	L3UCHAR		CRVFlag;        /* Call reference value flag            */
 	L3INT		CRV;            /* Call reference value                 */
 
+	/* WARNING: don't touch anything above this line (TODO: use Q931mes_Header directly to make sure it's the same) */
+
+	L3UCHAR		Tei;            /* TEI                                  */
+
 	ie		Shift;
 	ie		MoreData;
 	ie		SendComplete;