Pārlūkot izejas kodu

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

Carsten Bock 7 gadi atpakaļ
vecāks
revīzija
b3614e8b9e
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      src/modules/ims_charging/ims_ro.c

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