This module provides basic HTTP/1.0 server functionality inside Kamailio. SIP and HTTP are very similar protocols, so, practically, the SIP parser can easily handle HTTP requests just by adding a fake Via header. The xmlrpc module uses the same concept. The xHTTP module offers a generic way of handling the HTTP protocol, by calling event_route[xhttp:request] in your config. You can check the HTTP URL via the config variable $hu. Note that use of $ru will raise errors since the structure of an HTTP URL is not compatible with that of a SIP URI.
Copyright © 2010 asipto.com