George, Daniel: please have a look here:
https://github.com/kamailio/kamailio/issues/953
Could it be an answer to the George's issue? I didn't check this deeper
but maybe adding the npdi parameter is changing the parser behavior as
pointed on this issue, would have to see the config file to confirm it.
BR,
Andrew
George Diamantopoulos wrote:
Hello Daniel!
Thanks for the reply. Here's the first line of a request where
uri_param() fails to detect user=phone is already present. IPs, phone
numbers and domains have been censored, but most properties (number of
parts, length etc) have been preserved where possible:
INVITE sip:+306974000000@2.2.2.2
<mailto:sip%3A%2B306974000000@2.2.2.2>;user=phone SIP/2.0
The example code in my original message results in the following (the
script also replaces the domain part and adds the npdi username parameter):
INVITE sip:+306974000000;npdi@my.domain.tld
<mailto:npdi@my.domain.tld>;user=phone;user=phone SIP/2.0
BR,
George