Skip to content

Commit aede363

Browse files
Merge pull request #2914 from signalwire/fix_old_port_log
2 parents 5aee265 + 2059e93 commit aede363

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/switch_rtp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,7 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d
12061206
break;
12071207
}
12081208

1209-
old = rtp_session->remote_port;
1209+
old = rtp_session->eff_remote_port;
12101210

12111211
//tx_host = switch_get_addr(bufa, sizeof(bufa), rtp_session->from_addr);
12121212
old_host = switch_get_addr(bufb, sizeof(bufb), rtp_session->remote_addr);
@@ -7649,7 +7649,7 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
76497649
if (!switch_cmp_addr(rtp_session->rtp_from_addr, rtp_session->remote_addr, SWITCH_FALSE)) {
76507650
if (++rtp_session->autoadj_tally >= rtp_session->autoadj_threshold) {
76517651
const char *err;
7652-
uint32_t old = rtp_session->remote_port;
7652+
uint32_t old = rtp_session->eff_remote_port;
76537653
const char *tx_host;
76547654
const char *old_host;
76557655
char bufa[50], bufb[50];

0 commit comments

Comments
 (0)