diff --git a/libs/openzap/src/zap_isdn.c b/libs/openzap/src/zap_isdn.c index 7da934b0bb..f88f120231 100644 --- a/libs/openzap/src/zap_isdn.c +++ b/libs/openzap/src/zap_isdn.c @@ -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; }