Hello,
In reference to this issue https://github.com/kamailio/kamailio/issues/3081 I've been advised to set http_reply_parse to "no" which I did (and it is the default value anyways).
# grep http_reply_parse /etc/kamailio/kamailio.cfg http_reply_parse=no
After setting this, I still get these parsing errors:
{ "idx": 23, "pid": 102, "level": "ERROR", "module": "core", "file": "core/parser/msg_parser.c", "line": 748, "function": "parse_msg", "logprefix": "", "message": "ERROR: parse_msg: message=<HTTP/1.1 100 Continue\r\n\r\nHTTP/1.1 200 OK\r\ndate: Wed, 26 Jul 2023 16:43:19 GMT\r\ncontent-length: 224\r\ncontent-type: text/plain; charset=utf-8\r\n\r\n{"result": {"ruri":"","fU":"","tU":"","privacy":"","identity":"","error":{"code":0,"message":""},"mb":"","Headers":null,"encrypted":"","sipsScheme":"","attestation":"","authUser":"","authPassword":"","disableStirShaken":""}}>" }
Is there anything that I am missing beyond setting that parameter?
Thank you,
Alexandru
I am replying to myself here because I've noticed something that I've missed before. This is a reply that has both 100 Continue AND final response (200 OK). It looks like Kamailio's HTTP parser chokes on this type.
https://http.dev/100 says that
"HTTP response status code 100 Continue is one of the informational HTTP responses returned by the server. It indicates that the HTTP session is progressing as expected and is asking the client to continue to the next step. The client can safely ignore this HTTP response if the HTTP request is complete."
I assume (didn't check yet) that Kamailio is sending headers+body, therefore the request is complete, so the 100 Continue should be ignored and the parsing should start from 200 OK.
Is this correct?