### Description
I have the following URI:
```INVITE sip:123456789;phone-context=+1@192.168.1.1;transport=udp;user=phone SIP/2.0```
I want to remove the phone-context parameter from the URI, so I've tried to use the
function:
```uri_param_rm``` from the siputils package:
```
if (uri_param_rm("phone-context")) {
t_relay_to_udp("192.168.1.2", "5060");
exit;
}
```
But this doesn't change anything, this parameter is still present in the URI.
I tried to use ```msg_apply_changes``` (just in case) function before relaying it - the
result it the same, the parameter is still there.
Also, I've noticed that this function is not working either:
```
if (uri_param_any("phone-context")) {
xlog("L_INFO", "Phone Context");
}
```
while this one:
```get_uri_param("phone-context", "$var(phoneCtx)");``` - seems to be
working fine.
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
version: kamailio 5.6.2 (x86_64/linux) e292ba
```
* **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`)
-->
```
CentOS 7 X64
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3321
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3321(a)github.com>