Greetings,
I'm testing some portability scenarios with carriers and i've ran into some issues.
Take this example URI from ETSI TR 184 003 ( https://www.etsi.org/deliver/etsi_tr/184000_184099/184003/03.01.01_60/tr_184... ) - Sip:+49234598765;npdi;rn=+49-D123@provider5.net;user=phone
In this case i need to parse user, user's parameters, domain and uri parameters.
In order to that i'm using uri's transformations like {uri.user}, {uri.domain}, etc.
However, when "user=phone" is present, Kamailio's parser works differently.
Without "user=phone" -> {uri.user} is equal to "+49234598765;npdi;rn=+49-D123" With "user=phone" -> {uri.user} is equal to "+49234598765" .
I really need to access "rn" and "npdi" parameters in those cases. How can i do it when "user=phone" is present? Is there a way to disable the "user=phone" exception for parsing?
Best Regards,
Duarte Rocha
On Wed, Jan 08, 2020 at 03:52:09PM +0000, Duarte Rocha wrote:
However, when "user=phone" is present, Kamailio's parser works differently.
Without "user=phone" -> {uri.user} is equal to "+49234598765;npdi;rn=+49-D123" With "user=phone" -> {uri.user} is equal to "+49234598765" .
I really need to access "rn" and "npdi" parameters in those cases. How can i do it when "user=phone" is present? Is there a way to disable the "user=phone" exception for parsing?
I guess you are looking for:
phone2tel=no
https://www.kamailio.org/wiki/cookbooks/5.3.x/core#phone2tel
If user=phone is present the URI should be parsed as a tel: URI. I guess that has no parameters?
Yes, thanks!!!!
Phone2tel seems to do what i need
A quarta, 8/01/2020, 15:52, Duarte Rocha duarterocha91@gmail.com escreveu:
Greetings,
I'm testing some portability scenarios with carriers and i've ran into some issues.
Take this example URI from ETSI TR 184 003 ( https://www.etsi.org/deliver/etsi_tr/184000_184099/184003/03.01.01_60/tr_184... )
- Sip:+49234598765;npdi;rn=+49-D123@provider5.net;user=phone
In this case i need to parse user, user's parameters, domain and uri parameters.
In order to that i'm using uri's transformations like {uri.user}, {uri.domain}, etc.
However, when "user=phone" is present, Kamailio's parser works differently.
Without "user=phone" -> {uri.user} is equal to "+49234598765;npdi;rn=+49-D123" With "user=phone" -> {uri.user} is equal to "+49234598765" .
I really need to access "rn" and "npdi" parameters in those cases. How can i do it when "user=phone" is present? Is there a way to disable the "user=phone" exception for parsing?
Best Regards,
Duarte Rocha