Patent ID: 9503586
Filing Date: 2016-11-22
CPC Classification: H04L,H04M,H04W

Claim Text:
1. An online charging method based on a number portability service, the method comprising: when a calling user equipment (UE) in an Internet Protocol multimedia subsystem (IMS) network initiates a call to a called UE, receiving, by an application server (AS) in the IMS network, an invite message sent by a call session control function (CSCF) entity in the IMS network, wherein the invite message carries a number of the calling UE and a number of the called UE; sending, by the AS, a number portability information query request to a number portability database (NPDB) server in the IMS network, wherein the number portability information query request carries the number of the called UE; receiving, by the AS, a number portability information query response sent by the NPDB server, wherein the number portability information query response carries number portability information corresponding to the number of the called UE; and sending, by the AS, an initial credit control request message to an online charging system (OCS) in the IMS network, wherein the initial credit control request message carries the number portability information and the number of the calling UE, so that the OCS can perform charging authentication for the calling UE according to the number portability information and the number of the calling UE; wherein the invite message further carries information about a codec supported by the calling UE and wherein, after the AS receives the number portability information query response sent by the NPDB server, the method further comprises: sending, by the AS, a codec negotiation request message to a multimedia resource function (MRF) entity in the IMS network, wherein the codec negotiation request message carries the information about the codec supported by the calling UE, so that the MRF entity determines, according to information about a codec supported by the MRF entity and the information about the codec supported by the calling UE, a codec supported by both the MRF entity and the calling UE; receiving, by the AS, a codec negotiation response message sent by the MRF entity, wherein the codec negotiation response message carries information about the codec determined by the MRF entity; and sending, by the AS, the information about the codec determined by the MRF entity to the calling UE, so that the calling UE decodes an audio file sent by the MRF entity according to the received information about the codec and plays the decoded audio file, wherein the audio file sent by the MRF entity comprises voice notification information indicating that the called UE has changed a subscription network.