- URL: https://github.com/kamailio/kamailio/commit/08353d68f6db7d01e985cad95e9cb89…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-08T08:53:46+01:00
pv: print missing types for xavp values
(cherry picked from commit 4b0b045a114591de6cc0655ae019029e337167d0)
- URL: https://github.com/kamailio/kamailio/commit/16e41ffcc834b2eaddb21f8517bda38…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-08T08:57:19+01:00
dispatcher: option to set add socket as string in the dst xavp
- bit 2 has to be set for xavp_dst_mode modparam
(cherry picked from commit 8507efe8644c43a5f3b5d4dc27d557596b3b2f2c)
- URL: https://github.com/kamailio/kamailio/commit/e400db248e737d282864c6b975177f3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-08T08:57:33+01:00
dispatcher: docs for xavp_dst_mode to store socket string in dst xavp
(cherry picked from commit 6389c98d29eeb7f61547bb68ec9d59e4f47b7552)
- URL: https://github.com/kamailio/kamailio/commit/b03256c62fc1f278e47e13765df651c…
Author: Markus Bönke <mbodbg(a)gmx.net>
Date: 2020-01-08T08:58:46+01:00
dispatcher: Fixed typo in dispatcher_admin.xml
(cherry picked from commit 840d2babc7518e92ffc2173dc760828da1d2ff7b)
- URL: https://github.com/kamailio/kamailio/commit/dfdc5917f3c3d0faee1acea10317c6b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-08T09:00:07+01:00
app_sqlang: imported latest squirrel interpreter
(cherry picked from commit b0fc60403b539672c6a2638083e8955783c65e0b)
- URL: https://github.com/kamailio/kamailio/commit/99f51cb6091d1c051ca38af9e43ee64…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-08T09:00:48+01:00
core: make dst_uri null terminated
(cherry picked from commit ca546d35c326666c6389c84ce45214bd2fc5c147)
- URL: https://github.com/kamailio/kamailio/commit/6f26ff89510a2cd20d1114f87eebb63…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-08T09:01:11+01:00
ims_ipsec_pcscf: null terminate dst_uri fields
(cherry picked from commit a8be2459fc4013060944bf79e7c66b3613e8d04c)
- URL: https://github.com/kamailio/kamailio/commit/de1970f67194e383345d773f3658f27…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-08T09:01:22+01:00
ims_isc: null terminate dst_uri field
(cherry picked from commit a8cc28b6e0236b21569625baffa865ff4ce0a153)
- URL: https://github.com/kamailio/kamailio/commit/5f0f06dc9c02031a367945b1b79d77a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-08T09:10:08+01:00
rr: debug messages when setting send socket on double rr
(cherry picked from commit a0e04cb2a06ec2cae9a066003732746cb8d609d0)
- URL: https://github.com/kamailio/kamailio/commit/0969030f4e8b01314009e95b84426ee…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-08T09:10:30+01:00
core: print modparam type as string in log message
(cherry picked from commit f35fd46de42a26d910e637023396a801c0ad404c)
- URL: https://github.com/kamailio/kamailio/commit/8513d5468bd7d348ef149c5b4d14feb…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-08T09:12:02+01:00
kex: docs - fixed rpc command name for shm memory details
(cherry picked from commit 9e89a66b36d7aa691cf69d5b33b7ee31330693e9)
- URL: https://github.com/kamailio/kamailio/commit/e64a0e247d19be178241d38756e7b78…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-08T09:12:19+01:00
rtproxy: docs - fixed section id value
(cherry picked from commit e896f2c9286809b5ef81c4952577780002ee5df8)
- URL: https://github.com/kamailio/kamailio/commit/6b5838e105f0ce31a448cdb785e4a86…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-08T09:13:03+01:00
core: kemi - fixed missing support to check for REFER method
(cherry picked from commit 840e29d7d63602482e202e1b514a0ba9952dffe5)
- URL: https://github.com/kamailio/kamailio/commit/72e0eb88dd61daf2bab52425d1d3945…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-08T09:14:14+01:00
rr: exported to kemi record_route_preset_one()
- the variant for record_route_preset() with one parameter
- GH #2171
(cherry picked from commit b05b0891d890d55b649d19ec22105b2bdcfd3ba5)
- URL: https://github.com/kamailio/kamailio/commit/71bbd316369dd9f5e2f7608fae041b8…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-01-08T09:15:14+01:00
auth: add clang-format directives to skip format on kemi_exports
format is important for generating docs by our python tool
(cherry picked from commit d39dd5480c6e8d56a1fb2c91220da079c1a65800)
- URL: https://github.com/kamailio/kamailio/commit/6e8209e50a513c37f6fe2ea389ac25c…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-01-08T09:15:23+01:00
auth_db: add clang-format directives to skip format on kemi_exports
format is important for generating docs by our python tool
(cherry picked from commit 52f29796fc79706e31f389fbcf35d7b4a38900bb)
- URL: https://github.com/kamailio/kamailio/commit/10ec9a7e1cdfd42979ca3e3ec4a2497…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-01-08T09:15:35+01:00
cfgutils: add clang-format directives to skip format on kemi_exports
format is important for generating docs by our python tool
(cherry picked from commit 7fb0410df8b0a05870690c5d770247855767630f)
- URL: https://github.com/kamailio/kamailio/commit/e279869422f7cb1c3ea53c8d070a669…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-01-08T09:15:45+01:00
geoip: add clang-format directives to skip format on kemi_exports
format is important for generating docs by our python tool
(cherry picked from commit 72509a9c538052ef21c0da9b9f3f220c01d8a81c)
- URL: https://github.com/kamailio/kamailio/commit/7f140734951c2820c87dc80e4facd73…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-01-08T09:15:59+01:00
geoip2: add clang-format directives to skip format on kemi_exports
format is important for generating docs by our python tool
(cherry picked from commit 7167ae9134edf247819618522c88c5f8d3cc1adf)
- URL: https://github.com/kamailio/kamailio/commit/24d7cf34ecd19012eb2c7d47185e08a…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-01-08T09:16:09+01:00
htable: add clang-format directives to skip format on kemi_exports
format is important for generating docs by our python tool
(cherry picked from commit c340ef019789ebed2c57e5b4a0a0f1543b6df7ae)
- URL: https://github.com/kamailio/kamailio/commit/cd2b7a4d86673797bc47d061e1d5362…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-01-08T09:16:21+01:00
maxfwd: add clang-format directives to skip format on kemi_exports
format is important for generating docs by our python tool
(cherry picked from commit 81eeb1b671d7750dd5d52e472242630f95cf7e48)
- URL: https://github.com/kamailio/kamailio/commit/cd33d744696bc1ee12f6b26d821cbe8…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-01-08T09:16:31+01:00
mtree: add clang-format directives to skip format on kemi_exports
format is important for generating docs by our python tool
(cherry picked from commit 8a1be5135296e0e340e0ef970a53d4e48615d62f)
- URL: https://github.com/kamailio/kamailio/commit/2593e8b26f05cd70b2fb3c9861db214…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-01-08T09:16:41+01:00
permissions: add clang-format directives to skip format on kemi_exports
format is important for generating docs by our python tool
(cherry picked from commit 2c69186668353c371af4f4d27c78131b72b8719b)
- URL: https://github.com/kamailio/kamailio/commit/5e5e67a680b4c90057645feb8a9a9bf…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-01-08T09:16:57+01:00
pike: add clang-format directives to skip format on kemi_exports
format is important for generating docs by our python tool
(cherry picked from commit 48a92121ce496536a38ec3f076ad1298ef85c7e0)
- URL: https://github.com/kamailio/kamailio/commit/f614e328086a851b4053f3df4ae67d6…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-01-08T09:17:08+01:00
registrar: add clang-format directives to skip format on kemi_exports
format is important for generating docs by our python tool
(cherry picked from commit 49903d1c03af293210b12ea48d13ff12a2bf7954)
- URL: https://github.com/kamailio/kamailio/commit/fb368f2de6c740e075fcefd231ff1e9…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-01-08T09:17:19+01:00
rr: add clang-format directives to skip format on kemi_exports
format is important for generating docs by our python tool
(cherry picked from commit 3d5d7278135e21f8fa63d29934943d3424c60de8)
- URL: https://github.com/kamailio/kamailio/commit/f57c9fbc276c6daa2fa79175622984b…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-01-08T09:17:31+01:00
rtjson: add clang-format directives to skip format on kemi_exports
format is important for generating docs by our python tool
(cherry picked from commit bc046a1cdd096ff66057bc7cb19512192743b705)
- URL: https://github.com/kamailio/kamailio/commit/9d25bc343ec9fd0ad2c566b6d8bcc60…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-01-08T09:17:46+01:00
rtpengine: add clang-format directives to skip format on kemi_exports
format is important for generating docs by our python tool
(cherry picked from commit 401240be0a1e4a3b06d2095d2f2a003c371921ed)
- URL: https://github.com/kamailio/kamailio/commit/4a69bff459e57a35606edf1f5c715ef…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-01-08T09:18:26+01:00
rtpproxy: add clang-format directives to skip format on kemi_exports
format is important for generating docs by our python tool
(cherry picked from commit 60838d3a51d0afff75a6923791e99c94960f638e)
- URL: https://github.com/kamailio/kamailio/commit/0b182c2e9cbb3ca8213d7785115e249…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-01-08T09:18:37+01:00
sanity: add clang-format directives to skip format on kemi_exports
format is important for generating docs by our python tool
(cherry picked from commit 2b4d555610b06a1902e3d67f282b4a101e9f3796)
- URL: https://github.com/kamailio/kamailio/commit/112729e810d5eef40a153b60f720abb…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-01-08T09:18:47+01:00
sdpops: add clang-format directives to skip format on kemi_exports
format is important for generating docs by our python tool
(cherry picked from commit beb9a7f7c6397f1ea51b8e8746d06c43f602d2a0)
- URL: https://github.com/kamailio/kamailio/commit/480095d20fcb5bdb34bb9fc496fe0a8…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-01-08T09:18:58+01:00
siputils: add clang-format directives to skip format on kemi_exports
format is important for generating docs by our python tool
(cherry picked from commit 3f859cf341d71ca3789907d9502fea18a48ca56a)
- URL: https://github.com/kamailio/kamailio/commit/b170db2d9f9f8d29b13bbdad78adb5e…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-01-08T09:19:07+01:00
sl: add clang-format directives to skip format on kemi_exports
format is important for generating docs by our python tool
(cherry picked from commit af9cdfb14798e331eacb9495aaf70eedf9eae527)
- URL: https://github.com/kamailio/kamailio/commit/0eed9af6156c7bee2ef1a06895ca3b3…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-01-08T09:19:29+01:00
tm: add clang-format directives to skip format on kemi_exports
format is important for generating docs by our python tool
(cherry picked from commit 6e7a441a9f27cb22ff22919f2e7b911045b7a7c0)
- URL: https://github.com/kamailio/kamailio/commit/db6b7f470fcfbcf3b736f9e9461d87b…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-01-08T09:19:43+01:00
tmx: add clang-format directives to skip format on kemi_exports
format is important for generating docs by our python tool
(cherry picked from commit 18059dcc87f371f353fb585a89aefd8d7cadce8c)
- URL: https://github.com/kamailio/kamailio/commit/8f4e5524db2ea1625919c7a92ab9fce…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-01-08T09:19:56+01:00
xlog: add clang-format directives to skip format on kemi_exports
format is important for generating docs by our python tool
(cherry picked from commit b5e3409aff3a5f8307ab812693ddea286ebc08e9)
- URL: https://github.com/kamailio/kamailio/commit/9d00826874acc5d164dc207a4fcd890…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-01-08T09:20:06+01:00
app_python: add clang-format directives to skip format on kemi_exports
format is important for generating docs by our python tool
(cherry picked from commit e0f3675e1b0c93ec416e7663ab8b6e21b75373e2)
- URL: https://github.com/kamailio/kamailio/commit/331de11a6164a7a2289da62f4782e42…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-01-08T09:20:17+01:00
app_python3: add clang-format directives to skip format on kemi_exports
format is important for generating docs by our python tool
(cherry picked from commit 731056f0e7ae752273e16bc7bc1a48ba16638235)
- URL: https://github.com/kamailio/kamailio/commit/2c0048dc6d41c61137f64e9021f897d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-08T09:21:33+01:00
tm: rework code to avoid compiler warnings
- fix log message priting wrong string variable
(cherry picked from commit 263b8ce5360716e44c6a7bcdbc65a76dfad67575)
- URL: https://github.com/kamailio/kamailio/commit/e0420bcf6ee37eb305595b2c56e9054…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-08T09:22:04+01:00
tcp: checks for event route index on close
(cherry picked from commit 46436cf8ef7d337c255b2fd9115544a6971f9741)
- URL: https://github.com/kamailio/kamailio/commit/428c862a9e4445ebf1bec244510a29d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-08T09:22:22+01:00
tls: init EVP_PKEY pointer when loading engine key
(cherry picked from commit 433551f3ea00e4151f2fa4e84d7c52422b6cefe3)
- URL: https://github.com/kamailio/kamailio/commit/b0888cf384d57b4a11200872f3b9fbd…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-08T09:28:38+01:00
tm: clarification that the sip message flags operations after t_newtran()
- they are not reflected in transaction, only in local sip message
structure
(cherry picked from commit 9a0c850f98063da145120f90d2c5c2a43e76b976)
- URL: https://github.com/kamailio/kamailio/commit/cfba21fc16aa0920c0f36fcd79692f7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-08T09:29:26+01:00
rr: fixed warning about unused label in ki_record_route_reset_one()
(cherry picked from commit c65e0926b26ee9f1cdadb9fbd6f488159275cbea)
- URL: https://github.com/kamailio/kamailio/commit/766e0d30454e0a872a8f5016fc1a4f8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-08T09:30:53+01:00
tls: set default tls method (version) to 1+
- it was 1, but newer libssl doesn't have it anymore
- while older systems don't have newer version support
(cherry picked from commit 1da196174d8cd7e82ce57d4de60197fc063e6b50)
- URL: https://github.com/kamailio/kamailio/commit/030be68ca0af03cf2e54ddbe0067090…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-08T09:31:11+01:00
tls: docs - fix example for setting xavp_cfg
(cherry picked from commit 4f42115ce29d446ad60b32af9ad370d9b2d847c2)
- URL: https://github.com/kamailio/kamailio/commit/851e3f34ed6de43d22511ad52b5cc61…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-08T09:31:53+01:00
tm: added missing $T(reply_reason)
(cherry picked from commit bf57a7ab50949ddbeec787331548dfcb023c238f)
- URL: https://github.com/kamailio/kamailio/commit/2dc27439365ec4f2442b19b139eda1f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-08T09:32:24+01:00
ipops: fix locating static index for dns pv
- reported by GH #2179
(cherry picked from commit a383caa12a1af2cbc0f135add643045a159f24f2)
- URL: https://github.com/kamailio/kamailio/commit/8fc643b5d199e257ec403fd925f3d15…
Author: James Aimonetti <james.aimonetti(a)gmail.com>
Date: 2020-01-08T09:43:30+01:00
Makefile: include flag to generate Emacs-compatible TAGS file
Emacs exposes an environment variable `INSIDE_EMACS` which can be used
to toggle ctags to generate an Emacs-friendly TAGS file.
(cherry picked from commit 35c846b1e8dc7075b0cee196a430dd1b09a87446)
Emacs exposes an environment variable `INSIDE_EMACS` which can be used
to toggle ctags to generate an Emacs-friendly TAGS file.
<!-- 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 #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2192
-- Commit Summary --
* Makefile: include flag to generate Emacs-compatible TAGS file
-- File Changes --
M Makefile (6)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2192.patchhttps://github.com/kamailio/kamailio/pull/2192.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/2192
### Description
Implement a new TM logic to distribute calls to contacts belonging to the same subscriber similar to the weight mechanism that is used in lcr module. This mechanism should support primary/backup, load-sharing or a combination of both.
### Expected behavior
Currently, with the existing serial forking using q-value:
- if the q-values are different, the devices will ring serially but always in the same order
- if the q-values are equals, the devices will ring in parallel
With the new mechanism, instead, I have to be able, for example, to register 2 devices and send:
- the 50% of the call to device 1 and then to device 2 as a backup
- the 50% of the call to device 2 and then to device 1 as a backup
### Possible Solutions
A possible approach is to extend the existing load_contact function and re-use the q-value as a weight.
For example:
- contact 1 has Q value 1
- contact 2 has Q value 0.5
- contact 3 has Q value 0.5
- contact 4 has Q value 0
Then kamailio distributes the calls using the following proportion:
Q : total_Q = call_prob : 100
So:
- contact 1 has probability to ring of 50% (1 * 100 / 2)
- contact 2 has probability to ring of 25% (0.5 * 100 / 2)
- contact 3 has probability to ring of 25% (0.5 * 100 / 2)
- contact 4 has probability to ring of 0 (0 * 100 / 2) but it is used as backup option if all other contacts fail
This should solves the limitations of serial forking and allows to achieve equal or predictable weight-based call termination distribution.
--
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/2167
### Description
When trying to use the pseudovar $dns(xyz=>addr[0]) Kamailio script parser complains there is a syntax error and script won't start. However if a variable with value 0 is used, it works.
There is no reason why one should not access those indexes directly using the value 0.
Piece of code that does not work:
```
if(dns_query("$rd", "ddst")) {
$var(dest_ip) = $dns(ddst=>addr[0]); # We just need first IP
}
```
Piece of code that works:
```
if(dns_query("$rd", "ddst")) {
$var(i) = 0;
$var(dest_ip) = $dns(ddst=>addr[$var(i)]); # We just need first IP
}
```
I tried using the 0 with quotes, but no luck. I had to use a variable to access the index 0.
I have not tried the "type" attribute, maybe same problem can happen with it.
#### Reproduction
Try adding this piece of code to the script:
```
if(dns_query("$rd", "ddst")) {
$var(dest_ip) = $dns(ddst=>addr[0]); # We just need first IP
}
```
This will output this error when running kamailio -c:
```
0(22439) ERROR: ipops [ipops_pv.c:249]: pv_parse_dns_name(): invalid index [ddst=>addr[0]]
0(22439) ERROR: ipops [ipops_pv.c:261]: pv_parse_dns_name(): error at PV dns name: ddst=>addr[0]
0(22439) ERROR: <core> [core/pvapi.c:952]: pv_parse_spec2(): pvar "dns" has an invalid name param [ddst=>addr[0]]
0(22439) ERROR: <core> [core/pvapi.c:1107]: pv_parse_spec2(): wrong char [)/41] in [$dns(ddst=>addr[0])] at [18 (5)]
0(22439) CRITICAL: <core> [core/cfg.y:3508]: yyerror_at(): parse error in config file /etc/kamailio/routing.cfg, line 2398, column 20-38: Can't get from cache: $dns(ddst=>addr[0])
```
### Possible Solutions
Instead of direct index access with integer values, it is necessary to access it with a variable.
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
# kamailio -v
version: kamailio 5.2.2 (x86_64/linux) 67f967
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: 67f967
compiled on 11:40:41 Mar 11 2019 with gcc 4.8.5
```
--
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/2179