Selaa lähdekoodia

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

(cherry picked from commit c3efb3b3331936a30f387e9f3c8c435d4d64f0bb)
Henning Westerholt 5 vuotta sitten
vanhempi
commit
4b7cd8149d
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      src/modules/ims_charging/ims_ro.c

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