[sr-dev] [kamailio/kamailio] Incorrect translation of tel: uri to sip: uri in tel2sip() (#1173)

Donald Carr notifications at github.com
Mon Jul 3 16:21:28 CEST 2017


@miconda, I have written a routine that puts the parameters for the tel: uri into an array with key/value separated, then uses qsort to sort. With this,  they can be put into the sip: uri in correct sorted order. The sort is very esoteric, specific to the requirements for sip: uri when converting from a tel: uri, so, I would suggest we add it to the existing conversion routine. Though, it would be very easy to make it a separate callable script called before the existing routine, to sort the tel: uri. Also, if inside the current routine, at the same time that we have the parameters split up, we can easily check if phone-context is present, and, if it is a domain, we can delete the phone-context parameter, and, move the domian to the standard place after the @ symbol.

Please let me know how we can move forward. I can create a modified tel2sip() routine with the sorting of tel: parameters and a check to eliminate duplicate domains. Then, do testing here, and, finally send to you for your perusal before accepting.

Thank you very much!

-- 
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-312658396
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20170703/fce47b0f/attachment.html>


More information about the sr-dev mailing list