copied VD to wrong address

pull/1/head
Tom Early 8 years ago
parent 3be1b6b5da
commit 5ec2cd2f90

@ -1494,12 +1494,12 @@ void CG2_ircddb::process()
} }
} }
} }
} else { } else { // recvlen != 58
for (int i=0; i<3; i++) { for (int i=0; i<3; i++) {
if (band_txt[i].streamID == rptrbuf.vpkt.streamid) { if (band_txt[i].streamID == rptrbuf.vpkt.streamid) {
time(&band_txt[i].last_time); time(&band_txt[i].last_time);
if ((rptrbuf.vpkt.ctrl & 0x40) != 0) { if ((rptrbuf.vpkt.ctrl & 0x40) != 0) { // end of voice data
if (dtmf_buf_count[i] > 0) { if (dtmf_buf_count[i] > 0) {
dtmf_file = dtmf_dir; dtmf_file = dtmf_dir;
dtmf_file.push_back('/'); dtmf_file.push_back('/');

@ -309,7 +309,7 @@ bool CMMDVMModem::ProcessMMDVM(const int len, const unsigned char *raw)
printf("INFO: ProcessMMDVM: sent header to port %u pkt = '%s\n", G2_IN_PORT, std::string((char *)gpkt.vpkt.hdr.rpt1, 36).c_str()); printf("INFO: ProcessMMDVM: sent header to port %u pkt = '%s\n", G2_IN_PORT, std::string((char *)gpkt.vpkt.hdr.rpt1, 36).c_str());
} else if (21 == len) { // ambe } else if (21 == len) { // ambe
gpkt.remaining = 0x16; gpkt.remaining = 0x16;
memcpy(gpkt.vpkt.vasd.text, mpkt.voice.ambe, 12); memcpy(gpkt.vpkt.vasd.voice, mpkt.voice.ambe, 12);
int ret = SendTo(msock, gpkt.pkt_id, 29, G2_INTERNAL_IP, G2_IN_PORT); int ret = SendTo(msock, gpkt.pkt_id, 29, G2_INTERNAL_IP, G2_IN_PORT);
if (ret != 29) { if (ret != 29) {
printf("ERROR: ProcessMMDVM: Could not write gateway voice packet\n"); printf("ERROR: ProcessMMDVM: Could not write gateway voice packet\n");

Loading…
Cancel
Save

Powered by TurnKey Linux.