FreeCalypso > hg > themwi-system-sw
diff mgw/pstn2gsm.c @ 205:0047c4c08d9e
mgw: accept the new TRAUlike RTP format
in addition to standard, old BFI and zero-length payload formats
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 06 Apr 2023 19:50:09 -0800 |
parents | cf1ba5d65188 |
children |
line wrap: on
line diff
--- a/mgw/pstn2gsm.c Tue Apr 04 21:21:04 2023 -0800 +++ b/mgw/pstn2gsm.c Thu Apr 06 19:50:09 2023 -0800 @@ -136,7 +136,8 @@ break; } addrlen = sizeof(struct sockaddr_in); - sendto(ep->rtp_gsm.rtp_fd, &pkt, ep->gsm_rtp_pkt_size, 0, + sendto(ep->rtp_gsm.rtp_fd, &pkt, + RTP_PACKET_HDR_SIZE + ep->gsm_payload_len, 0, (struct sockaddr *) &ep->rtp_gsm.remote_addr, addrlen); }