SIP re-INVITE: fix media connection change detection

Use the correct variable in address comparison.
The type cast hid the incompatible type from the compiler.

Change-Id: I701150f22f0eb49fae821996358568d60a385035
This commit is contained in:
Neels Hofmeyr 2021-06-01 04:16:18 +02:00
parent 97c7916892
commit 0294e38243
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ static void sip_handle_reinvite(struct sip_call_leg *leg, nua_handle_t *nh, cons
osmo_sockaddr_ntop((struct sockaddr*)&leg->base.addr, ip_addr),
osmo_sockaddr_port((struct sockaddr*)&leg->base.addr));
if (osmo_sockaddr_cmp((struct osmo_sockaddr *)&prev_addr,
(struct osmo_sockaddr *)&leg->base)) {
(struct osmo_sockaddr *)&leg->base.addr)) {
LOGP(DSIP, LOGL_INFO, "re-INVITE changes media connection.\n");
if (other->update_rtp)
other->update_rtp(leg->base.call->remote);