cleanup from generic message header change

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@138 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Anthony Minessale 2007-05-24 14:30:36 +00:00
parent 2111722eb0
commit 0187adfae7
1 changed files with 3 additions and 13 deletions

View File

@ -67,23 +67,13 @@ static L3INT zap_isdn_931_34(void *pvt, L2UCHAR *msg, L2INT mlen)
zap_isdn_data_t *data = span->isdn_data;
Q931mes_Generic *gen = (Q931mes_Generic *) msg;
Q931mes_Generic * restart = (Q931mes_Generic*)msg;
L3INT ieoff = Q931GetIEOffset(restart->RestartInd);
Q931ie_RestartInd * restartind = (void *)(&restart->buf + (ieoff * sizeof(restart->buf[1])));
assert(span != NULL);
assert(data != NULL);
printf("WTF: %d", ((Q931mes_Generic*)gen)->Size);
zap_log(ZAP_LOG_DEBUG, "Yay I got an event! %d %d\n", gen->MesType, ((Q931mes_Generic*)gen)->Size);
zap_log(ZAP_LOG_DEBUG, "send ack %d\n", restartind->Class);
zap_log(ZAP_LOG_DEBUG, "send ack %d\n", ((Q931mes_Generic*)gen)->Size);
printf("XXXXXXXXXXXXx");
zap_log(ZAP_LOG_DEBUG, "Yay I got an event! Type:[%d] Size:[%d]\n", gen->MesType, gen->Size);
gen->MesType = Q931mes_RESTART_ACKNOWLEDGE;
Q931Rx43(&data->q931, msg, 12);
Q931Rx43(&data->q931, msg, gen->Size);
return 0;
}