Module: kamailio Branch: master Commit: b3614e8b9e4192722a4577a59f071ec93f29664a URL: https://github.com/kamailio/kamailio/commit/b3614e8b9e4192722a4577a59f071ec9...
Author: Carsten Bock carsten@ng-voice.com Committer: Carsten Bock carsten@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/b3614e8b9e4192722a4577a59f071ec9... Patch: https://github.com/kamailio/kamailio/commit/b3614e8b9e4192722a4577a59f071ec9...
---
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 }