Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delayed packets causing new rtp stream to be dropped #103

Open
bobert13 opened this issue Jan 27, 2020 · 0 comments
Open

delayed packets causing new rtp stream to be dropped #103

bobert13 opened this issue Jan 27, 2020 · 0 comments

Comments

@bobert13
Copy link

Hi,

I'm using an old version (unfortunately upgrading is not an option at the moment), and we're having issues that after a new port is negotiated (callee reINVITEthen 200OK), the callee is briefly sending RTP from the old port, which causes RTPproxy to fill in the old port as the new stream and "forget" the new port.
i.e. rxmit_packets: callee's address filled in .....

from what i can tell, this is occurring due to the "rxmit_packets" function in main.c, if i change it as below, will this address the issue by instituting a .01 second lag before the final fill-in? could this cause other issues?

change from:

 if (sp->prev_addr[ridx] == NULL || memcmp(sp->prev_addr[ridx], &packet->raddr, packet->rlen) != 0)
 				sp->canupdate[ridx] = 0;

to:

if ((sp->prev_addr[ridx] == NULL || memcmp(sp->prev_addr[ridx], &packet->raddr, packet->rlen) != 0) && (dtime - sp->last_update[ridx] > 0.01))
				sp->canupdate[ridx] = 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant