Module: kamailio Branch: 6.1 Commit: 2fa6ee9585773920cf57ddc52071dbeaea1f1b55 URL: https://github.com/kamailio/kamailio/commit/2fa6ee9585773920cf57ddc52071dbeaea1f1b55
Author: Xenofon Karamanos <[email protected]> Committer: Xenofon Karamanos <[email protected]> Date: 2026-07-01T14:24:01Z dispatcher: Fix bug of protocol normalization - Apply normalization on the provided URIs (cherry picked from commit 52bd84b42e9e25774868ee201b629a0887f9b791) --- Modified: src/modules/dispatcher/dispatch.c --- Diff: https://github.com/kamailio/kamailio/commit/2fa6ee9585773920cf57ddc52071dbeaea1f1b55.diff Patch: https://github.com/kamailio/kamailio/commit/2fa6ee9585773920cf57ddc52071dbeaea1f1b55.patch --- diff --git a/src/modules/dispatcher/dispatch.c b/src/modules/dispatcher/dispatch.c index 86f0d922a58..4616639186f 100644 --- a/src/modules/dispatcher/dispatch.c +++ b/src/modules/dispatcher/dispatch.c @@ -4300,7 +4300,22 @@ int ds_is_addr_from_list(sip_msg_t *_m, int group, str *uri, int mode) return -1; } tport = puri.port_no; - tproto = puri.proto; + + if(puri.proto == PROTO_NONE) { + if(str2ipx(&puri.host) != NULL) { + tproto = PROTO_UDP; + } else { + if(puri.port_no != 0) { + tproto = (puri.type == SIP_URI_T) ? PROTO_UDP : PROTO_TCP; + } else { + tproto = PROTO_NONE; + } + } + } else { + /* Copy the proto out of the URI */ + tproto = puri.proto; + } + dns_set_local_ttl(ds_dns_ttl); if(ds_dns_mode & DS_DNS_MODE_QSRV) { sport = tport; _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
