Hello,
I am considering to release Kamailio v5.7.6 (out of branch 5.7) on
Tuesday, July 2, 2024. If anyone is aware of issues not yet on the bug
tracker, report them there asap in order to have a better chance to be
fixed.
Cheers,
Daniel
--
Daniel-Constantin Mierla (@ asipto.com)
twitter.com/miconda -- linkedin.com/in/miconda
Kamailio Consultancy, Training and Development Services -- asipto.com
<!-- 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 -->
- [x] Commit message has the format required by CONTRIBUTING guide
- [x] Commits are split per component (core, individual modules, libs, utils, ...)
- [x] Each component has a single commit (if not, squash them into one commit)
- [x] 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)
- [x] 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
- [x] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
https://datatracker.ietf.org/doc/html/rfc3265#section-3.2.2 says that if a NOTIFY fails, the subscription should be removed. There is one exception only, when a Retry-After is specified.
This is done in order to cleanup state and not keep it around for huge periods of time. This is preferred and the client is the one that should re-subscribe at intervals to fix the situation.
Anyway, I guess I was super annoyed by the huge number of useless notifications that I'm getting for gone IMS clients.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3895
-- Commit Summary --
* ims_registrar_scscf: drop subscription on notification failure
-- File Changes --
M src/modules/ims_registrar_scscf/registrar_notify.c (153)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3895.patchhttps://github.com/kamailio/kamailio/pull/3895.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3895
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3895(a)github.com>
<!-- 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 -->
- [x] Commit message has the format required by CONTRIBUTING guide
- [x] Commits are split per component (core, individual modules, libs, utils, ...)
- [x] Each component has a single commit (if not, squash them into one commit)
- [x] 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
- [x] 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 -->
The `ims_registrar_scscf` was not able to function with global-number tel-URIs. This fix prevents a bad AOR to search by from being formed, when the host part of Request-URI is empty.
e.g. INVITE with Request-URI `tel:+123` --> AOR to search by was `tel:+123@` --> not found in `ims_usrloc_scscf`
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3897
-- Commit Summary --
* ims_registrar_scscf: fix for location AOR with empty host
-- File Changes --
M src/modules/ims_registrar_scscf/lookup.c (5)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3897.patchhttps://github.com/kamailio/kamailio/pull/3897.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3897
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3897(a)github.com>
- URL: https://github.com/kamailio/kamailio/commit/1b96bb4a5a667c9838441876838d3c1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T09:59:39+02:00
core: parse privacy recompute lenght of rest to parse
(cherry picked from commit 804ee651b45498727196886c97cb55d20b254c4a)
(cherry picked from commit 8674b333300d5829bff9cb4993886bcf7bea249b)
- URL: https://github.com/kamailio/kamailio/commit/f1d593b55f4334c1ac1e61c7dd5775a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T09:59:53+02:00
pv: remove extra len increment for some uri transformations
(cherry picked from commit 3fe9a279abecf6f367ce9fd2d4b085c41c87ad77)
(cherry picked from commit 75aecd3f2e10509d5ed71cc5e89ae6f5c3bd0fea)
- URL: https://github.com/kamailio/kamailio/commit/6ed780aa1eea71c9c789809fce91d4a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:00:59+02:00
core: set proto on fixing forward actions
(cherry picked from commit e51ccd11fe51f2d53dd7719b8fdec561a6ba7494)
(cherry picked from commit 18fead63dca0982df500b35b7c4e2d06550d9b40)
- URL: https://github.com/kamailio/kamailio/commit/a8fe0bf1f07fba7662bea122e5f2ff0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:01:08+02:00
dialog: prevent duplicate of leg1 attributes in json for dmq
- reported by #3656
(cherry picked from commit ca7e1e49aecd3e0f12cc783e3b97868980f1d3d2)
(cherry picked from commit 065203150aaf2f99bd6fe40ce5ffb960bd430c16)
- URL: https://github.com/kamailio/kamailio/commit/a7dd64a7d9183caccfdc280eb4f5d67…
Author: Pe����ter Baraba����s <peter.barabas(a)securesoft.hu>
Date: 2024-07-01T10:01:20+02:00
uac: fix socket length settings
- set _uac_req.s_sock.len value to 0 in pv_set_uac_req() method in case of "all" case
- change setting of _uac_req.s_apasswd.len to _uac_req.s_sock.len in pv_set_uac_req() method in case of "sock" case
(cherry picked from commit 10519d199f6cac116399f4473bd82f2b08de72ba)
(cherry picked from commit 3046d01bed4bdd0fe763fd770ffc8f7aeeae3418)
- URL: https://github.com/kamailio/kamailio/commit/fbc0728080c3846f49b34e56daf0ba2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:01:37+02:00
dialog: check first the size
(cherry picked from commit 9db18bc48bff0d230e66973a45c8e72e1b7744e8)
(cherry picked from commit 37621005e38a0191a93fbaf4f39b8b88c7486c9d)
- URL: https://github.com/kamailio/kamailio/commit/f80a035be2846ab36cfe4209e210f0a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:01:54+02:00
core: check if conversion could not be done
(cherry picked from commit 077651fa3bfd50e0f654c907f3783b1421497bd5)
(cherry picked from commit 62b76c076ff0f36b847a13c180b7d5090e98d94e)
- URL: https://github.com/kamailio/kamailio/commit/c9f7bdb6024a05f03067c73e4a6e40b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:02:12+02:00
pv: typo in transformation log message
(cherry picked from commit ca2a9479adf720e67bf50c9d2795cc8937e223dc)
(cherry picked from commit 2d385c1983a921a95fb392e8aea0332fdc10a387)
- URL: https://github.com/kamailio/kamailio/commit/bc81c9ae6e9bc22198e19be520255f1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:02:39+02:00
pv: removed unnecessary condition
(cherry picked from commit 2f43510be37c157f800389dfb432b6c52d7435a7)
(cherry picked from commit 5a26d9e9fba36a49a93bb3b886836615f62ed3d1)
- URL: https://github.com/kamailio/kamailio/commit/c9e9112322cc392edc9071c35701d86…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:03:13+02:00
statsd: use bool type for local variable to match return of function
(cherry picked from commit 0186246fce8f0e4bb46b30c05174983cd957a3ba)
(cherry picked from commit fc0bd88b55121e3588f5793480f0594e44bf2b17)
- URL: https://github.com/kamailio/kamailio/commit/bd5f2d21f7aa64647ce24bdd16e565a…
Author: Dennis Yurasov <dennis-y(a)yandex-team.ru>
Date: 2024-07-01T10:03:36+02:00
dialog: fixed saving dialogs on shutdown that are already loaded at startup when using db_mode 3
- The dialogs that loaded at startup are not saved in DB on shutdown, and so not loaded at restart,
fixes issue #3669
(cherry picked from commit 2d00ce546bb0852dc1784d5bc2e794d06f919577)
(cherry picked from commit 37a07037b6e3485f3ddd1b27b1998af6e4283bcb)
- URL: https://github.com/kamailio/kamailio/commit/785b962507a21191a345add832bb241…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Date: 2024-07-01T10:04:11+02:00
http_async_client: exit mod_init if tm is not loaded
(cherry picked from commit 5a40d1ef1b484c4fc437a3f0183a101241e80313)
(cherry picked from commit 2dff6f52d1393cf8eabe714262ec8e56aad0d212)
- URL: https://github.com/kamailio/kamailio/commit/b19b38f7d9a5b7568bd180e57027367…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:04:30+02:00
core: keep listen socket even if advertise address does not resolve
- the core advertise_address parameter works in the same fashion
- previously it was starting by skipping the listen, which resulted in
unexpected runtime list of sockets
(cherry picked from commit b50036200c5bc09fd2d412a18585b42d63763b27)
(cherry picked from commit a539ca32ec3a898e354aab90d899b99564064392)
- URL: https://github.com/kamailio/kamailio/commit/a5615fb833433eec6c9184ae8bfb245…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:06:05+02:00
topos: small rearangement by removing else after return in the true block
- reduce level of indentation
- a few wraps in curly braces for clearer view of the if block
(cherry picked from commit b6fccea258e56b7d3195659245713a6d44acb013)
(cherry picked from commit 772b464552cff0b9ebb769e57fae718c0357ba11)
(cherry picked from commit 0f31190eb15b1e1244f478cc9538bf071317cb35)
- URL: https://github.com/kamailio/kamailio/commit/fc9f03bf3f792acbc4ca4ae65881961…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:06:13+02:00
topos: properly handle cases of no user in contact for mode 1
- contact mode 1 accepted cases with no-user in contact uri but not in
r-uri, however, requests within dialog can have one's contact in r-uri
and then processing failed
(cherry picked from commit 24e410f9a20d004f55bcc79cd10fb35cb26e4570)
(cherry picked from commit 45ee72fcf0ae8aeb135196ef8729fe0cea14048e)
(cherry picked from commit 1666d4bce924b8c0d44119491199a164c9642469)
- URL: https://github.com/kamailio/kamailio/commit/ae9a257503fc78ad2f10691a14d2a23…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:06:30+02:00
keepalive: proper storing of last up/down timestamps
- GH #3790
(cherry picked from commit 9e2a0ee545646bd4491ecdbe58d7fea770764b54)
(cherry picked from commit 0b3aa00775a5c0b4b1dc4990f4c26bc637fc6de5)
(cherry picked from commit 6a9caa099352a31a2f14012d16c01d55c9250f02)
- URL: https://github.com/kamailio/kamailio/commit/5261da60ddfbfd6daf43469527b36f6…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:07:06+02:00
ndb_redis: fix index on parsing sentinel address inside redisc_reconnect_server()
(cherry picked from commit c8f3b496a05ae5bf29341dc7e2630f951d4effc5)
(cherry picked from commit 86df978bc9842687035d6673ee1b71e542dcbd71)
(cherry picked from commit 4cc28e453d8e62b9f6e2725b9496600c662a8811)
- URL: https://github.com/kamailio/kamailio/commit/768c7abe720848e48fcba61d7347d08…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:07:34+02:00
ctl: handle int input for double storage
(cherry picked from commit 1380a4a0d18159c7130b70c0216134a253ad83f7)
(cherry picked from commit 90f8117f9669069b4dab7e9d747dfa06245ec8a0)
(cherry picked from commit 29b6562d8ebe6277fda5524dda18b88cf2a4e1a9)
- URL: https://github.com/kamailio/kamailio/commit/54c1464db8d074415eeb01fcd0b71db…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:08:08+02:00
jansson: declare variables at the beginning of blocks
(cherry picked from commit a2bff77c3f7bfee8dae90c3ef20522d480f2e14d)
(cherry picked from commit fb685a8bd5d5e34edde44614f313cbb5c27b3c25)
- URL: https://github.com/kamailio/kamailio/commit/03e2c458f05dda76128be2031414a7f…
Author: Xenofon Karamanos <xk(a)gilawa.com>
Date: 2024-07-01T10:08:20+02:00
core: properly handle drop() action for kemi engines
- GH #3718
(cherry picked from commit 82593a09f8ef6d53e7e88238c057bbcdd9ab287b)
(cherry picked from commit 2758754f2bb427bff06b2a6e82175870eced336d)
- URL: https://github.com/kamailio/kamailio/commit/e325a662226888372e230421f5f7371…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:08:55+02:00
core: select - handle ws and wss inside select_ip_port()
(cherry picked from commit d8e0942c9e83c8cad7c182bf41c156ba35bf24d2)
(cherry picked from commit 089bf63178039b13cde0beccfacab1536af76179)
(cherry picked from commit cea618ede170bd02bb7ccd478a4f1a7a6c052cdf)
- URL: https://github.com/kamailio/kamailio/commit/44731d40834bcf75282c535a1770f4c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:09:07+02:00
core: parser rr - check for rr value before serializing
(cherry picked from commit 6ee26a3ae3293aaeb4507d5d0b16ad31173cc39a)
(cherry picked from commit 4626cb7f0e0b273153ce0004900a92553783a893)
(cherry picked from commit 92d3b52ca4595a7e4d8ab003951191c387d32eee)
- URL: https://github.com/kamailio/kamailio/commit/e4c30d23e87591c61e2c6684a44cd59…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:09:18+02:00
ctl: reset log prefix on reading ctl traffic
- it may be previously set in process by some event route
(cherry picked from commit 5b8b2717ee2f57da932132683b27eb33cea3fd59)
(cherry picked from commit d45c78eeeaea6a9fc9dcb927436f834392d9d7c9)
(cherry picked from commit d12613c8e357a8dc882eefe2d84fedd1df97a415)
- URL: https://github.com/kamailio/kamailio/commit/a507b2292724ca2e0426f986d422f60…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:09:31+02:00
acc: more log messages of failure arsing extra acc string
(cherry picked from commit 04a73ace6572dd5c95a8f50b39b2ce712f7ebe84)
(cherry picked from commit 91b0962679092f28abb5022d1505372356460f7d)
(cherry picked from commit f225edd2fdc87b0ebf72e15d8a11255ddd86b872)
- URL: https://github.com/kamailio/kamailio/commit/be6a52a7a685bfd3e3df595ae73030c…
Author: Elena-Ramona Modroiu <ramona(a)asipto.com>
Date: 2024-07-01T10:09:44+02:00
core: resolve/create_srv_pref_list() - insert at correct position in list
(cherry picked from commit f35cf8904119dcf582ea2451648de5fef095466b)
(cherry picked from commit dbf9208f3a402844c9981fb7ed09493a1338dfdd)
(cherry picked from commit c90b736a098e1d76224c1e97c2a71423efa5cf98)
- URL: https://github.com/kamailio/kamailio/commit/71db5b95b4b6125b1aa544efb459197…
Author: Elena-Ramona Modroiu <ramona(a)asipto.com>
Date: 2024-07-01T10:10:01+02:00
corex: fix conditions for dns_cache modparam srv attributes
(cherry picked from commit 8114b2016d032484edafe4edd04fb02d52cfd058)
(cherry picked from commit 3f44cabcfc0abc83ae1971ac74fbb0bd36829ce4)
(cherry picked from commit a82d1575d9ac7820e526741fc169033767a10ca5)
- URL: https://github.com/kamailio/kamailio/commit/980d823b7dd3d14b9656be1e1fc1526…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:10:12+02:00
smsops: reformat module exports structures
(cherry picked from commit 9848d43cb367d6901a0b8c727759feb8a8fad930)
(cherry picked from commit b21a7aaa467f2b76a52308557657c65274e34087)
(cherry picked from commit edbcfff018145372fd6fa5d1777912f0f84d8ea7)
- URL: https://github.com/kamailio/kamailio/commit/0df6e369d6cec014361c9808dd8eafa…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:10:22+02:00
smsops: short reference section about variables
(cherry picked from commit 9a94930ae1168d5df79e3dc1414841cdf23a2eba)
(cherry picked from commit c0c8ee05ab25256b9154d2056ee04b07f3f2290a)
(cherry picked from commit b3935051a8112b1a2152d8eb65da29b1941735df)
- URL: https://github.com/kamailio/kamailio/commit/17066ee9565105adabf6f4f8bcb650a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:10:30+02:00
blst: reformat exported structures
(cherry picked from commit e39557c96d2f419184c826d779f1a3309acc4269)
(cherry picked from commit e394a05152b29d4009c9cb963bced72526c7651b)
(cherry picked from commit f1969ecaacd47eb03ef6b54d71c70370d9e39150)
- URL: https://github.com/kamailio/kamailio/commit/a4b0da655bb0e9c64b8790d7b4801e4…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:10:40+02:00
sdpops: reformat the codecs map
(cherry picked from commit 359a442e14a156b0bcf60dc5b2580cbc57924e34)
(cherry picked from commit 855c76780c4399d6d9881ce3c525a7df56e111c4)
(cherry picked from commit 8bb69fd5f5911098a3e567887ad2a3a2820ae5e6)
- URL: https://github.com/kamailio/kamailio/commit/42669bec9c3f3ed75c010f645dddbe5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:11:23+02:00
core: fmsg - parse loopback ip when initializing faked msg structure
- GH #3817
(cherry picked from commit 66b3c04a9653425b1602c82dd2456a7eb7cf59d1)
(cherry picked from commit 794c2edeaffe059bf8de6ab1d3df5db003ed4cb0)
(cherry picked from commit 365bb5d7fd1534e467f8a2d1b120f2c03fc4caff)
- URL: https://github.com/kamailio/kamailio/commit/ac221658e9227ec8f04a6a3bef677a8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:11:43+02:00
phonenum: Makefile - option to set C standard version
- can be set via option CSTDVER
- defaults now to c++17
- GH #3659
(cherry picked from commit 6dd5598fc043fe3d2582e643d7d4ef675c9e6480)
(cherry picked from commit bec4ad646f127a1f5bbf31604e6185b246867770)
- URL: https://github.com/kamailio/kamailio/commit/824a1ce63b974256e6a5e8fdfe8a0f5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:14:08+02:00
htable: error on not finding htable in pv set
(cherry picked from commit 82cfea317fd8d02a6c94347bc1be18c8a06e580f)
(cherry picked from commit 9a7e3e54f1c52ee69c68b1165de115894c2afc55)
(cherry picked from commit 239153a860875aba578ba060241fcb419ad98276)
- URL: https://github.com/kamailio/kamailio/commit/cc245af6947ac19d53abd3743c8a3f2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:14:14+02:00
htable: error on not finding htable in pv get
(cherry picked from commit 24b27214231166366cceb88fcb3724298cc53b32)
(cherry picked from commit 7087ce6aa496de9b6015e5054d8fd70bf2e055b3)
(cherry picked from commit 5da78f619c747edb674970b87426582b90c8bae3)
- URL: https://github.com/kamailio/kamailio/commit/32f92d102325eed041d242aa27837df…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:14:23+02:00
siputils: free head of params list for get_uri_param()
- GH #3857
(cherry picked from commit d72a3fbc903da02ae3b26f3aae2ea228c9f8b255)
(cherry picked from commit 833b93563f43fa95e4bfdd175b144670b66a11cd)
(cherry picked from commit 5da933f3888ab3981fa8ec4ad255a4e8f3770d2d)
- URL: https://github.com/kamailio/kamailio/commit/d90e956f01ba8124d65d6fd6c3de7d3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:14:30+02:00
siputils: free head of params list for get_uri_param()
- GH #3857
(cherry picked from commit 8363208fff7c101a2779ff64783e5b7dbf8ffd7c)
(cherry picked from commit ebc8acef7617a69dcc06b163c47e88a99d835f9e)
(cherry picked from commit d503c70bbc9790073424630ce842b1987cbe2a7c)
- URL: https://github.com/kamailio/kamailio/commit/d19843d691e8dc281dd5e49d516ab2c…
Author: Xenofon Karamanos <22965395+xkaraman(a)users.noreply.github.com>
Date: 2024-07-01T10:14:52+02:00
core/resolve: Check dns_cache_init and choose appropriate functions
(cherry picked from commit 06d583e356351ae9d8a559c9f5de3e57fb128a38)
(cherry picked from commit 5999529be9ac2187dad465518bea3dee1b06d0f7)
(cherry picked from commit 22a28b0b0e7f66a8e73d92fcc5f014f722aa2d1f)
- URL: https://github.com/kamailio/kamailio/commit/c8c77bebb2c17ad3da5e2cdff467ab5…
Author: codenot <codenot(a)msn.com>
Date: 2024-07-01T10:15:04+02:00
nathelper: fixed handle_ruri_alias_mode(1) cannot proper handle multi alias
(cherry picked from commit 8e0b2e4b6450fa50bd573fa013dc888aaaccd2bf)
(cherry picked from commit eb4ec6f9305e334d9749e1fd56ad195c383cef77)
(cherry picked from commit 8d1f1843f04d9e1a6db983bf860c76f7a1ac4b40)
- URL: https://github.com/kamailio/kamailio/commit/bf5012af8958d3223d54a3021af7eea…
Author: Xenofon Karamanos <22965395+xkaraman(a)users.noreply.github.com>
Date: 2024-07-01T10:15:11+02:00
nathelper: remove magic constant
(cherry picked from commit 3d187336f22e30800acefd28e4d0f98e0f677a49)
(cherry picked from commit e8dc8506dbc4d8964e02c3be175d7f18f5fe69a4)
(cherry picked from commit a11e8ae3f8daae13ba6b162ab050bb7d8c8bd01b)
- URL: https://github.com/kamailio/kamailio/commit/e5480572223b3d235762f4b1d773d9e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:15:25+02:00
dmq_usrloc: reformat exported structures
(cherry picked from commit e94812149c6f2867a5b23f1218a9af139590bf51)
(cherry picked from commit 5571ea0ff8877a8a19b3fb76030af19b59f141db)
(cherry picked from commit b1ffd5982329cda6d1e5da008703fe302402ee36)
- URL: https://github.com/kamailio/kamailio/commit/bf1306430f26525f78571e93662767f…
Author: Dennis Yurasov <dennis-y(a)yandex-team.ru>
Date: 2024-07-01T10:15:42+02:00
siptrace: add SND_F_FORCE_SOCKET flag if send_sock_name/send_sock_address config parameters are used
- send_sock_name/send_sock_address is ineffective for tcp based transports if SND_F_FORCE_SOCKET flag is not set
(cherry picked from commit 1b97a0271b27794263b3eff61f4acfa81e66069f)
(cherry picked from commit 2606c4e07e598ea41cb5a8814e3587bf49f94c1e)
(cherry picked from commit eed224e4906b6691d07ea379727e2ed627c3e80f)
- URL: https://github.com/kamailio/kamailio/commit/12ace0b9d8214575ce9b1f5f4947004…
Author: Dragos Vingarzan <vingarzan(a)gmail.com>
Date: 2024-07-01T10:15:51+02:00
textopx/doc: fixed hard-to-read documentation for textopsx
- was missing line-wraps in examples list, hence very hard to read
(cherry picked from commit 48d97c1941f660aa396b5ef100584611cf92ad21)
(cherry picked from commit 7bf787d00f9f7ed8a2d758219d6d1413b2b5c975)
(cherry picked from commit e017ae88c155c2bd60a9611bca676308695f3c75)
- URL: https://github.com/kamailio/kamailio/commit/2ca23caf6c6766a7268ba51f6f67d11…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:15:58+02:00
textopsx: docs - note about @hf_value2 select
(cherry picked from commit d13c741d90c3887cdf144a9094a78c0c7cb9856d)
(cherry picked from commit 70cf3ebd2b52c341a90c9b9b6149985667a6b96c)
(cherry picked from commit a0cef6e8689b66f7548fe56eaa79e692d5061e93)
- URL: https://github.com/kamailio/kamailio/commit/57003d4382ad5e2e1ea1163005ede0c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:16:06+02:00
core: removed duplicated break
(cherry picked from commit 588b9c710b6555371bc8bbee21e474466bb099dd)
(cherry picked from commit 4fa5fc10370d81d534d75b034322a6250c7e2557)
(cherry picked from commit 1bd30c65b74b30339841c57d2948ea7db9a40fe9)
- URL: https://github.com/kamailio/kamailio/commit/559cbb1ea5f0b7da95fc6a864e0e9d0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T10:16:16+02:00
cnxcc: check if final pulse is 0
- avoid dividing with it in such case
- GH #3859
(cherry picked from commit 7061a79fe64066dd5a6598e38d714bd40bf2eabc)
(cherry picked from commit ca3d4b3515024732805038509dd0d9f0b60ab273)
(cherry picked from commit a9a337562d1b57afedb31d49764e03c7ebd85f31)
Module: kamailio
Branch: 5.7
Commit: 4d1c41f2af5279f6ffbcba59f5b51e06989ba66d
URL: https://github.com/kamailio/kamailio/commit/4d1c41f2af5279f6ffbcba59f5b51e0…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2024-07-01T10:01:27+02:00
modules: readme files regenerated - modules ... [skip ci]
---
Modified: src/modules/textopsx/README
---
Diff: https://github.com/kamailio/kamailio/commit/4d1c41f2af5279f6ffbcba59f5b51e0…
Patch: https://github.com/kamailio/kamailio/commit/4d1c41f2af5279f6ffbcba59f5b51e0…
---
diff --git a/src/modules/textopsx/README b/src/modules/textopsx/README
index fa03fdf7b26..6941def2d83 100644
--- a/src/modules/textopsx/README
+++ b/src/modules/textopsx/README
@@ -731,27 +731,38 @@ bl_iterator_end("b1");
3.1. @hf_value
- Get value of required header-value or param. Note that functions called
- 'value2' works with Authorization-like headers where comma is not
- treated as value delimiter. Formats: @hf_value.HFNAME[IDX] # idx value,
- negative value counts from bottom @hf_value.HFNAME.PARAM_NAME
- @hf_value.HFNAME[IDX].PARAM_NAME @hf_value.HFNAME.p.PARAM_NAME # or
- .param., useful if required called "uri", "p", "param"
- @hf_value.HFNAME[IDX].p.PARAM_NAME # dtto @hf_value.HFNAME[IDX].uri #
- (< & > excluded) @hf_value.HFNAME[*] # return comma delimited list of
- all values (combines headers) @hf_value.HFNAME # the same as above [*]
- but may be parsed by cfg.y @hf_value.HFNAME[*].uri # return comma
- delimited list of uris (< & > excluded) @hf_value.HFNAME.uri # the same
- as above [*] but may be parsed by cfg.y @hf_value.HFNAME[IDX].name #
- returns name part, quotes excluded @hf_value.HFNAME.name # returns name
- part of the first value @hf_value2.HFNAME # returns value of first
- header @hf_value2.HFNAME[IDX] # returns value of idx's header
- @hf_value2.HFNAME.PARAM_NAME @hf_value2.HFNAME[IDX].PARAM_NAME
- @hf_value.HFNAME[IDX].uri # return URI, quotes excluded
- @hf_value.HFNAME.p.uri # returns param named uri, not URI itself
- @hf_value.HFNAME.p.name # returns param named name, not name itself
- @hf_value.HFNAME[IDX].uri.name # any sel_any_uri nested features may be
- used @hf_value.HFNAME[IDX].nameaddr.name # select_any_nameaddr
+ Get value of required header-value or param. Note that selects called
+ 'hf_value2' work with Authorization-like headers where comma is not
+ treated as value delimiter.
+
+ Formats:
+ * @hf_value.HFNAME[IDX] # idx value, negative value counts from
+ bottom
+ * @hf_value.HFNAME.PARAM_NAME
+ * @hf_value.HFNAME[IDX].PARAM_NAME
+ * @hf_value.HFNAME.p.PARAM_NAME # or .param., useful if required
+ called "uri", "p", "param"
+ * @hf_value.HFNAME[IDX].p.PARAM_NAME # dtto
+ * @hf_value.HFNAME[IDX].uri # (< & > excluded)
+ * @hf_value.HFNAME[*] # return comma delimited list of all values
+ (combines headers)
+ * @hf_value.HFNAME # the same as above [*] but may be parsed by cfg.y
+ * @hf_value.HFNAME[*].uri # return comma delimited list of uris (< &
+ > excluded)
+ * @hf_value.HFNAME.uri # the same as above [*] but may be parsed by
+ cfg.y
+ * @hf_value.HFNAME[IDX].name # returns name part, quotes excluded
+ * @hf_value.HFNAME.name # returns name part of the first value
+ * @hf_value2.HFNAME # returns value of first header
+ * @hf_value2.HFNAME[IDX] # returns value of idx's header
+ * @hf_value2.HFNAME.PARAM_NAME
+ * @hf_value2.HFNAME[IDX].PARAM_NAME
+ * @hf_value.HFNAME[IDX].uri # return URI, quotes excluded
+ * @hf_value.HFNAME.p.uri # returns param named uri, not URI itself
+ * @hf_value.HFNAME.p.name # returns param named name, not name itself
+ * @hf_value.HFNAME[IDX].uri.name # any sel_any_uri nested features
+ may be used
+ * @hf_value.HFNAME[IDX].nameaddr.name # select_any_nameaddr
Meaning of the parameters is as follows:
* HFNAME - Header field name. Underscores are treated as dashes.
@@ -772,7 +783,9 @@ $prt = @hf_value2.authorization.integrity_protected;
3.2. @hf_value2
- TBA.
+ Similar to selects called 'hf_value', but work with Authorization-like
+ headers where comma is treated as attribute delimiter instead of header
+ value delimiter.
3.3. @hf_value_exists
- URL: https://github.com/kamailio/kamailio/commit/6173af8d414de313b3ed8ced5e662e9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T09:19:24+02:00
sipcapture: use local static buffers for ip address and port
- GH #3835
(cherry picked from commit d1f377ff23f491bfd5162cb7bf510759440dd8e5)
(cherry picked from commit 5c4f687d0ed06d6c7a5696917982b1cf03f9c8bd)
- URL: https://github.com/kamailio/kamailio/commit/dfbfd307d80c9259f28f3df0874fb7a…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Date: 2024-07-01T09:19:32+02:00
db_mysql: fixed build on CentOS 7
(cherry picked from commit 767b3faee3af450d6482b919c81431ea6d707807)
(cherry picked from commit d53843c75da9115a9c3cb6b1b909fd3827b6c437)
- URL: https://github.com/kamailio/kamailio/commit/60335c8fb52b01b2fa6840d7f55ef87…
Author: Rick Barenthin <rick(a)ng-voice.com>
Date: 2024-07-01T09:19:46+02:00
usrloc: delete location_attrs in db_only mode on delete_urecord
When calling delete_urecord in DB_ONLY mode the location_attrs are not deleted.
This fix makes sure to delete location_attrs when calling db_delete_urecord is called.
(cherry picked from commit 6b8f6d3b5d563d91234b8d4b7e155b7e74b9d313)
(cherry picked from commit deb11ee814e1591698d120a113630aa7a9791ad7)
- URL: https://github.com/kamailio/kamailio/commit/239153a860875aba578ba060241fcb4…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T09:19:56+02:00
htable: error on not finding htable in pv set
(cherry picked from commit 82cfea317fd8d02a6c94347bc1be18c8a06e580f)
(cherry picked from commit 9a7e3e54f1c52ee69c68b1165de115894c2afc55)
- URL: https://github.com/kamailio/kamailio/commit/5da78f619c747edb674970b87426582…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T09:20:07+02:00
htable: error on not finding htable in pv get
(cherry picked from commit 24b27214231166366cceb88fcb3724298cc53b32)
(cherry picked from commit 7087ce6aa496de9b6015e5054d8fd70bf2e055b3)
- URL: https://github.com/kamailio/kamailio/commit/5da933f3888ab3981fa8ec4ad255a4e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T09:20:36+02:00
siputils: free head of params list for get_uri_param()
- GH #3857
(cherry picked from commit d72a3fbc903da02ae3b26f3aae2ea228c9f8b255)
(cherry picked from commit 833b93563f43fa95e4bfdd175b144670b66a11cd)
- URL: https://github.com/kamailio/kamailio/commit/d503c70bbc9790073424630ce842b19…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T09:20:48+02:00
siputils: free head of params list for get_uri_param()
- GH #3857
(cherry picked from commit 8363208fff7c101a2779ff64783e5b7dbf8ffd7c)
(cherry picked from commit ebc8acef7617a69dcc06b163c47e88a99d835f9e)
- URL: https://github.com/kamailio/kamailio/commit/22a28b0b0e7f66a8e73d92fcc5f014f…
Author: Xenofon Karamanos <22965395+xkaraman(a)users.noreply.github.com>
Date: 2024-07-01T09:28:33+02:00
core/resolve: Check dns_cache_init and choose appropriate functions
(cherry picked from commit 06d583e356351ae9d8a559c9f5de3e57fb128a38)
(cherry picked from commit 5999529be9ac2187dad465518bea3dee1b06d0f7)
- URL: https://github.com/kamailio/kamailio/commit/8d1f1843f04d9e1a6db983bf860c76f…
Author: codenot <codenot(a)msn.com>
Date: 2024-07-01T09:28:47+02:00
nathelper: fixed handle_ruri_alias_mode(1) cannot proper handle multi alias
(cherry picked from commit 8e0b2e4b6450fa50bd573fa013dc888aaaccd2bf)
(cherry picked from commit eb4ec6f9305e334d9749e1fd56ad195c383cef77)
- URL: https://github.com/kamailio/kamailio/commit/a11e8ae3f8daae13ba6b162ab050bb7…
Author: Xenofon Karamanos <22965395+xkaraman(a)users.noreply.github.com>
Date: 2024-07-01T09:29:12+02:00
nathelper: remove magic constant
(cherry picked from commit 3d187336f22e30800acefd28e4d0f98e0f677a49)
(cherry picked from commit e8dc8506dbc4d8964e02c3be175d7f18f5fe69a4)
- URL: https://github.com/kamailio/kamailio/commit/b1ffd5982329cda6d1e5da008703fe3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T09:29:22+02:00
dmq_usrloc: reformat exported structures
(cherry picked from commit e94812149c6f2867a5b23f1218a9af139590bf51)
(cherry picked from commit 5571ea0ff8877a8a19b3fb76030af19b59f141db)
- URL: https://github.com/kamailio/kamailio/commit/8c4f102948a7a472c57c260bb2c49bc…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-07-01T09:30:22+02:00
tls: remove confusing error message when trying to print socket for <default> server
> CRITICAL: <core> [core/ip_addr.c:232]: ip_addr2sbuf(): unknown address family 0
> NOTICE: tls [tls_domain.c:1176]: ksr_tls_fix_domain(): registered server_name callback handler for socket [:0], server_name='<default>' ...
(cherry picked from commit 87c8290ab934fd27f8baebabaf66d1fb4168ba72)
(cherry picked from commit be76a51422df3294c533accae1b6a621ee9d3a7d)
- URL: https://github.com/kamailio/kamailio/commit/eed224e4906b6691d07ea379727e2ed…
Author: Dennis Yurasov <dennis-y(a)yandex-team.ru>
Date: 2024-07-01T09:30:30+02:00
siptrace: add SND_F_FORCE_SOCKET flag if send_sock_name/send_sock_address config parameters are used
- send_sock_name/send_sock_address is ineffective for tcp based transports if SND_F_FORCE_SOCKET flag is not set
(cherry picked from commit 1b97a0271b27794263b3eff61f4acfa81e66069f)
(cherry picked from commit 2606c4e07e598ea41cb5a8814e3587bf49f94c1e)
- URL: https://github.com/kamailio/kamailio/commit/e017ae88c155c2bd60a9611bca67630…
Author: Dragos Vingarzan <vingarzan(a)gmail.com>
Date: 2024-07-01T09:31:10+02:00
textopx/doc: fixed hard-to-read documentation for textopsx
- was missing line-wraps in examples list, hence very hard to read
(cherry picked from commit 48d97c1941f660aa396b5ef100584611cf92ad21)
(cherry picked from commit 7bf787d00f9f7ed8a2d758219d6d1413b2b5c975)
- URL: https://github.com/kamailio/kamailio/commit/a0cef6e8689b66f7548fe56eaa79e69…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T09:31:18+02:00
textopsx: docs - note about @hf_value2 select
(cherry picked from commit d13c741d90c3887cdf144a9094a78c0c7cb9856d)
(cherry picked from commit 70cf3ebd2b52c341a90c9b9b6149985667a6b96c)
- URL: https://github.com/kamailio/kamailio/commit/1bd30c65b74b30339841c57d2948ea7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T09:31:26+02:00
core: removed duplicated break
(cherry picked from commit 588b9c710b6555371bc8bbee21e474466bb099dd)
(cherry picked from commit 4fa5fc10370d81d534d75b034322a6250c7e2557)
- URL: https://github.com/kamailio/kamailio/commit/a9a337562d1b57afedb31d49764e03c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T09:31:38+02:00
cnxcc: check if final pulse is 0
- avoid dividing with it in such case
- GH #3859
(cherry picked from commit 7061a79fe64066dd5a6598e38d714bd40bf2eabc)
(cherry picked from commit ca3d4b3515024732805038509dd0d9f0b60ab273)
Module: kamailio
Branch: 5.8
Commit: 3161964efba19e5e7bd730bf656d019cac2c6ed8
URL: https://github.com/kamailio/kamailio/commit/3161964efba19e5e7bd730bf656d019…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2024-07-01T09:16:18+02:00
modules: readme files regenerated - modules ... [skip ci]
---
Modified: src/modules/textopsx/README
---
Diff: https://github.com/kamailio/kamailio/commit/3161964efba19e5e7bd730bf656d019…
Patch: https://github.com/kamailio/kamailio/commit/3161964efba19e5e7bd730bf656d019…
---
diff --git a/src/modules/textopsx/README b/src/modules/textopsx/README
index 1759870cb2f..3e2f9e2eb6b 100644
--- a/src/modules/textopsx/README
+++ b/src/modules/textopsx/README
@@ -731,27 +731,38 @@ bl_iterator_end("b1");
3.1. @hf_value
- Get value of required header-value or param. Note that functions called
- 'value2' works with Authorization-like headers where comma is not
- treated as value delimiter. Formats: @hf_value.HFNAME[IDX] # idx value,
- negative value counts from bottom @hf_value.HFNAME.PARAM_NAME
- @hf_value.HFNAME[IDX].PARAM_NAME @hf_value.HFNAME.p.PARAM_NAME # or
- .param., useful if required called "uri", "p", "param"
- @hf_value.HFNAME[IDX].p.PARAM_NAME # dtto @hf_value.HFNAME[IDX].uri #
- (< & > excluded) @hf_value.HFNAME[*] # return comma delimited list of
- all values (combines headers) @hf_value.HFNAME # the same as above [*]
- but may be parsed by cfg.y @hf_value.HFNAME[*].uri # return comma
- delimited list of uris (< & > excluded) @hf_value.HFNAME.uri # the same
- as above [*] but may be parsed by cfg.y @hf_value.HFNAME[IDX].name #
- returns name part, quotes excluded @hf_value.HFNAME.name # returns name
- part of the first value @hf_value2.HFNAME # returns value of first
- header @hf_value2.HFNAME[IDX] # returns value of idx's header
- @hf_value2.HFNAME.PARAM_NAME @hf_value2.HFNAME[IDX].PARAM_NAME
- @hf_value.HFNAME[IDX].uri # return URI, quotes excluded
- @hf_value.HFNAME.p.uri # returns param named uri, not URI itself
- @hf_value.HFNAME.p.name # returns param named name, not name itself
- @hf_value.HFNAME[IDX].uri.name # any sel_any_uri nested features may be
- used @hf_value.HFNAME[IDX].nameaddr.name # select_any_nameaddr
+ Get value of required header-value or param. Note that selects called
+ 'hf_value2' work with Authorization-like headers where comma is not
+ treated as value delimiter.
+
+ Formats:
+ * @hf_value.HFNAME[IDX] # idx value, negative value counts from
+ bottom
+ * @hf_value.HFNAME.PARAM_NAME
+ * @hf_value.HFNAME[IDX].PARAM_NAME
+ * @hf_value.HFNAME.p.PARAM_NAME # or .param., useful if required
+ called "uri", "p", "param"
+ * @hf_value.HFNAME[IDX].p.PARAM_NAME # dtto
+ * @hf_value.HFNAME[IDX].uri # (< & > excluded)
+ * @hf_value.HFNAME[*] # return comma delimited list of all values
+ (combines headers)
+ * @hf_value.HFNAME # the same as above [*] but may be parsed by cfg.y
+ * @hf_value.HFNAME[*].uri # return comma delimited list of uris (< &
+ > excluded)
+ * @hf_value.HFNAME.uri # the same as above [*] but may be parsed by
+ cfg.y
+ * @hf_value.HFNAME[IDX].name # returns name part, quotes excluded
+ * @hf_value.HFNAME.name # returns name part of the first value
+ * @hf_value2.HFNAME # returns value of first header
+ * @hf_value2.HFNAME[IDX] # returns value of idx's header
+ * @hf_value2.HFNAME.PARAM_NAME
+ * @hf_value2.HFNAME[IDX].PARAM_NAME
+ * @hf_value.HFNAME[IDX].uri # return URI, quotes excluded
+ * @hf_value.HFNAME.p.uri # returns param named uri, not URI itself
+ * @hf_value.HFNAME.p.name # returns param named name, not name itself
+ * @hf_value.HFNAME[IDX].uri.name # any sel_any_uri nested features
+ may be used
+ * @hf_value.HFNAME[IDX].nameaddr.name # select_any_nameaddr
Meaning of the parameters is as follows:
* HFNAME - Header field name. Underscores are treated as dashes.
@@ -772,7 +783,9 @@ $prt = @hf_value2.authorization.integrity_protected;
3.2. @hf_value2
- TBA.
+ Similar to selects called 'hf_value', but work with Authorization-like
+ headers where comma is treated as attribute delimiter instead of header
+ value delimiter.
3.3. @hf_value_exists
Module: kamailio
Branch: 5.8
Commit: 70cf3ebd2b52c341a90c9b9b6149985667a6b96c
URL: https://github.com/kamailio/kamailio/commit/70cf3ebd2b52c341a90c9b9b6149985…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T09:11:16+02:00
textopsx: docs - note about @hf_value2 select
(cherry picked from commit d13c741d90c3887cdf144a9094a78c0c7cb9856d)
---
Modified: src/modules/textopsx/doc/selects.xml
---
Diff: https://github.com/kamailio/kamailio/commit/70cf3ebd2b52c341a90c9b9b6149985…
Patch: https://github.com/kamailio/kamailio/commit/70cf3ebd2b52c341a90c9b9b6149985…
---
diff --git a/src/modules/textopsx/doc/selects.xml b/src/modules/textopsx/doc/selects.xml
index 3c72c21cd36..dd3ea3f7a62 100644
--- a/src/modules/textopsx/doc/selects.xml
+++ b/src/modules/textopsx/doc/selects.xml
@@ -8,8 +8,8 @@
<section id="textopsx.sel.hf_value">
<title>@hf_value</title>
<para>
- Get value of required header-value or param. Note that functions called 'value2'
- works with Authorization-like headers where comma is not treated as value delimiter.
+ Get value of required header-value or param. Note that selects called 'hf_value2'
+ work with Authorization-like headers where comma is not treated as value delimiter.
</para>
<para>
Formats:
@@ -73,7 +73,9 @@ $prt = @hf_value2.authorization.integrity_protected;
<section id="textopsx.sel.hf_value2">
<title>@hf_value2</title>
<para>
- TBA.
+ Similar to selects called 'hf_value', but work with Authorization-like
+ headers where comma is treated as attribute delimiter instead of header
+ value delimiter.
</para>
</section>
<section id="textopsx.sel.hf_value_exists">
Module: kamailio
Branch: 5.8
Commit: 7bf787d00f9f7ed8a2d758219d6d1413b2b5c975
URL: https://github.com/kamailio/kamailio/commit/7bf787d00f9f7ed8a2d758219d6d141…
Author: Dragos Vingarzan <vingarzan(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-01T09:10:51+02:00
textopx/doc: fixed hard-to-read documentation for textopsx
- was missing line-wraps in examples list, hence very hard to read
(cherry picked from commit 48d97c1941f660aa396b5ef100584611cf92ad21)
---
Modified: src/modules/textopsx/doc/selects.xml
---
Diff: https://github.com/kamailio/kamailio/commit/7bf787d00f9f7ed8a2d758219d6d141…
Patch: https://github.com/kamailio/kamailio/commit/7bf787d00f9f7ed8a2d758219d6d141…
---
diff --git a/src/modules/textopsx/doc/selects.xml b/src/modules/textopsx/doc/selects.xml
index 6d4dd4e3a25..3c72c21cd36 100644
--- a/src/modules/textopsx/doc/selects.xml
+++ b/src/modules/textopsx/doc/selects.xml
@@ -9,30 +9,35 @@
<title>@hf_value</title>
<para>
Get value of required header-value or param. Note that functions called 'value2'
- works with Authorization-like headers where comma is not treated as value delimiter. Formats:
- @hf_value.HFNAME[IDX] # idx value, negative value counts from bottom
- @hf_value.HFNAME.PARAM_NAME
- @hf_value.HFNAME[IDX].PARAM_NAME
- @hf_value.HFNAME.p.PARAM_NAME # or .param., useful if required called "uri", "p", "param"
- @hf_value.HFNAME[IDX].p.PARAM_NAME # dtto
- @hf_value.HFNAME[IDX].uri # (< & > excluded)
- @hf_value.HFNAME[*] # return comma delimited list of all values (combines headers)
- @hf_value.HFNAME # the same as above [*] but may be parsed by cfg.y
- @hf_value.HFNAME[*].uri # return comma delimited list of uris (< & > excluded)
- @hf_value.HFNAME.uri # the same as above [*] but may be parsed by cfg.y
- @hf_value.HFNAME[IDX].name # returns name part, quotes excluded
- @hf_value.HFNAME.name # returns name part of the first value
+ works with Authorization-like headers where comma is not treated as value delimiter.
+ </para>
+ <para>
+ Formats:
+ <itemizedlist>
+ <listitem>@hf_value.HFNAME[IDX] # idx value, negative value counts from bottom</listitem>
+ <listitem>@hf_value.HFNAME.PARAM_NAME</listitem>
+ <listitem>@hf_value.HFNAME[IDX].PARAM_NAME</listitem>
+ <listitem>@hf_value.HFNAME.p.PARAM_NAME # or .param., useful if required called "uri", "p", "param"</listitem>
+ <listitem>@hf_value.HFNAME[IDX].p.PARAM_NAME # dtto</listitem>
+ <listitem>@hf_value.HFNAME[IDX].uri # (< & > excluded)</listitem>
+ <listitem>@hf_value.HFNAME[*] # return comma delimited list of all values (combines headers)</listitem>
+ <listitem>@hf_value.HFNAME # the same as above [*] but may be parsed by cfg.y</listitem>
+ <listitem>@hf_value.HFNAME[*].uri # return comma delimited list of uris (< & > excluded)</listitem>
+ <listitem>@hf_value.HFNAME.uri # the same as above [*] but may be parsed by cfg.y</listitem>
+ <listitem>@hf_value.HFNAME[IDX].name # returns name part, quotes excluded</listitem>
+ <listitem>@hf_value.HFNAME.name # returns name part of the first value</listitem>
- @hf_value2.HFNAME # returns value of first header
- @hf_value2.HFNAME[IDX] # returns value of idx's header
- @hf_value2.HFNAME.PARAM_NAME
- @hf_value2.HFNAME[IDX].PARAM_NAME
+ <listitem>@hf_value2.HFNAME # returns value of first header</listitem>
+ <listitem>@hf_value2.HFNAME[IDX] # returns value of idx's header</listitem>
+ <listitem>@hf_value2.HFNAME.PARAM_NAME</listitem>
+ <listitem>@hf_value2.HFNAME[IDX].PARAM_NAME</listitem>
- @hf_value.HFNAME[IDX].uri # return URI, quotes excluded
- @hf_value.HFNAME.p.uri # returns param named uri, not URI itself
- @hf_value.HFNAME.p.name # returns param named name, not name itself
- @hf_value.HFNAME[IDX].uri.name # any sel_any_uri nested features may be used
- @hf_value.HFNAME[IDX].nameaddr.name # select_any_nameaddr
+ <listitem>@hf_value.HFNAME[IDX].uri # return URI, quotes excluded</listitem>
+ <listitem>@hf_value.HFNAME.p.uri # returns param named uri, not URI itself</listitem>
+ <listitem>@hf_value.HFNAME.p.name # returns param named name, not name itself</listitem>
+ <listitem>@hf_value.HFNAME[IDX].uri.name # any sel_any_uri nested features may be used</listitem>
+ <listitem>@hf_value.HFNAME[IDX].nameaddr.name # select_any_nameaddr</listitem>
+ </itemizedlist>
</para>
<para>Meaning of the parameters is as follows:</para>
<itemizedlist>
### Description
When using the RPC command `rtpengine.show`, the resulting list has the field `disabled` for each RTPEngine configured, and its value - for some reason can be either `0` (number), `1` (number) or `"1(permanent)"` (string).
For example:
```
$ curl -k -X POST -HContent-Type:application/json -d '{"jsonrpc":"2.0","method":"rtpengine.show","params":["all"],"id":1}' https://localhost:8443/rpc
{
"jsonrpc": "2.0",
"result": [{
"url": "udp:old-rtpengine2227",
"set": 0,
"index": 0,
"weight": 1,
"disabled": 1,
"recheck_ticks": 0
}, {
"url": "udp:172.24.73.28:2227",
"set": 0,
"index": 1,
"weight": 1,
"disabled": 0,
"recheck_ticks": 0
}, {
"url": "udp:172.24.75.15:2227",
"set": 0,
"index": 2,
"weight": 1,
"disabled": "1(permanent)",
"recheck_ticks": "N/A"
}],
"id": 1
}
```
This makes it very annoying to parse the results from JSON RPC (and maybe other machine readable RPC APIs). Also the same problem for `recheck_ticks`, but I never actually read it so it is less important for me.
#### Reproduction
The difference between `0` and `"1(permanent)"` can be seen by setting up multiple RTPEngine sockets that work and then disable one of the using the `rtpengine.enable` RPC command with the `flag` set to `0`. As far as I can tell that is the only way to get `recheck_ticks` to be set to `RTPENGINE_MAX_RECHECK_TICKS` which causes the "permanently disabled" state.
### Possible Solutions
I can try to offer a patch, but any change I can make will be a breaking API change - so if users are relying on this weird behavior, that could be a problem.
Maybe the best way to move forward is to expose two additional fields:
- `active` : `boolean` - set to `true` if the RTPEngine is not disabled, and to `false` if it is disabled (i.e. the value is equal to `disabled == 0`).
- `active` : `boolean` - set to `true` if the RTPEngine had not failed it checks (i.e. `recheck_ticks` is either 0 or `RTPENGINE_MAX_RECHECK_TICKS`). This will be set to `false` if `disabled` is set to `1`, and not `"1(permanent)"`.
Maybe the last field is unneeded? Maybe `"disabled"` can be changed to only report whether the RPC was used to disable the socket and let the `active` field specify whether the socket can be used?
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
version: kamailio 5.7.5 (x86_64/linux) 58499a
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: 58499a
compiled on 00:00:00 Sep 13 2022 with gcc 11.4.1
```
* **Operating System**:
<!--
Details about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu 16.04, CentOS 7.1, ...), MacOS, xBSD, Solaris, ...;
Kernel details (output of `lsb_release -a` and `uname -a`)
-->
```
$ uname -a
Linux sip-172-24-50-23.XX.XX.XX 6.5.0-1020-aws #20~22.04.1-Ubuntu SMP Wed May 1 16:10:50 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/os-release
NAME="AlmaLinux"
VERSION="9.4 (Seafoam Ocelot)"
ID="almalinux"
ID_LIKE="rhel centos fedora"
VERSION_ID="9.4"
PLATFORM_ID="platform:el9"
PRETTY_NAME="AlmaLinux 9.4 (Seafoam Ocelot)"
ANSI_COLOR="0;34"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:almalinux:almalinux:9::baseos"
HOME_URL="https://almalinux.org/"
DOCUMENTATION_URL="https://wiki.almalinux.org/"
BUG_REPORT_URL="https://bugs.almalinux.org/"
ALMALINUX_MANTISBT_PROJECT="AlmaLinux-9"
ALMALINUX_MANTISBT_PROJECT_VERSION="9.4"
REDHAT_SUPPORT_PRODUCT="AlmaLinux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.4"
SUPPORT_END=2032-06-01
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3896
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3896(a)github.com>
#### Pre-Submission Checklist
- [x] Commit message has the format required by CONTRIBUTING guide
- [x] Commits are split per component (core, individual modules, libs, utils, ...)
- [x] Each component has a single commit (if not, squash them into one commit)
- [x] 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)
- [x] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
- [ ] PR should be backported to stable branches
- [x] Tested changes locally
- [ ] Related to issue #3896
#### Description
As per issue #3896, "active" is a boolean field that just describes whether the socket will be used, while "disabled" now just describes whether the socket was disabled by an RPC command. Also make "disabled" and "recheck_ticks" fields have a fixed value type of boolean and number respectively.
use `"recheck_ticks": -1` instead of "N/A" as per discussion.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3898
-- Commit Summary --
* rtpengine: add "active" field to rtpengine.show as alternate of "disabled"
-- File Changes --
M src/modules/rtpengine/rtpengine.c (7)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3898.patchhttps://github.com/kamailio/kamailio/pull/3898.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3898
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3898(a)github.com>
Module: kamailio
Branch: master
Commit: 96ada96f69f606c35fd46a45def3b095026f2393
URL: https://github.com/kamailio/kamailio/commit/96ada96f69f606c35fd46a45def3b09…
Author: Oded Arbel <oded(a)geek.co.il>
Committer: GitHub <noreply(a)github.com>
Date: 2024-06-30T12:40:53-04:00
rtpengine: add "active" field to rtpengine.show as alternate of "disabled" (#3898)
As per issue #3896, "active" is a boolean field that just describes whether the socket will be used,
while "disabled" now just describes whether the socket was disabled by an RPC command. Also make
"disabled" and "recheck_ticks" fields have a fixed value type of boolean and number respectively.
use `"recheck_ticks": -1` instead of "N/A" as per discussion
---
Modified: src/modules/rtpengine/rtpengine.c
---
Diff: https://github.com/kamailio/kamailio/commit/96ada96f69f606c35fd46a45def3b09…
Patch: https://github.com/kamailio/kamailio/commit/96ada96f69f606c35fd46a45def3b09…
---
diff --git a/src/modules/rtpengine/rtpengine.c b/src/modules/rtpengine/rtpengine.c
index 775542c5994..54f22b1843f 100644
--- a/src/modules/rtpengine/rtpengine.c
+++ b/src/modules/rtpengine/rtpengine.c
@@ -1784,13 +1784,14 @@ static int add_rtpp_node_info(
if((1 == crt_rtpp->rn_disabled)
&& (crt_rtpp->rn_recheck_ticks == RTPENGINE_MAX_RECHECK_TICKS)) {
- rpc->struct_add(vh, "s", "disabled", "1(permanent)");
+ rpc->struct_add(vh, "b", "disabled", 1);
} else {
- rpc->struct_add(vh, "d", "disabled", crt_rtpp->rn_disabled);
+ rpc->struct_add(vh, "b", "disabled", 0);
}
+ rpc->struct_add(vh, "b", "active", crt_rtpp->rn_disabled == 0);
if(crt_rtpp->rn_recheck_ticks == RTPENGINE_MAX_RECHECK_TICKS) {
- rpc->struct_add(vh, "s", "recheck_ticks", "N/A");
+ rpc->struct_add(vh, "d", "recheck_ticks", -1);
} else {
rtpp_ticks = crt_rtpp->rn_recheck_ticks - get_ticks();
rtpp_ticks = rtpp_ticks < 0 ? 0 : rtpp_ticks;