<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi,</p>
    <p>I have a kamailio that is has an HTTP message server. Is it
      possible to send the SIP status code back in the HTTP reply? Is it
      possible to suspend an xhttp request while some other stuff
      happens and then send the reply later?<br>
    </p>
    <p>The relevant bit of the config currently looks like<br>
    </p>
    <pre>event_route[xhttp:request]{
    if($hu == "/sms"){
        $uac_req(method)="MESSAGE";
        $uac_req(ruri)=<a class="moz-txt-link-rfc2396E" href="sip:1234@example.com">"sip:1234@example.com"</a>;
        $uac_req(furi)=<a class="moz-txt-link-rfc2396E" href="sip:4567@example.com">"sip:4567@example.com"</a>;
        $uac_req(turi)=<a class="moz-txt-link-rfc2396E" href="sip:1234@example.com">"sip:1234@example.com"</a>;
        $uac_req(body)=$rb;
        uac_req_send();
        xhttp_reply("200", "OK", "text/plain", "Sent")
    }
}
</pre>
    <p><br>
    </p>
    <div class="moz-signature">
      <p>Regards,</p>
      <p>Tim</p>
    </div>
  </body>
</html>