diff options
Diffstat (limited to 'PICA_client.c')
| -rw-r--r-- | PICA_client.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/PICA_client.c b/PICA_client.c index 0339ef7..12dc708 100644 --- a/PICA_client.c +++ b/PICA_client.c @@ -2811,6 +2811,11 @@ static unsigned int procmsg_CALL_RECEPTION_REPORT(unsigned char *buf, unsigned i r.video_octets = get_le32(buf + 16); r.queuing_delay = get_le16(buf + 20); + /* before the callback: a report that makes the datagrams smaller has to + * reach the sending side as a new payload size first, so that it is not + * still producing the old one while acting on the report */ + PICA_media_peer_report(chan, &r); + if (callbacks.call_reception_report_cb) callbacks.call_reception_report_cb(chan->peer_id, &r); @@ -4904,7 +4909,7 @@ static int PICA_send_call_packet(struct PICA_c2c *chn, unsigned int msgid, uint1 * add more delay to every packet than the rest of the call path * costs together. */ - unsigned char pkt[PICA_MEDIA_LINK_MTU]; + unsigned char pkt[PICA_MEDIA_MAX_LINK_MTU]; unsigned int pktlen = 4 + PICA_PROTO_CALL_PACKET_HDRSIZE + len; if (pktlen > sizeof(pkt)) |
