Module: kamailio
Branch: master
Commit: e17b554ba918dc33c60f41c2cee50ad2578fbbd3
URL:
https://github.com/kamailio/kamailio/commit/e17b554ba918dc33c60f41c2cee50ad…
Author: Morten Tryfoss <morten(a)tryfoss.no>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-22T09:36:44+01:00
ims_charging: Various changes to make module compatible to other charging servers
- Use origin-host of CCR response as destination-host of subsequent CCR requests,
to make sure those requests are routed to the same charging server (when using relay).
- use str_dup and str_free from ims_getters instead of locally defined.
- Honour AVP_Time_Quota_Threshold in CCR response, as an alternative to static configured
modparam "timer_buffer".
- Add new modparam "strip_plus_from_e164" to enable sending subscription id with
correct
format according to specified type in the AVP.
- Moved subscription id formatting into a common function.
- Handle CCR response without AVP_Validity_Time set correctly. Was interpreted as
immediate expire.
- Handle IMS_RAR (Re-auth) request from charging server. Triggers an immediate interim
update if the session is alive.
- Handle IMS_ASR (Abort) request from charging server. Triggers an immediate termination
of the session/call.
- Fixed issue with signed/unsigned int related to check for Expires header.
cscf_get_expires_hdr() returns signed (-1 for not found), while that value was added
to the outgoing diameter request unsigned. That again resulted in an Expires AVP with
a really large value, and was rejected by the charging server.
---
Modified: src/modules/ims_charging/Ro_data.c
Modified: src/modules/ims_charging/Ro_data.h
Modified: src/modules/ims_charging/ccr.c
Modified: src/modules/ims_charging/config.h
Modified: src/modules/ims_charging/dialog.c
Modified: src/modules/ims_charging/doc/ims_charging_admin.xml
Modified: src/modules/ims_charging/ims_charging_mod.c
Modified: src/modules/ims_charging/ims_ro.c
Modified: src/modules/ims_charging/ims_ro.h
Modified: src/modules/ims_charging/ro_db_handler.c
Modified: src/modules/ims_charging/ro_db_handler.h
Modified: src/modules/ims_charging/ro_session_hash.c
Modified: src/modules/ims_charging/ro_session_hash.h
Modified: src/modules/ims_charging/ro_timer.c
Modified: utils/kamctl/mysql/ims_charging-create.sql
---
Diff:
https://github.com/kamailio/kamailio/commit/e17b554ba918dc33c60f41c2cee50ad…
Patch:
https://github.com/kamailio/kamailio/commit/e17b554ba918dc33c60f41c2cee50ad…