btriller created an issue (kamailio/kamailio#4765)
### Description
When using `ds_is_from_list()` with a URI, it does not find a target if URI
does not include matching transport parameter resp. transport is ignored via
`ds_is_from_list()`'s flags parameter.
This worked on 6.0 and changed with 9f3b6ab377160e0fd96d5a6616c845edc83a14e9.
There's a note about normalization of the default transport for destination
list entries according to RFC 3263, but one could argue that this normalization
should also be applied to given URIs?
#### Reproduction
dispatcher.list
```
1 sip:127.0.0.1
```
kamailio.cfg
```
#!KAMAILIO
log_stderror=yes
debug=2
auto_aliases=no
loadmodule "sl.so"
loadmodule "pv.so"
loadmodule "xlog.so"
loadmodule "dispatcher.so"
modparam("dispatcher", "list_file", "./dispatcher.list")
listen=udp:127.0.0.1:5070
request_route {
$vn(uri) = "sip:127.0.0.1";
if ds_is_from_list("1", "5", "$vn(uri)") xlog("$vn(uri) found\n");
else xlog("$vn(uri) not found\n");
$vn(uri) = "sip:127.0.0.1;transport=udp";
if ds_is_from_list("1", "5", "$vn(uri)") xlog("$vn(uri) found\n");
else xlog("$vn(uri) not found\n");
sl_send_reply("200","OK");
exit;
}
```
#### Log Messages
```
0(3868425) ERROR: <script>: sip:127.0.0.1 not found
0(3868425) ERROR: <script>: sip:127.0.0.1;transport=udp found
```
### Possible Solutions
* Ignore transport via `ds_is_from_list()`'s `flags` parameter
* Add transport parameter to given URI
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
version: kamailio 6.1.3 (x86_64/Linux)
```
* **Operating System**:
<!--
Details about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu
16.04, CentOS 7.1, ...), MacOS, xBSD, Solaris, ...;
Kernel details (output of `lsb_release -a` and `uname -a`)
-->
```
Description: Debian GNU/Linux 13 (trixie)
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4765
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/[email protected]>_______________________________________________
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!