Module: kamailio
Branch: master
Commit: 75904895577d0329ba0d30d10e645b8769451e51
URL: https://github.com/kamailio/kamailio/commit/75904895577d0329ba0d30d10e645b8…
Author: Aleksandar Yosifov <alexyosifov(a)gmail.com>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-07-21T22:07:30+02:00
ims_registrar_scscf: added a new registrar event, notification improvements
- Added a new IMS registrar event: IMS_REGISTRAR_SUBSEQUENT_SUBSCRIBE -
used to skip NOTIFY msg after receiving of subsequent subscribe msg.
- Added a new parameter in event_reg(), create_notifications() and
notify_subscribers() methods: c_passed contact - used to mainly in
create_notification().
- Changes in create_notification() - the checks for sending NOTIFY
msgs have been expanded and the new parameter c_passed is used for
that.
- Changes in subscribe_to_reg() - sending NOTIFY only for the
initial subscriptions.
- Changes in generate_reginfo_full() - the old functionality with
all contacts in NOTIFY msg has been returned based on RFC3680. Added
mechanism to change all contact states from
CONTACT_EXPIRE_PENDING_NOTIFY to CONTACT_NOTIFY_READY after reginfo
generation.
---
Modified: src/modules/ims_registrar_scscf/cxdx_callbacks.c
Modified: src/modules/ims_registrar_scscf/reg_rpc.c
Modified: src/modules/ims_registrar_scscf/registrar_notify.c
Modified: src/modules/ims_registrar_scscf/registrar_notify.h
Modified: src/modules/ims_registrar_scscf/save.c
Modified: src/modules/ims_registrar_scscf/usrloc_cb.c
---
Diff: https://github.com/kamailio/kamailio/commit/75904895577d0329ba0d30d10e645b8…
Patch: https://github.com/kamailio/kamailio/commit/75904895577d0329ba0d30d10e645b8…
Module: kamailio
Branch: master
Commit: b787e3e57cc153549f1f785ca2d7823e1f8def93
URL: https://github.com/kamailio/kamailio/commit/b787e3e57cc153549f1f785ca2d7823…
Author: Aleksandar Yosifov <alexyosifov(a)gmail.com>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-07-21T22:07:30+02:00
ims_usrloc_scscf: added a new contact state, udomain/impu improvements
- Added a new contact state: CONTACT_NOTIFY_READY - protect the
deletion of contact during the preparation of NOTIFY msg.
- Improved mem_timer_udomain() - protect the deletion of contact
during the preparation of NOTIFY msg.
- Improved process_impurecord() - first doing the contacts'
validity, then the subscribers' validity. This prevents contact
from remaining in the database after deleting a subscriber.
---
Modified: src/modules/ims_usrloc_scscf/impurecord.c
Modified: src/modules/ims_usrloc_scscf/udomain.c
Modified: src/modules/ims_usrloc_scscf/usrloc.h
---
Diff: https://github.com/kamailio/kamailio/commit/b787e3e57cc153549f1f785ca2d7823…
Patch: https://github.com/kamailio/kamailio/commit/b787e3e57cc153549f1f785ca2d7823…
- [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
when handling non sip messages, parser errors are logged at core level which defaults to ERR.
since this may induce in error sysops or log scanners, sometimes the core level is set to debug just to omit these
messages from log, which is not good since other messages are omitted too.
this commit adds a new core variable to set the log level for message parsing errors.
this way, we can explicitly set the log level for message parsing while leaving the core level at ERR.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2402
-- Commit Summary --
* core: add sip_parser_log core variable
-- File Changes --
M src/core/cfg.lex (2)
M src/core/cfg.y (3)
M src/core/cfg_core.c (3)
M src/core/cfg_core.h (1)
M src/core/parser/msg_parser.c (2)
M src/core/parser/parse_fline.c (2)
M src/core/receive.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2402.patchhttps://github.com/kamailio/kamailio/pull/2402.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/2402
Module: kamailio
Branch: master
Commit: f39f88a47bed160bf55c7bb3c06bff9fa7569750
URL: https://github.com/kamailio/kamailio/commit/f39f88a47bed160bf55c7bb3c06bff9…
Author: lazedo <luis.azedo(a)factorlusitano.com>
Committer: lazedo <luis.azedo(a)factorlusitano.com>
Date: 2020-07-17T10:08:43Z
core: add sip_parser_log core variable
* when handling non sip messages, parser errors are logged at core level
which defaults to ERR. since this may induce in error sysops or log
scanners, sometimes the core level is set to debug just to omit these
messages from log, which is not good since other messages are omitted
too. this commit adds a new core variable to set the log level for
message parsing errors. this way, we can explicitly set the log level
for message parsing while leaving the core level at ERR.
---
Modified: src/core/cfg.lex
Modified: src/core/cfg.y
Modified: src/core/cfg_core.c
Modified: src/core/cfg_core.h
Modified: src/core/parser/msg_parser.c
Modified: src/core/parser/parse_fline.c
Modified: src/core/receive.c
---
Diff: https://github.com/kamailio/kamailio/commit/f39f88a47bed160bf55c7bb3c06bff9…
Patch: https://github.com/kamailio/kamailio/commit/f39f88a47bed160bf55c7bb3c06bff9…