Yes, and the xhttp module converts the received http-request into sip and add the Via header to it. The xhttp module makes a fake sip message to be able to use functions from other modules. 