You are right, there are many ways to solve the problem. The presence of an HTTP server in kamailio allows you to implement microservices and I suggested expanding its use. I don’t think I can convince you otherwise, but kamailio has long become a multifunctional tool necessary for processing SIP calls. Our company was faced with the need for this functionality to build a system for testing, I think that this improvement would allow other clients to use Kamailio more efficiently. I think that issuing $hu is easy to fix, since the original URI value is not lost :) Thank you.