### Description
In my environment, I use AAAA dns names without A dns records.
When kamailio start, using `tcpdump` I can see only A request and does not see AAAA.
In config file configred
```
dns_cache_flags = 4
```
### Troubleshooting
#### Reproduction
Configure kamailio to use rtpengine servers AAAA dns names. A dns records os not exists.
#### Debugging Data
None
#### Log Messages
None
#### SIP Traffic
None
### Possible Solutions
I do now know
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
[root@ip-172-23-6-136 ~]# kamailio -v
version: kamailio 5.5.0-dev1 (x86_64/linux) d9dd2a
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, 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_BLACKLIST, 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: d9dd2a
compiled on 04:01:13 Aug 22 2020 with gcc 8.3.1
```
* **Operating System**:
```
[root@ip-172-23-6-136 ~]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="8 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="8"
```
--
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/2458
- URL: https://github.com/kamailio/kamailio/commit/12095fd3948ca776dd2d03b8efa1129…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-08-26T22:53:20+02:00
evapi: export async_unicast() to kemi
- PR #2415
(cherry picked from commit 7116c04c61cf789a371568fb593c109e195a1574)
- URL: https://github.com/kamailio/kamailio/commit/c98d9e8c6687f2311f51016ed9cc2e0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-08-26T22:53:33+02:00
app_lua: docs - note about availability of 'sr' Lua module
- use KSR in the examples
(cherry picked from commit 34efa83569bedb1f36c3661ee063ff6334633e4a)
- URL: https://github.com/kamailio/kamailio/commit/4aeb071b26df08e1dfc902340475c07…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-08-26T22:53:48+02:00
xcap_server: check before going to the end of the buffer
- use marcros to set and restore char for ending 0
(cherry picked from commit 6ce5c0bdf136ecffd7917f2d60093e1b2c49fa54)
- URL: https://github.com/kamailio/kamailio/commit/aabb2b2cfab6dc664ebc4b3d15db0d2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-08-26T22:54:03+02:00
db_text: free pointer in case of error
(cherry picked from commit bddf16db74ea779bb01805fc2cbabfdaf8f4d62b)
- URL: https://github.com/kamailio/kamailio/commit/b14b0a116791b85f2048e5fc863e50b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-08-26T22:54:35+02:00
Makefile.defs: get clang version only from --version output
- the full version with stderr output included has a different first
line on MacOS, making head -n 1 not extract the version number line
(cherry picked from commit bff689cfedca70149e17b6ec3584ca9ecab71418)
- URL: https://github.com/kamailio/kamailio/commit/6d79c954469082aeb8518fdcca80217…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-08-26T22:55:09+02:00
Makefile.defs: map gcc v10.x to 9.0+ options
- detect properly the 10.x gcc version number, GH #2425
(cherry picked from commit 79e7738027a40affa4c7f606bf55a3ad0fe31bc4)
- URL: https://github.com/kamailio/kamailio/commit/c783f19708bfd1d8c2334f739c8960b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-08-26T22:55:34+02:00
pike: docs - section for pike.list rpc command
(cherry picked from commit 720e929a87c6d3ee29c316ca63886c7142320f43)
- URL: https://github.com/kamailio/kamailio/commit/c8c884c4db353d4fac83752a494989e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-08-26T22:56:06+02:00
topoh: check if via param has the expected prefix, otherwise skip
- GH #2437
(cherry picked from commit 046126b4a90090bf5b8f9b517ba5218793e6b973)
- URL: https://github.com/kamailio/kamailio/commit/10af8efa9061c2f52ee1db51c4cf665…
Author: Rosen Penev <rosenp(a)gmail.com>
Date: 2020-08-26T22:56:42+02:00
tls: support compilation without deprecated OpenSSL APIs
- GH #2428
(cherry picked from commit 234b02236b3ad13cdaf5624d11c727ad7d804747)
- URL: https://github.com/kamailio/kamailio/commit/67979e07b63b574687b1924c38fabd7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-08-26T22:57:02+02:00
tls: added define condition on version functions
- libssl 1.1 variants are not in 1.0
- following the changes by 234b02236b3ad13cdaf5624d11c727ad7d804747
(cherry picked from commit 99c6a68dea60ca745dfdfa33085bb6acbcee846a)
- URL: https://github.com/kamailio/kamailio/commit/0efd0d63a8f8d7b644d0eba13552778…
Author: Dmitry <dmitry.wagin(a)ya.ru>
Date: 2020-08-26T22:57:48+02:00
Makefile.defs: Fixed libs option for FreeBSD
(cherry picked from commit f490c4e0f5888963a01fa99fe94a464d44223199)
- URL: https://github.com/kamailio/kamailio/commit/474d77b8743834a14d00ad285534cf2…
Author: Yufei Tao <yufei.tao(a)syntec.co.uk>
Date: 2020-08-26T22:58:42+02:00
uac: added uac_event_callback for kemi
(cherry picked from commit 767d3ca88a4e4fa093a6a81a36d95d116251b578)
- URL: https://github.com/kamailio/kamailio/commit/daab7955e91c4537547c89eacb7ecd0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-08-26T22:59:03+02:00
cfgutils: exported route check functions to kemi
(cherry picked from commit ecba550f5d35435adfa9c692cec8cee6cae8a77b)
- URL: https://github.com/kamailio/kamailio/commit/f1d194d0d83f94a495c539436918a09…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-08-26T22:59:13+02:00
core: kemi - exported core route function
(cherry picked from commit d9dd2abeb82be8b992ddf534864b6d84594b7a47)
- URL: https://github.com/kamailio/kamailio/commit/a3763403b22b21974e401929de4ef3f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-08-26T22:59:30+02:00
keepalive: docs - documented owner parameter for add/delete functions
- related to GH #2438
(cherry picked from commit 7284a61125bb0cacd1adc2289af616061df03258)
- URL: https://github.com/kamailio/kamailio/commit/b5176749605808af737aca00992f549…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-08-26T22:59:57+02:00
topoh: remove the Via cookie when skipping topoh via event route
- event route is now executed with parsed sip message to be sent out
- GH #2437
(cherry picked from commit 06a1d20fdcae42c8f2130c547c6c6cf5fb6dce26)
- URL: https://github.com/kamailio/kamailio/commit/05b4b85b6d977fddfd23b3c556328c5…
Author: Juha Heinanen <jh(a)tutpro.com>
Date: 2020-08-26T23:00:14+02:00
sqlops module: added one more sql query function return value to README
(cherry picked from commit d93de03c10eb7b88024d7eb9ba85200601cf6c7a)
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [ ] Commit message has the format required by CONTRIBUTING guide
- [ ] Commits are split per component (core, individual modules, libs, utils, ...)
- [ ] Each component has a single commit (if not, squash them into one commit)
- [ ] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [ ] Tested changes locally
- [ ] Related to issue #1911
#### Description
<!-- Describe your changes in detail -->
The goal was to have a different, more complex hashing algorithm that would offer a better distribution among nodes. We've seen in production that the current algorithm does not perform well under heavy load therefore we decided to add SHA1 hashing. After running performance tests we've decided that we need a cryptographic function in order to have the best results mostly when the callids have small entropy.
In order to add SHA1, a new API was added in crypto module exporting a function applying SHA1 to a string. The API was used in rtpengine module over the callid. After this operation the hash was calculated as before except for applying 0xFF mask over the hash as it was done before, which restrains the power of this algorithm.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1986
-- Commit Summary --
* crypto: add exportable API and expose SHA1 hashing function
* rtpengine: use SHA1 over callid for better distribution among nodes
* rtpengine: add modparam to switch between legacy hashing algorithm and SHA1
* rtpengine: update README
-- File Changes --
A src/modules/crypto/api.c (30)
A src/modules/crypto/api.h (63)
M src/modules/crypto/crypto_mod.c (2)
M src/modules/crypto/crypto_uuid.c (34)
M src/modules/crypto/crypto_uuid.h (8)
M src/modules/rtpengine/doc/rtpengine_admin.xml (25)
M src/modules/rtpengine/rtpengine.c (53)
M src/modules/rtpengine/rtpengine.h (1)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1986.patchhttps://github.com/kamailio/kamailio/pull/1986.diff
--
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/pull/1986
### Description
Add a redis_cmd() call with more than two %s insertions. Kamailio throws parse errors at startup. See below for example and log messages.
### Troubleshooting
This line works fine:
`redis_cmd("kam_redis", "SET %s %s-bar, "test_key", "foo" "r");`
This one does not:
`redis_cmd("kam_redis", "SET %s %s-%s, "test_key", "foo", "bar, "r");`
#### Reproduction
Add a line like this:
`redis_cmd("kam_redis", "SET %s %s-%s, "test_key", "foo", "bar, "r");`
#### Log Messages
```
2020-08-13T16:39:05.468806+00:00,vagrant-ubuntu-xenial-64: CRITICAL: <core> [core/cfg.y:3517]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 424, column 117: Too many arguments
2020-08-13T16:39:05.472800+00:00,vagrant-ubuntu-xenial-64: CRITICAL: <core> [core/cfg.y:3517]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 424, column 117: '('')' expected (function call)
2020-08-13T16:39:05.473289+00:00,vagrant-ubuntu-xenial-64: CRITICAL: <core> [core/cfg.y:3517]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 424, column 117: bad command: missing ';'?
2020-08-13T16:39:05.473927+00:00,vagrant-ubuntu-xenial-64: ERROR: <core> [core/cfg.y:3363]: yyparse(): function used inside params of another function: xlog
2020-08-13T16:39:05.475417+00:00,vagrant-ubuntu-xenial-64: CRITICAL: <core> [core/cfg.y:3517]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 426, column 9: use of function execution inside params not allowed`
```
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
version: kamailio 5.2.7 (x86_64/linux)
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, 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_BLACKLIST, HAVE_RESOLV_RES
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: unknown
compiled with gcc 5.4.0
```
I have confirmed the issue with the available later version packages as well.
* **Operating System**:
Ubuntu 16.04
--
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/2456