Browse code

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

Henning Westerholt authored on 02/07/2020 16:05:51
Showing 1 changed files
... ...
@@ -914,6 +914,8 @@ void send_ccr_stop_with_param(struct ro_session *ro_session, unsigned int code,
914 914
     //getting subscription id type
915 915
     if (strncasecmp(subscr.id.s, "tel:", 4) == 0) {
916 916
         subscr.type = Subscription_Type_MSISDN;
917
+        subscr.id.s += 4;
918
+        subscr.id.len -= 4;
917 919
     } else {
918 920
         subscr.type = Subscription_Type_IMPU; //default is END_USER_SIP_URI
919 921
     }