add the receiver id to voice frames too

This commit is contained in:
sq5bpf 2016-06-13 00:36:01 +02:00 committed by Harald Welte
parent 56b8e44324
commit e03e981038
1 changed files with 4 additions and 4 deletions

View File

@ -161,7 +161,7 @@ void tp_sap_udata_ind(enum tp_sap_data_type type, const uint8_t *bits, unsigned
struct tmv_unitdata_param *tup;
struct msgb *msg;
unsigned char tmpstr[1380+6];
unsigned char tmpstr[1380+13];
ttp = tmvsap_prim_alloc(PRIM_TMV_UNITDATA, PRIM_OP_INDICATION);
tup = &ttp->u.unitdata;
@ -289,10 +289,10 @@ void tp_sap_udata_ind(enum tp_sap_data_type type, const uint8_t *bits, unsigned
for (i=0; i<90; i++)
block[346+i] = type4[342+i] ? -127 : 127;
sprintf(tmpstr,"TRA%2.2x\0",tms->cur_burst.is_traffic);
memcpy(tmpstr+6,block,sizeof(block));
sprintf(tmpstr,"TRA:%2.2x RX:%2.2x\0",tms->cur_burst.is_traffic,tetra_hack_rxid);
memcpy(tmpstr+13,block,sizeof(block));
sendto(tetra_hack_live_socket, (char *)&tmpstr, sizeof(block)+6, 0, (struct sockaddr *)&tetra_hack_live_sockaddr, tetra_hack_socklen);
sendto(tetra_hack_live_socket, (char *)&tmpstr, sizeof(block)+13, 0, (struct sockaddr *)&tetra_hack_live_sockaddr, tetra_hack_socklen);
}
/* sq5bpf: koniec */