[sr-dev] git:master:b3614e8b: ims_charging: In case of tel: URI => type MSISDN, skip the "tel:" from the URI

Carsten Bock carsten at ng-voice.com
Tue Sep 18 10:32:08 CEST 2018


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

Author: Carsten Bock <carsten at ng-voice.com>
Committer: Carsten Bock <carsten at ng-voice.com>
Date: 2018-09-18T10:31:57+02:00

ims_charging: In case of tel: URI => type MSISDN, skip the "tel:" from the URI

---

Modified: src/modules/ims_charging/ims_ro.c

---

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

---

diff --git a/src/modules/ims_charging/ims_ro.c b/src/modules/ims_charging/ims_ro.c
index 4e67813362..cd3ae215ae 100644
--- a/src/modules/ims_charging/ims_ro.c
+++ b/src/modules/ims_charging/ims_ro.c
@@ -1105,6 +1105,8 @@ int Ro_Send_CCR(struct sip_msg *msg, struct dlg_cell *dlg, int dir, int reservat
     //getting subscription id type
     if (strncasecmp(subscription_id.s, "tel:", 4) == 0) {
         subscription_id_type = Subscription_Type_MSISDN;
+        subscription_id.s += 4;
+        subscription_id.len -= 4;
     } else {
         subscription_id_type = Subscription_Type_IMPU; //default is END_USER_SIP_URI
     }




More information about the sr-dev mailing list