Browse Source

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

Henning Westerholt 5 years ago
parent
commit
c3efb3b333
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/modules/ims_charging/ims_ro.c

+ 2 - 0
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
     }