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

version: kamailio 5.6.2 (x86_64/linux) e292ba
CentOS 7 X64


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/issues/3321@github.com>