sipreg: do not compare port numbers of Contact header
SIP proxies/registrar might rewrite the port number in the Contact header.
E.g. Asterisk with setting rewrite_contact. In such a case expires parameter
from the SIP registrar should also be evaluated.
@@ -164,7 +164,7 @@ static bool contact_handler(const struct sip_hdr *hdr,
if (err)
return false;
- if (!sa_cmp(&host, &reg->laddr, SA_ALL))
+ if (!sa_cmp(&host, &reg->laddr, SA_ADDR))
return false;
err = uri_param_get(&c.auri, &transp, &pval);
