Module: kamailio Branch: master Commit: 3322bea764036deba6340e435c257244d511a11f URL: https://github.com/kamailio/kamailio/commit/3322bea764036deba6340e435c257244d511a11f
Author: Daniel-Constantin Mierla <mico...@gmail.com> Committer: Daniel-Constantin Mierla <mico...@gmail.com> Date: 2025-07-17T09:16:23+02:00 usrloc: use proto from socket for keepalive via header --- Modified: src/modules/usrloc/ul_keepalive.c --- Diff: https://github.com/kamailio/kamailio/commit/3322bea764036deba6340e435c257244d511a11f.diff Patch: https://github.com/kamailio/kamailio/commit/3322bea764036deba6340e435c257244d511a11f.patch --- diff --git a/src/modules/usrloc/ul_keepalive.c b/src/modules/usrloc/ul_keepalive.c index a0704da2a69..0e6177608f9 100644 --- a/src/modules/usrloc/ul_keepalive.c +++ b/src/modules/usrloc/ul_keepalive.c @@ -104,6 +104,7 @@ int ul_ka_urecord(urecord_t *ur) str sproto = STR_NULL; sip_uri_t duri; char dproto; + int vproto; struct hostent *he; socket_info_t *ssock; dest_info_t idst; @@ -224,18 +225,20 @@ int ul_ka_urecord(urecord_t *ur) via_ipv6 = 1; } vaddr = ssock->useinfo.name; + vproto = ssock->useinfo.proto; } else { if(ssock->address.af == AF_INET6) { via_ipv6 = 1; } vaddr = ssock->address_str; + vproto = ssock->proto; } if(ssock->useinfo.port_no > 0) { vport = ssock->useinfo.port_no_str; } else { vport = ssock->port_no_str; } - get_valid_proto_string(dproto, 1, 1, &sproto); + get_valid_proto_string(vproto, 1, 1, &sproto); bcnt++; gettimeofday(&tv, NULL); _______________________________________________ Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org To unsubscribe send an email to sr-dev-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!