[sr-dev] git:5.3:0292a6ae: 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:07:17 CEST 2020


Module: kamailio
Branch: 5.3
Commit: 0292a6ae61db930dfeab532a53bf964b16db0209
URL: https://github.com/kamailio/kamailio/commit/0292a6ae61db930dfeab532a53bf964b16db0209

Author: Henning Westerholt <hw at skalatan.de>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2020-07-02T16:06:59Z

ims_charging: bugfix for tel URIs, need the same logic in stop as in start requests

(cherry picked from commit c3efb3b3331936a30f387e9f3c8c435d4d64f0bb)

---

Modified: src/modules/ims_charging/ims_ro.c

---

Diff:  https://github.com/kamailio/kamailio/commit/0292a6ae61db930dfeab532a53bf964b16db0209.diff
Patch: https://github.com/kamailio/kamailio/commit/0292a6ae61db930dfeab532a53bf964b16db0209.patch

---

diff --git a/src/modules/ims_charging/ims_ro.c b/src/modules/ims_charging/ims_ro.c
index 700178a0ad..8f572010e6 100644
--- a/src/modules/ims_charging/ims_ro.c
+++ b/src/modules/ims_charging/ims_ro.c
@@ -865,6 +865,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