diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index 4705e929ef95c68da666b2e4c43082c078032443..366539f9fe4f15ec1c1f8a617733a31f328d0995 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -6604,6 +6604,11 @@ static int bridge_p2p_rtp_write(struct ast_rtp_instance *instance, reconstruct |= (mark << 23); rtpheader[0] = htonl(reconstruct); + if (mark) { + /* make this rtp instance aware of the new ssrc it is sending */ + bridged->ssrc = ntohl(rtpheader[2]); + } + /* Send the packet back out */ res = rtp_sendto(instance1, (void *)rtpheader, len, 0, &remote_address, &ice); if (res < 0) {