Skip to content

Commit

Permalink
When allocating a new port with the N modifier, take into a
Browse files Browse the repository at this point in the history
consideration direction flag, and use a different IP address
if necessary.

This is to fix some of the issues with attended call
transfers.
  • Loading branch information
sobomax committed Dec 9, 2024
1 parent 1643ff3 commit a084561
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/commands/rpcpv1_ul.c
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,8 @@ rtpp_command_ul_handle(const struct rtpp_cfg *cfsp, struct rtpp_command *cmd, in
if (fd == NULL || ulop->new_port != 0) {
if (ulop->local_addr != NULL) {
spa->rtp->stream[sidx]->laddr = ulop->local_addr;
} else if (spa->rtp->stream[sidx]->laddr != ulop->lia[0]) {
spa->rtp->stream[sidx]->laddr = ulop->lia[0];
}
if (rtpp_create_listener(cfsp, spa->rtp->stream[sidx]->laddr, &lport, fds) == -1) {
if (fd != NULL)
Expand Down

0 comments on commit a084561

Please sign in to comment.