소스 검색

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

Henning Westerholt 5 년 전
부모
커밋
c3efb3b333
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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
     }