tsearle created an issue (kamailio/kamailio#4505)

### Description

We've encountered one carrier that in the ACK and BYE would add a ;user=phone 
to the RURI, appending it to the contact uri generated in the 200 OK of the 
invite.  This prevents the topos module from doing a successful lookup of the 
tps param

This patch fixes the issue and brings the logic closer in line to topoh

### Troubleshooting

Adding debug statements, I found that when ;user=phone is added, the parameters 
end up in sip_params instead of params.  I've also noticed that topoh checks 
both sip_params and params when doing a parameter lookup but topos only looks 
as params

#### Reproduction

modify the stock sipp uac script as follows

      ACK [next_url];user=phone SIP/2.0

      BYE [next_url];user=phone SIP/2.0



### Additional Information

  * **Kamailio Version** - output of `kamailio -v`

```
version: kamailio 6.0.1 (x86_64/linux) 
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, 
USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, MEM_JOIN_FREE, Q_MALLOC, 
F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, 
USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLOCKLIST, HAVE_RESOLV_RES, 
TLS_PTHREAD_MUTEX_SHARED
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_SEND_BUFFER_SIZE 
262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown 
compiled with gcc 12.2.0
```

* **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`)
-->

```
 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64 
GNU/Linux

No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm

```


-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4505
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!

Reply via email to