I expect that tel2uri() was implemented based on the needs of initial developer as
documented at:
*
https://www.kamailio.org/docs/modules/devel/modules/siputils.html#siputils.…
It can be improved if one needs/wants more.
Note also that specs are not implemented ad-litteram in a single function. The design of
the application has been from the beginning to offer small tools (functions/statements)
that can be blended in config script to get what you need. There are many functions and
transformations that can help you replace/remove unwanted characters from user part of
R-URI, such as subst_user(...), {re.subst} or {s...} transformations, etc. With all these
I am pretty sure you can transfrorm tel to sip uri as per specs without using tel2sip()
function.
To be clear: I am not against enhancing tel2sip() to do more that it does now, but wanted
to highlight that many spec requirements can be done with a combination of functions and
expressions. I am not the author of tel2sip() and actually I haven't used it many
times. I do URI normalization with script operations.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1173#issuecomment-312115866