From https://kamailio.sipwise.com/job/kamailiodev-nightly-binaries/architecture=…
```
cdp_tls.c: In function 'init_ssl_methods':
cdp_tls.c:52:54: error: 'TLS1_3_VERSION' undeclared (first use in this function)
tls_methods[TLS_USE_TLSv1_3_cli - 1].TLSMethodMin = TLS1_3_VERSION;
^~~~~~~~~~~~~~
cdp_tls.c:52:54: note: each undeclared identifier is reported only once for each function it appears in
../../Makefile.rules:100: recipe for target '…
[View More]cdp_tls.o' failed
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/commit/defae2551f8839c5397523f135293fb…
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/commit/defae2551f8839c5397523f135293fb2a4056704/127741443(a)github.com>
[View Less]
From https://kamailio.sipwise.com/job/kamailiodev-nightly-binaries/architecture=…
```
cdp_tls.c: In function 'init_ssl_methods':
cdp_tls.c:21:49: warning: implicit declaration of function 'TLS_client_method' [-Wimplicit-function-declaration]
tls_methods[TLS_USE_TLSv1_cli - 1].TLSMethod = TLS_client_method();
^
cdp_tls.c:21:47: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
tls_methods[TLS_USE_TLSv1_cli - 1].…
[View More]TLSMethod = TLS_client_method();
^
cdp_tls.c:24:49: warning: implicit declaration of function 'TLS_server_method' [-Wimplicit-function-declaration]
tls_methods[TLS_USE_TLSv1_srv - 1].TLSMethod = TLS_server_method();
^
cdp_tls.c:24:47: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
tls_methods[TLS_USE_TLSv1_srv - 1].TLSMethod = TLS_server_method();
^
cdp_tls.c:27:45: warning: implicit declaration of function 'TLS_method' [-Wimplicit-function-declaration]
tls_methods[TLS_USE_TLSv1 - 1].TLSMethod = TLS_method();
^
cdp_tls.c:27:43: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
tls_methods[TLS_USE_TLSv1 - 1].TLSMethod = TLS_method();
^
cdp_tls.c:31:49: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
tls_methods[TLS_USE_TLSv1_1_cli - 1].TLSMethod = TLS_client_method();
^
cdp_tls.c:34:49: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
tls_methods[TLS_USE_TLSv1_1_srv - 1].TLSMethod = TLS_server_method();
^
cdp_tls.c:37:45: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
tls_methods[TLS_USE_TLSv1_1 - 1].TLSMethod = TLS_method();
^
cdp_tls.c:41:49: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
tls_methods[TLS_USE_TLSv1_2_cli - 1].TLSMethod = TLS_client_method();
^
cdp_tls.c:44:49: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
tls_methods[TLS_USE_TLSv1_2_srv - 1].TLSMethod = TLS_server_method();
^
cdp_tls.c:47:45: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
tls_methods[TLS_USE_TLSv1_2 - 1].TLSMethod = TLS_method();
^
cdp_tls.c:51:49: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
tls_methods[TLS_USE_TLSv1_3_cli - 1].TLSMethod = TLS_client_method();
^
cdp_tls.c:52:54: error: 'TLS1_3_VERSION' undeclared (first use in this function)
tls_methods[TLS_USE_TLSv1_3_cli - 1].TLSMethodMin = TLS1_3_VERSION;
^
cdp_tls.c:52:54: note: each undeclared identifier is reported only once for each function it appears in
cdp_tls.c:54:49: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
tls_methods[TLS_USE_TLSv1_3_srv - 1].TLSMethod = TLS_server_method();
^
cdp_tls.c:57:45: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
tls_methods[TLS_USE_TLSv1_3 - 1].TLSMethod = TLS_method();
^
cdp_tls.c:62:48: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
tls_methods[TLS_USE_TLSv1_PLUS - 1].TLSMethod = TLS_method();
^
cdp_tls.c:65:50: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
tls_methods[TLS_USE_TLSv1_1_PLUS - 1].TLSMethod = TLS_method();
^
cdp_tls.c:68:50: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
tls_methods[TLS_USE_TLSv1_2_PLUS - 1].TLSMethod = TLS_method();
^
cdp_tls.c:71:50: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
tls_methods[TLS_USE_TLSv1_3_PLUS - 1].TLSMethod = TLS_method();
^
cdp_tls.c: In function 'init_ssl_ctx':
cdp_tls.c:114:4: warning: implicit declaration of function 'SSL_CTX_set_min_proto_version' [-Wimplicit-function-declaration]
SSL_CTX_set_min_proto_version(
^
cdp_tls.c:123:4: warning: implicit declaration of function 'SSL_CTX_set_max_proto_version' [-Wimplicit-function-declaration]
SSL_CTX_set_max_proto_version(
^
../../Makefile.rules:100: recipe for target 'cdp_tls.o' failed
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/commit/defae2551f8839c5397523f135293fb…
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/commit/defae2551f8839c5397523f135293fb2a4056704/127741439(a)github.com>
[View Less]
### Description
In python (using module app_python3), in the xhttp module event callback (ksr_xhttp_event):
```
KSR.xhttp.xhttp_reply(400, "Bad Request", "", "")
return 1
```
When this code is processed, Kamailio logs the following errors:
```
6(247453) ERROR: <core> [core/parser/parse_fline.c:272]: parse_first_line(): parse_first_line: bad message (offset: 16)
6(247453) ERROR: <core> [core/parser/msg_parser.c:749]: parse_msg(): ERROR: parse_msg: message=<HTTP/1.1 400 …
[View More]Bad Request
Sia: SIP/2.0/TCP 127.0.0.1:41706
Server: kamailio (5.7.1 (x86_64/linux))
Content-Length: 0
>
6(247453) ERROR: <core> [core/msg_translator.c:3256]: build_sip_msg_from_buf(): parsing failed
```
(The correct HTTP reply is sent back to the client, so the issue is only with these logs.)
<br>
In kamailio script, in event_route[xhttp:request]:
```
xhttp_reply("400", "Bad Request", "", "");
exit;
```
In this case, there are no errors in Kamailio logs.
The two should be equivalent, but when using python we get errors when trying to send a specific HTTP reply.
<br>
When using python, if calling "KSR.jsonrpcs.dispatch()" for an unknown method, we get the same errors in Kamailio logs:
```
6(253511) ERROR: <core> [core/parser/parse_fline.c:272]: parse_first_line(): parse_first_line: bad message (offset: 19)
6(253511) ERROR: <core> [core/parser/msg_parser.c:749]: parse_msg(): ERROR: parse_msg: message=<HTTP/1.1 500 Method Not Found
Sia: SIP/2.0/TCP 127.0.0.1:59048
Content-Type: application/json
Server: kamailio (5.7.1 (x86_64/linux))
Content-Length: 84
{
"jsonrpc": "2.0",
"error": {
"code": 500,
"message": "Method Not Found"
}
}>
6(253511) ERROR: <core> [core/msg_translator.c:3256]: build_sip_msg_from_buf(): parsing failed
```
When the method is correct (client receives a HTTP 200), there are no errors in Kamailio logs.
<br>
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
version: kamailio 5.7.1 (x86_64/linux) 4238e4
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, MEM_JOIN_FREE, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLOCKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 4238e4
compiled on 16:52:41 Aug 24 2023 with gcc 8.5.0
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3549
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3549(a)github.com>
[View Less]
I use command line completion when I work in git. In all repositories I have, the upsteam is always called `origin`, as this is the default from git. So typing `or<TAB>` does complete the things correctly. Since Kamailio has a tag `orig` the completion completes to `orig`, not to `origin`. This is disturbing. If I use as upstream `upstream` only for Kamailio, then the problem is seemingly gone, until I forget that I have to use `upstream` and want to type `origin`.
As there is no …
[View More]use for the 20 years old `orig` tag in git, delete it.
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3575
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3575(a)github.com>
[View Less]
Hello,
The Problem is that SDP body is rewritten, but Content-Length isn't updated.
Attached a trace from PCSCF.
Event 207
Incoming INVITE: Content length of SDP body is 313.
[cid:image001.png@01D9C520.8D438CA0]
Event 218
Outgoing INVITE: SDP body is rewritten triggered by "rtpengine_manage".
[cid:image002.png@01D9C521.F9C28DD0]
Content length of SDP body isn't updated. It should be 242.
Event 212: Received from RTP Proxy
[cid:image003.png@01D9C521.F9C28DD0]
Kamailio Version 5.5.…
[View More]X
LOGs from rtpengine.c:
Changed File according Logs attached..
2023-08-01T10:25:41.118366+02:00 172.29.21.25 vict-pcscf-rhel8[1170319] - [logSDID@20306 resource="rtpengine"] ERROR: rtpengine [rtpengine.c:4070]: newbody 'v=0#015#012o=- 3863667612 3863667612 IN IP4 172.23.12.62#015#012s=pjmedia#015#012b=AS:84#015#012t=0 0#015#012a=X-nat:0#015#012m=audio 30444 RTP/AVP 8 101#015#012c=IN IP4 172.29.21.32#015#012b=TIAS:64000#015#012a=sendrecv#015#012a=rtpmap:8 PCMA/8000#015#012a=rtpmap:101 telephone-event/8000#015#012a=fmtp:101 0-16#015#012'
2023-08-01T10:25:41.118730+02:00 172.29.21.25 vict-pcscf-rhel8[1170319] - [logSDID@20306 resource="rtpengine"] ERROR: rtpengine [rtpengine.c:4071]: newbody.len [242]
2023-08-01T10:25:41.119049+02:00 172.29.21.25 vict-pcscf-rhel8[1170319] - [logSDID@20306 resource="rtpengine"] ERROR: rtpengine [rtpengine.c:4110]: rtpengine_offer_answer-03
Any suggestions on how to solve this problem?
Thanks!
BR
Theo
[View Less]