[sr-dev] [kamailio/kamailio] Append_to_reply does not work for XHTTP responses without body (#1548)
Daniel-Constantin Mierla
notifications at github.com
Fri Jun 22 11:53:30 CEST 2018
I just tried with master and 5.1 branches and all is ok.
```
event_route[xhttp:request] {
append_to_reply("X-Orig: $si:$sp\r\n");
xhttp_reply("200", "OK", "", "");
}
```
Then:
```
# curl -v http://192.168.188.25:5060
* Rebuilt URL to: http://192.168.188.25:5060/
* Trying 192.168.188.25...
* TCP_NODELAY set
* Connected to 192.168.188.25 (192.168.188.25) port 5060 (#0)
> GET / HTTP/1.1
> Host: 192.168.188.25:5060
> User-Agent: curl/7.60.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Sia: SIP/2.0/TCP 192.168.188.25:58888
< X-Orig: 192.168.188.25:58888
< Server: kamailio (5.1.4 (x86_64/darwin))
< Content-Length: 0
<
* Connection #0 to host 192.168.188.25 left intact
```
So either is an older kamailio version or something specific for your settings.
--
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/1548#issuecomment-399389233
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20180622/13875488/attachment.html>
More information about the sr-dev
mailing list