[sr-dev] git:master:c3efb3b3: ims_charging: bugfix for tel URIs, need the same logic in stop as in start requests

Henning Westerholt hw at skalatan.de
Thu Jul 2 18:06:49 CEST 2020


Module: kamailio
Branch: master
Commit: c3efb3b3331936a30f387e9f3c8c435d4d64f0bb
URL: https://github.com/kamailio/kamailio/commit/c3efb3b3331936a30f387e9f3c8c435d4d64f0bb

Author: Henning Westerholt <hw at skalatan.de>
Committer: Henning Westerholt <hw at 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/c3efb3b3331936a30f387e9f3c8c435d4d64f0bb.diff
Patch: https://github.com/kamailio/kamailio/commit/c3efb3b3331936a30f387e9f3c8c435d4d64f0bb.patch

---

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
     }




More information about the sr-dev mailing list