/* Message Type */
m->MesType = Mes[IOff++];
+ /* Store tei */
+ m->Tei = tei;
+
/* d'oh a little ugly but this saves us from:
* a) doing Q.921 work in the lower levels (extracting the TEI ourselves)
* b) adding a tei parameter to _all_ Proc functions
}
}
- Q931Log(pTrunk, Q931_LOG_DEBUG, "Received message from Q.921 (ind %d, tei %d, size %d)\nMesType: %d, CRVFlag %d (%s), CRV %d (Dialect: %d)\n", ind, tei, Size,
+ Q931Log(pTrunk, Q931_LOG_DEBUG, "Received message from Q.921 (ind %d, tei %d, size %d)\nMesType: %d, CRVFlag %d (%s), CRV %d (Dialect: %d)\n", ind, m->Tei, Size,
m->MesType, m->CRVFlag, m->CRVFlag ? "Terminator" : "Originator", m->CRV, pTrunk->Dialect);
RetCode = Q931Umes[pTrunk->Dialect][m->MesType](pTrunk, Mes, (Q931mes_Generic *)pTrunk->L3Buf, IOff, Size - L2HSize);
return ret;
}
+ /* store TEI in call */
+ pTrunk->call[callIndex].Tei = pMes->Tei;
+
/* Send setup indication to user */
ret = Q931Tx34(pTrunk, (L3UCHAR*)pMes, pMes->Size);
if (ret != Q931E_NO_ERROR) {
provided in case a proprietary variant needs it.
*****************************************************************************/
-typedef struct
-{
+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 */