Module: kamailio
Branch: master
Commit: c3efb3b3331936a30f387e9f3c8c435d4d64f0bb
URL:
https://github.com/kamailio/kamailio/commit/c3efb3b3331936a30f387e9f3c8c435…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-07-02T16:05:51Z
ims_charging: bugfix for tel URIs, need the same logic in stop as in start requests
---
Modified: src/modules/ims_charging/ims_ro.c
---
Diff:
https://github.com/kamailio/kamailio/commit/c3efb3b3331936a30f387e9f3c8c435…
Patch:
https://github.com/kamailio/kamailio/commit/c3efb3b3331936a30f387e9f3c8c435…
---
diff --git a/src/modules/ims_charging/ims_ro.c b/src/modules/ims_charging/ims_ro.c
index 9cad62c302..960a8252ec 100644
--- a/src/modules/ims_charging/ims_ro.c
+++ b/src/modules/ims_charging/ims_ro.c
@@ -914,6 +914,8 @@ void send_ccr_stop_with_param(struct ro_session *ro_session, unsigned
int code,
//getting subscription id type
if (strncasecmp(subscr.id.s, "tel:", 4) == 0) {
subscr.type = Subscription_Type_MSISDN;
+ subscr.id.s += 4;
+ subscr.id.len -= 4;
} else {
subscr.type = Subscription_Type_IMPU; //default is END_USER_SIP_URI
}