diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2021-06-01 04:16:18 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2021-06-01 04:16:19 +0200 |
commit | 0294e38243b8c95f71582e49e3a628963139233d (patch) | |
tree | 32c20b3497c756e8b5c983ecd63e6004c83034a2 | |
parent | 97c7916892da9877a37514f66e3f8c15012f2ef1 (diff) |
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
-rw-r--r-- | src/sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |