CHF Configuration
SMF
smf.conf
<ifcfg
local-chf-client-ipv4="40.40.40.53"
local-chf-client-port="7012"
charging-func="ENABLE"
local-charge-filename="./xml/sm-charge.xml"
...
sm-charge.xml
<!-- chf server -->
<chfservers size="1">
<chfserver chfServerName="chfserver_test1" IpType="IPV4" ipv4PrimaryCHF="40.40.40.57" port="7070" />
</chfservers>
CHF
chf.conf
<?xml version="1.0" encoding="utf-8"?>
<ngc>
<!--N40component - N40 interface component
bind-port: Bind port for listening Http2 messages.
chf configuration
-->
<chf chf-name="URANUS EPC CHF"
chf-capacity="100"
cipher-alg-order="128-EEA3,128-EEA2"
local-subscription-enabled="1"
chf-policy-filename="./xml/chf-policy-data.xml"
chf-server-ip="40.40.40.57"
chf-server-port="7070"
local-ocs-client-ipv4="40.40.40.57"
local-ocs-client-port="2124"
online-local="ENABLE"/>
<!--N40component - N40 interface component
bind-port: Bind port for listening Http2 messages.
-->
<cdrfile local-file-path="./cdr"
success-rename-file-path="./renamecdr"
cdr-num="50"
record-duration="50"/>
<!--ETComponent thread-pool-size : the size of thread pool
dhcp-discover-timeout: the timeout for dhcp discover message after isf completed
-->
<wfcomponent thread-pool-size="50" save-context-as-file="false"/>
</ngc>
chf-policy-data.xml
<?xml version="1.0" encoding="utf-8"?>
<chf-profiles>
<ue-datas size="2">
<ue-data ue-supi="466920100001101">
<quota-datas size="2">
<quota-data rg="300" quotaVol="100000000"/>
<quota-data rg="400" quotaTime="60"/>
</quota-datas>
</ue-data>
<ue-data ue-supi="466920100001102">
<quota-datas size="2">
<quota-data rg="300" quotaVol="104857600"/>
<quota-data rg="400" quotaTime="60"/>
</quota-datas>
</ue-data>
</ue-datas>
<ccts size="4">
<cct cctName="cct_off_volume" offline="ENABLE"/>
<cct cctName="cct_off_time" offline="ENABLE"/>
<cct cctName="cct_on_volume" online="ENABLE"/>
<cct cctName="cct_on_time" online="ENABLE"/>
</ccts>
<!-- when cc not match cctype=value's ccvalue,use this default cct. -->
<selectcctbyccs size="4">
<selectcctbycc ccType="VALUE" ccValue="0x0100" cctName="cct_off_volume"/>
<selectcctbycc ccType="VALUE" ccValue="0x0200" cctName="cct_off_time"/>
<selectcctbycc ccType="VALUE" ccValue="0x0300" cctName="cct_on_volume"/>
<selectcctbycc ccType="VALUE" ccValue="0x0400" cctName="cct_on_time"/>
</selectcctbyccs>
</chf-profiles>
TS
问题 1:UE2 service req 失败。
UID466920100001102 match userprofile error, m_dnn:public m_supi: 466920100001102
UID466920100001102 match userprofile error, m_dnn:public m_supi: 466920100001102
UID466920100001102 Consult Charge Error: send PDU Session Establishment Reject to UE via Namf_N1N2Transfer
UID466920100001102 Consult Charge Error: send PDU Session Establishment Reject to UE via Namf_N1N2Transfer
诊断:在 SMF sm-charge.xml 中没有配置 dnn public 的 userprofile。