WO2009115028A1 - Method, system and device for calculating communication expenses - Google Patents

Method, system and device for calculating communication expenses Download PDF

Info

Publication number
WO2009115028A1
WO2009115028A1 PCT/CN2009/070812 CN2009070812W WO2009115028A1 WO 2009115028 A1 WO2009115028 A1 WO 2009115028A1 CN 2009070812 W CN2009070812 W CN 2009070812W WO 2009115028 A1 WO2009115028 A1 WO 2009115028A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication
charging
user
account
enterprise
Prior art date
Application number
PCT/CN2009/070812
Other languages
French (fr)
Chinese (zh)
Inventor
郭继宾
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2009115028A1 publication Critical patent/WO2009115028A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1485Tariff-related aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2215/00Metering arrangements; Time controlling arrangements; Time indicating arrangements
    • H04M2215/20Technology dependant metering
    • H04M2215/2013Fixed data network, e.g. PDN, ATM, B-ISDN

Definitions

  • the present invention relates to the field of mobile communications, and in particular, to a communication cost calculation method, system and device. Background technique
  • Enterprise users usually have both a communication network and an internet.
  • the communication network refers to the ordinary telephone network of enterprise users, while the Internet refers to the office network of enterprises. In practical applications, both the communication network and the Internet The functions are independent of each other.
  • Unified Communications System is a communications system that combines a communications network with the Internet.
  • users can control the work of communication terminals in the communication network through the Internet, and voice, video or fax in the communication network can communicate with functions such as e-mail and instant messaging in the Internet, so that users can effectively utilize communication.
  • the Internet and the Internet interact with various information.
  • each UC user (that is, the UC client) has a UC number, which can be mapped to the actual communication network or the terminal in the Internet according to the needs of the user.
  • the user can use the Internet anywhere.
  • the UC system can be used, for which the UC client needs to cooperate with the soft terminal.
  • the soft terminal is a terminal of a softswitch center, specifically a function of a video frequency phone implemented by software.
  • users may often use a soft terminal bundled with a mobile terminal number to communicate, and the cost incurred by the user in the enterprise should be paid by the enterprise.
  • users can communicate through the UC system in any place with Internet. If the user does not handle the business in the enterprise, but uses the UC system to handle private affairs outside the enterprise, then the communication generated at this time The fee should be paid by the user himself.
  • one method for calculating the communication fee is to print a detailed bill, and determine the fee that the enterprise should pay by confirming the information of each contact that has contacted the user's mobile terminal; It is a monthly fixed communication fee for users.
  • the embodiment of the present invention provides a communication cost calculation method, system, and device for the communication system in the prior art, which is cumbersome and cannot reasonably reflect the communication cost used by the enterprise in the communication system, and can effectively perform the communication system. Calculation of communication costs.
  • An embodiment of the present invention provides a communication cost calculation method, including:
  • the soft terminal When the soft terminal initiates communication, it queries the Internet Protocol address information when the soft terminal is registered, and performs charging according to the charging rule corresponding to the Internet Protocol address information.
  • the embodiment of the invention further provides a communication cost calculation method, including:
  • the user's on-the-job status information is queried, and the charging is performed according to the charging rule corresponding to the on-the-job status information of the user.
  • the embodiment of the invention further provides a communication cost calculation system, including: a user status information acquiring device, configured to acquire user status information; and a communication capability component, configured to provide a communication service required by the communication terminal;
  • a communication charging triggering device configured to detect a communication request initiated by the communication terminal, and send a charging request
  • the communication fee calculation device is configured to receive the user on-the-job status information stored in the on-the-job status information acquisition device, and when the charging request is received, query the stored user on-the-job status information to perform communication fee calculation.
  • the embodiment of the invention further provides a communication cost calculation system, including:
  • a softswitch device configured to obtain Internet protocol address information when the soft terminal is registered
  • the convergent charging server is configured to query the internet protocol address information when the soft terminal is registered when the soft terminal initiates communication, and perform charging according to the charging rule corresponding to the internet protocol address information.
  • An embodiment of the present invention further provides a communication cost calculation apparatus, including:
  • the user status information receiving unit is configured to receive the user status information
  • a charging request receiving unit configured to receive a communication charging request sent by the communication charging triggering device; the charging unit is respectively connected to the user status information receiving unit and the charging request receiving unit, and configured to perform charging according to the The charging request received by the request receiving unit and the user status information received by the user status information receiving unit are used to calculate the communication fee.
  • the communication cost calculation method, system and device provided by the embodiment of the present invention collect the user on-the-job status information by the user on-the-job state information acquisition device, and the communication fee calculation device performs charging according to the user on-the-job status information and the charging rule, which can be effective. Differentiate the user's personal behavior and work behavior, so that different accounts can be differentiated and billed.
  • Embodiment 1 is a schematic structural diagram of Embodiment 1 of a communication fee calculation system according to the present invention
  • 2 is a flowchart of Embodiment 1 of a method for calculating a communication fee according to the present invention
  • FIG. 3 is a flowchart of Embodiment 2 of a method for calculating a communication fee according to the present invention
  • FIG. 4 is a flowchart showing the process of registering a soft terminal in the second embodiment of the communication fee calculation method of the present invention
  • FIG. 5 is a flowchart of step 201 in the second embodiment of the communication fee calculation method of the present invention
  • FIG. 6 is a schematic diagram of the enterprise account opening analysis in the second embodiment of the communication fee calculation method of the present invention
  • FIG. 8 is a schematic diagram of analyzing an enterprise account information by an enterprise administrator in Embodiment 2 of a communication fee calculation method according to the present invention.
  • FIG. 9 is a schematic diagram of IP address resolution associated with an enterprise account by an enterprise administrator query/add/modify/delete in the second embodiment of the communication fee calculation method according to the present invention.
  • FIG. 10 is a schematic diagram of the analysis of the personal account binding of the enterprise administrator in the second embodiment of the communication fee calculation method of the present invention.
  • FIG. 1 is a schematic diagram of the analysis of the enterprise administrator to bind the personal account in the second embodiment of the communication cost calculation method according to the present invention
  • FIG. 12 is a schematic diagram of an enterprise administrator querying an employee's personal account in the second embodiment of the communication fee calculation method according to the present invention.
  • FIG. 1 is a schematic diagram of an accounting method for sending a short message in Embodiment 2 of a method for calculating a communication fee according to the present invention
  • Embodiment 2 of a communication fee calculation system according to the present invention
  • FIG. 16 is a schematic diagram of an accounting method for initiating a call in Embodiment 3 of a method for calculating a communication fee according to the present invention
  • FIG. 17 is a schematic structural diagram of an embodiment of a communication fee calculation apparatus according to the present invention.
  • FIG. 18 is a schematic structural diagram of Embodiment 2 of a communication fee calculation system according to the present invention. detailed description
  • FIG. 1 is a schematic structural diagram of Embodiment 1 of a communication fee calculation system according to the present invention, which specifically includes: at least one user status information acquiring device 11 for acquiring information on the status of an enterprise user, where the “user status information” can be Refers to the location information of the user in the space, for example, whether the employee of the enterprise is in the enterprise through the attendance system, or the Internet Protocol (IP) address in the Internet.
  • IP Internet Protocol
  • a communication charging trigger device 12 is configured to detect a communication request initiated by the communication terminal, and send a charging request; and a communication cost calculating device 13 is configured to receive
  • the user's on-the-job status information stored in the user's on-the-job status information acquiring device 11 queries the user's on-the-job status information stored therein, and determines the charging method according to the query result.
  • the system may further include: an account management device 14 for managing binding and unbinding of the communication terminal associated with the enterprise account and the personal account, binding of the enterprise account with the personal account initiating the communication, and configuring the enterprise account and the individual The billing rules for the account; also include a communication capability component 15 capable of providing the required communication capabilities.
  • the functions of the user status information acquiring device and the communication capability component may be implemented in the softswitch device, and the softswitch device may be responsible for the user's registration request, acquiring the user's state information and the call route; and the function of the communication charging trigger device may be Implemented by the Application Server (AS), the AS handles various communication applications and is responsible for sending the charging request.
  • the function of the communication cost calculation device can be implemented by the Online Charging System (0CS), 0CS.
  • the user status information can be stored and the communication billing can be processed;
  • the function of the account management apparatus can be implemented by the portal system (Portal), the portal is an interface for accessing the 0CS, the user can perform account management through Protal, and the 0CS is performing communication billing. You can query the relevant account information set by the user in Protal, such as which personal accounts are bound to the corporate account, and what are the communication rates and billing rules for different personal accounts and corporate accounts.
  • FIG. 2 is a flowchart of Embodiment 1 of a method for calculating a communication fee according to the present invention, including: Step 101: Acquire user status information, and send the information to the communication fee calculation device.
  • the on-the-job status information obtaining device may collect the user's on-the-job status information for a period of time, or collect the user's on-the-job status information when the user performs a certain behavior, and then store the collected information.
  • Step 102 When the communication is initiated, query the user status information, and perform charging according to the charging rule corresponding to the user status information. Specifically, the communication capability component sends a communication request to the communication charging trigger device.
  • the communication terminal sends a communication request to the communication capability component, the communication capability component provides the user with the required communication capability according to the communication request, and sends a communication request to the communication charging trigger device; the communication charging trigger device sends the charging Request to the communication fee calculation device.
  • the charging request is used to trigger the communication fee calculation device to perform charging.
  • the following describes in detail how to calculate the communication cost based on the user's on-the-job status information.
  • the current IP address of the UC system can also be regarded as a kind of user status information.
  • the system for calculating the communication fee according to the current IP address when the user registers through the soft terminal is based on the system shown in FIG. 1 , and the user status information acquiring device is specifically a soft terminal registration device, and the soft terminal registration device is used. Record the current IP address, registration time, communication terminal type, etc. when registering at the soft terminal.
  • the soft terminal registration device can be functioned by a soft switching device
  • FIG. 3 is a flowchart of Embodiment 2 of a method for calculating a communication fee according to the present invention, including: Step 201: Acquire internet protocol address information when a soft terminal is registered;
  • Step 202 When the soft terminal initiates communication, querying the Internet Protocol address information when the soft terminal is registered, and performing charging according to the Internet Protocol address information query result and the charging rule.
  • the step of registering at the soft terminal is also included before performing step 201.
  • the step of registering in the soft terminal is specifically: starting a UC client program installed on the computer, and sending a registration request to the Sof tSwi tch for registration via the Internet.
  • the method for calculating the communication fee in the second embodiment of the invention is as follows: Step 2001: Running the soft terminal, the soft terminal initiates a Session Initial Protocol (SIP) registration request to the SoftSwitch.
  • SIP Session Initial Protocol
  • the communication between the soft terminal and the Sof tSwi tch is based on the SIP protocol.
  • Step 2002 The SoftSwitch detects the registration request, and authenticates the user who initiated the registration request. If the authentication is passed, go to Step 2005; otherwise, go to Step 2003.
  • Step 2003 The SoftSwitch returns an authentication challenge request (401 Unauthorized) to the soft terminal to challenge the user.
  • Step 2004 After receiving the authentication challenge request (401 Unauthorized), the soft terminal installs the SoftSwitch authentication rule, performs authentication data encoding, and re-sends the registration request to the SoftSwitch.
  • Step 2005 The registration request sent by the SoftSwitch detection step in 2004 authenticates the user who initiated the registration request, and the 2000K message is fed back to the soft terminal after the authentication is passed.
  • the soft terminal can normally use the various communication services provided.
  • FIG. 5 is a flowchart of step 201 in Embodiment 2 of the method for calculating a communication fee according to the present invention, specifically:
  • Step 2011 When the soft terminal successfully registers with the SoftSwitch, the SoftSwitch saves the soft terminal registration information, including the IP address, registration time, and communication terminal type during registration, and then sends the soft terminal registration message to the soft terminal registration provided by the 0CS.
  • the interface of the information report information register (Report Register), and the current soft terminal registration information of the user is reported to the 0CS.
  • the 2012 and 0CS After receiving the soft terminal registration information, the 2012 and 0CS return a successful receiving (0K) message to the SoftSwitch, and save the soft terminal registration message.
  • SoftSwitch and 0CS follows the Simple Object Access Protocol (SOAP) standard.
  • SOAP Simple Object Access Protocol
  • the SOAP request sent by SoftSwitch to OCS is as follows:
  • the process of opening an account, checking the enterprise administrator, and modifying the enterprise account information, and the enterprise administrator query/add/modify/delete the IP address associated with the enterprise account are also included.
  • FIG. 6 is a schematic diagram of an enterprise account opening analysis in the second embodiment of the communication fee calculation method according to the present invention.
  • the web browser is an interface of an account management system that is logged in through the portal.
  • FIG. 7 is a schematic diagram of analyzing enterprise account information in the second embodiment of the communication fee calculation method according to the present invention.
  • the Web Browser sends the administrator query request to the OCS through the portal.
  • the 0CS passes.
  • the portal returns a 2000K message to the enterprise management page and displays the enterprise account information, including the IP address bound to the account and the communication terminal information bound to the enterprise.
  • the IP address bound to the enterprise account may be multiple.
  • the enterprise administrator can also modify the enterprise account information. As shown in FIG. 8 , the enterprise administrator modifies the enterprise account information in the second embodiment of the communication fee calculation method of the present invention.
  • the enterprise administrator opens the enterprise management page and inputs the enterprise user name. After the user password, log in to the account management system of the enterprise, and send an administrator modification request.
  • the Web Browser sends the administrator modification request to the OCS through the portal. After receiving the administrator modification request, the 0CS passes the portal to the enterprise management.
  • the page returns a 2000K message and feeds back the changes to the administrator.
  • FIG. 9 is a schematic diagram of the IP address resolution of the enterprise administrator query/add/modify/delete and the enterprise account binding in the second embodiment of the communication fee calculation method according to the present invention.
  • the enterprise administrator opens the enterprise management page, inputs the enterprise user name and the user. After the password, log in to the account management system of the enterprise, and send the administrator to query/modify/add/delete the account-related IP address request, and the Web Browser sends the administrator to query/modify/add/delete the account-related IP address request through Por ta. l After sending to the OCS, after receiving the request, 0CS returns a 200 OK message to the enterprise management page through Por ta l, and feeds back to the administrator the information after the query/modify/add/delete and account-related IP address operations.
  • FIG. 10 is a schematic diagram of the analysis of the personal account binding of the enterprise administrator in the second embodiment of the communication cost calculation method of the present invention.
  • the enterprise administrator After the enterprise opens an account successfully, the enterprise administrator inputs the enterprise user name and the user password to log in to the enterprise management page, and the enterprise administrator sends the binding.
  • Set the account request select the binding user's personal account, enter the personal account information of the user to be bound (in this embodiment, the account information is specifically the mobile terminal number), select the binding, and submit the binding information through Por ta l To 0CS, then 0CS feeds the binding result to the administrator through Por ta l.
  • FIG. 11 is a schematic diagram of the enterprise administrator unbinding the personal account in the second embodiment of the communication cost calculation method according to the present invention.
  • the enterprise administrator inputs the enterprise user name and the user password to log in to the enterprise management page, and the enterprise administrator sends a binding account request. , choose to tie Set the user's personal account, enter the personal account information of the user who needs to be bound (in this embodiment, the account information is specifically the mobile terminal number), select to bind, and submit the unbinding information to 0CS through the Portal, then 0CS Through the Portal, feedback to the administrator to unbind the results.
  • FIG. 12 is a schematic diagram of an enterprise administrator querying an employee's personal account in the second embodiment of the communication fee calculation method according to the present invention.
  • the enterprise administrator inputs the enterprise user name and the user password to log in to the enterprise management interface, and the enterprise administrator sends a query binding account request. Select the binding account to be queried, and submit the binding account with the query to the 0CS through the portal. Then, the 0CS feeds back the information of the bound account to the administrator through the portal.
  • the communication billing account includes the enterprise account and the user personal account bound to the enterprise account, if the IP address of the soft terminal is registered and one of the IP addresses bound to the enterprise The same, according to the communication rate associated with the enterprise account for billing and deduction of the business account fee; if the IP address of the soft terminal registration and all IP addresses bound to the enterprise are different, according to the personal account The communication rate is charged and the user's personal account is deducted.
  • FIG. 13 is a schematic diagram of the charging method for sending a short message in the second embodiment of the communication cost calculation method according to the present invention. Specifically:
  • Step 1201 The soft terminal sends a short message to the SoftSwitch.
  • Step 1202 The SoftSwitch sends the short message to the AS by using the SIP message as the bearer.
  • CCR first credit control request
  • the 0CS After receiving the first CCR, the step 1204, the 0CS queries the current soft terminal registration information of the user. If the login IP address recorded in the soft terminal registration information is one of the IP addresses bound to the enterprise account, the enterprise account is Carry out the withholding fee; if the login IP address is recorded in the soft terminal registration information If the address is different from the IP address bound to the enterprise account, the user's personal account is withheld.
  • the rule is stored in the portal. The 0CS combines the rule and performs the withholding according to the user's login IP address.
  • Steps 1205 and 0CS send a first credit control response (CCA) to the AS after performing a withholding fee on the corresponding account;
  • CCA first credit control response
  • Step 1206 After receiving the first CCA, the AS sends a message to the SoftSwitch, where the message carries the information of the destination mobile terminal.
  • Step 1207 The SoftSwitch sends a short message request to a Short Message Service Center (SMSC).
  • SMSC Short Message Service Center
  • Step 1208 The SMSC returns a short message response to the SoftSwitch.
  • Step 1209 After receiving the response from the SMSC, the AS sends a message that the short message center has received the short message to the mobile terminal of the message according to the source address in the message, and the mobile terminal of the message returns a response message 200 0K;
  • Step 1210 After sending the short message to the destination mobile terminal, the SMSC sends a short message acceptance confirmation message to the SoftSwitch.
  • Step 1211 After receiving the acknowledgement message, the SoftSwitch sends a message to the AS to notify the AS that the short message has been successfully received by the destination mobile terminal.
  • Step 1212 After receiving the message in step 1211, the AS sends a second CCR to the 0CS, where the second CCR is used to notify the 0CS to deduct the account with the withholding fee in step 1204.
  • Step 1213 The 0CS sends a second CCA to the AS to notify the AS that the deduction is successful.
  • Step 1215 The SoftSwitch sends the received success message to the client, and the user who is using the UC system to send the short message can see the communication charging result of the short message.
  • the process described in Figure 13 follows the SIP (rfc3261 standard) standard protocol, in which the process of communication accounting by 0CS follows the rfc4006 (Diameter Credit Control Appl Icat ion) standard.
  • SIP Diameter Credit Control Appl Icat ion
  • the embodiment in FIG. 13 is involved in the process of returning the 200 OK response message and the process of the SMSC sending the short message to the destination mobile terminal when implemented according to the SIP (rfc3261 standard), but FIG. 13 is only used to explain how to For the current IP address when the soft terminal is registered, the method of communication and accounting is used. Therefore, please refer to SIP (rfc3261 standard) for details of the process steps, and details are not described here.
  • the second embodiment of the present invention is applicable to the calculation of the communication cost in the UC system, and determines whether the IP address of the user's individual user to log in to the UC system is the same as the IP address bound to the enterprise account.
  • the communication fee is deducted, the charging method is simple, and the calculation of the communication fee in the UC system can be effectively realized.
  • the calculation of the communication fee refers to determining whether the user is working in the enterprise by recording the record of the user in the attendance system, thereby determining that the fee incurred by the user at a certain time should be paid by the enterprise. It is still paid by the user.
  • FIG. 14 is a schematic structural diagram of Embodiment 2 of a communication fee calculation system according to the present invention.
  • the second embodiment of the system is embodied on the system shown in FIG. 1, and includes:
  • the attendance system 21 is used for recording the status information of the users in the collection enterprise
  • MSC Mobile Switch Center
  • the General Packet Radio Service Support Node (SGSN) and the Gateway General Packet Radio Service Support Node (GGSN) 25 are used to process user MMS and wireless.
  • SGSN General Packet Radio Service Support Node
  • GGSN Gateway General Packet Radio Service Support Node
  • WLAN Wireless Application Protocol
  • the GGSN and SGSN functions are equivalent to communication capability components;
  • SCP Service Control Point
  • the Fusion Accounting Server (0CS) 23 is configured to receive the information about the status of the user sent by the attendance system, and is used to implement the information about the status of the user in the storage user, and can obtain the user according to the obtained status.
  • the on-the-job status information is used for communication and billing, and is used to implement the function of the communication fee calculation device;
  • the portal (Por ta l) system 22 is an interface for the user to access the 0CS, and is used to implement the function of the account management device, and can be implemented by the Por ta l Set personal account and enterprise account, you can bind enterprise account and related personal account, and set charging rules for different accounts separately.
  • 0CS performs charging, each account is executed according to the charging rules set in Por ta l. The corresponding deduction.
  • FIG. 15 is a flowchart of Embodiment 3 of a method for calculating a communication fee according to the present invention, including: Step 301: The attendance system acquires the attendance information of the user and sends the attendance information to the 0CS. Step 302: When the communication is initiated, the 0CS queries the attendance information, and performs charging according to the charging rule corresponding to the attendance information.
  • the step 301 is specifically as follows:
  • the attendance system records the attendance information of the user.
  • Each company has its own defined working hours. For example, the company has a working time of 8: 00-17: 00. If the user swipes the card at a fixed time before 8: 00, for example, within 1 hour before 8: 00.
  • the card swipe system records the attendance information of the user as "in the enterprise"; if the user swipes after 17: 00, after this moment, Regardless of how many times the card is swiped, the card swipe system records the attendance information of the user as "Leaving the Enterprise"; if the user swipes the card within 8: 00-17: 00, the attendance system query has the time period of the day. There is no credit card record of the user. If the record is already present, the user is prematurely retired, and the attendance information of the user is recorded as "leave the enterprise"; if there is no credit card record of the user during the time period of the current day, the user is The attendance information is recorded as "in the enterprise".
  • the attendance system records the attendance information of the user as "in the enterprise"; if the user swipes after 21: 00, then after this time Regardless of how many times the card is swiped, the attendance system records the attendance of the user as "Leaving the Enterprise"; if the user swipes the card within the time of 19: 00-21: 00, the attendance system query is available during the time of the day. There is no credit card record of the user. If the record is already available, the user's attendance information is recorded as "Leaving the enterprise"; if there is no credit card record of the user during the time period of the current day, the user location information is recorded as "in the enterprise”” .
  • the attendance system detects whether a user swipes the card at a fixed time (for example, 200ms) and sends the user attendance information to the portal.
  • the portal authenticates the attendance information. After the authentication is passed, Protal calls the SOAP interface provided by 0CS, and sends the status information to 0CS, and then 0CS updates the current user's attendance location information.
  • the status information of the user sent to the Por ta 1 by the attendance system is as follows:
  • the enterprise account opening, the enterprise administrator query and the modification of the enterprise account information, and the enterprise administrator query/add/modify/delete the information of the user personal account associated with the enterprise account, and the foregoing The process of opening an account in the communication charging method based on the user's login IP address is the same, and is not described here.
  • FIG. 16 is a schematic diagram of an accounting method for initiating a call in Embodiment 3 of a method for calculating a communication fee according to the present invention. Specifically:
  • Step 1501 The mobile terminal A sends a call request to the MSC.
  • Step 1502 The MSC sends an Initial Detection Point (Initial Detection Point) to the SCP.
  • Initial Detection Point Initial Detection Point
  • IDP contains the calling number, called number, and number attribute information
  • Step 1503 After receiving the IDP, the SCP sends a first CCR to the 0CS, and is used to request the 0CS to perform the withholding fee operation;
  • Steps 1504 and 0CS after receiving the first CCR, query the enterprise user attendance information sent by the attendance system to perform a withholding fee; if the current state of the enterprise user is “in the enterprise”, the enterprise account is withholding fee; If the current status of the user of the enterprise is "Leaving the Enterprise", the personal account of the user bound to the enterprise account is withheld;
  • Step 1505 0CS returns the first CCA to the SCP, and notifies the SCP that the withholding fee is successful;
  • Step 1506 After receiving the first CCA, the SCP sends a Request Report Basic Call State Model Event (RRBE) to the MSC, requesting the MSC to dynamically configure a Detection Point (DP). MSC has called in the future When these DP points are encountered in the process, the call information is reported to the SCP.
  • RRBE creates conditions for SCP to control calls.
  • the RRBE parameters include the DP type and DP conditions to be configured.
  • One RRBE can be configured with multiple DPs.
  • Step 1507 The SCP sends an Apply Charging (AC) to the MSC to apply for call accounting.
  • AC Apply Charging
  • Step 1508 The mobile terminal A and the mobile terminal B make a call; ⁇ In step 1501, the mobile terminal A is the calling party, and the destination mobile terminal B is the called party;
  • Step 1509 After the call is completed, the mobile terminal A sends a message that the user hangs up to the MSC.
  • ACR Apply Charging Report
  • the charging result of the communication between the terminals A and B mainly includes information such as the call start/end time, the call duration, the calling number, the called number, the billing number, and the fee;
  • Step 1511 The MSC sends an Event Report Basic Call State Model (ERB) to the SCP to the SCP;
  • ERP Event Report Basic Call State Model
  • Step 1512 The SCP releases the call after receiving the ERB.
  • Step 1513 The SCP sends a second CCR to the 0CS, where the second CCR is used to notify the 0CS to deduct the account with the withholding fee in step 1504.
  • Step 1514 The 0CS sends a second CCA to the AS to notify the SCP that the deduction is successful.
  • the third embodiment of the present invention is applicable to the calculation of the communication cost in the ordinary communication system of the non-uc system, and collects the attendance information of the enterprise user through the attendance system, and the 0CS uses different accounting policies according to the attendance information and the charging rule configured in the Por.
  • the communication fee calculation and deduction are carried out, and the charging method is simple and can effectively calculate the communication fee in the non-UC system.
  • FIG. 3 is a schematic structural diagram of an embodiment of a communication fee calculation apparatus according to the present invention.
  • the communication fee calculation apparatus includes: a user on-the-job status information receiving unit 31, a billing request receiving unit 32, and a billing unit 33, and the billing unit 33 respectively The user on-the-job status information receiving unit 31 and the billing request receiving unit 32 are connected.
  • the working principle of the device is as follows: the user status information receiving unit 31 receives the user status information, and when the charging request receiving unit 32 receives the charging request, the charging unit performs communication according to the received user status information and the charging request. Cost calculation.
  • the communication fee calculation means shown in Fig. 17 may further include a charging rule inquiry unit 34 for inquiring the charging rules of different accounts for use by the charging unit 33 for calculating the communication fee.
  • FIG. 18 is a schematic structural diagram of Embodiment 2 of a communication fee calculation system according to the present invention.
  • the system includes: a softswitch device (Sof tswi tch) 41 and a convergent billing server (0CS) 42.
  • the working principle of the system is: a softswitch device 41.
  • the convergent charging server 42 queries the Internet Protocol address information when the soft terminal is registered, and performs charging according to the Internet Protocol address information. Rules are billed.
  • the convergent charging server 42 receives the charging request when the soft terminal initiates the communication; and queries the Internet Protocol address information when the soft terminal is registered by the converged charging server 42 according to the charging request, and according to the The charging rule corresponding to the Internet Protocol address information is used for charging.
  • the system shown in FIG. 18 may further include a portal system (por ta l ) 43 for accessing the convergent charging server for managing binding and debinding of the communication terminal related to the enterprise account and the personal account, and the enterprise account.
  • the binding between the personal account of the person initiating the communication, and the charging rules for configuring the enterprise account and the personal account are queried for the calculation of the communication fee by the convergent charging server.
  • a person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the steps of the foregoing method embodiments are included; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

A method, system and device for calculating communication expenses are provided. The method comprises: obtaining the internet protocol address information registered by the soft terminal; querying said internet protocol address information registered by the soft terminal when said soft terminal initializes a communication, then performing the charging according to the charging rules corresponding to the internet protocol address information. Another method for calculating communication expenses is also provided. The method comprises: user duty status information; querying when user duty status information when initializing a communication, and performing the charging according to the charging rules corresponding to the user duty status information. By collecting the duty status information of enterprise employees, the invention judges whether the communication initiated by a user is a personal communication or an on-duty communication and then performs the charging according to preset communication charging standards. The method is simple and enables efficient calculation of communication expenses.

Description

通信费用计算方法、 系统及装置 本申请要求与 2008 年 3 月 17 日提交中国专利局、 申请号为 200810102060. 9 , 发明名称为 "通信费用计算方法、 系统及装置" 的中国 专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域  Communication Cost Calculation Method, System and Apparatus The present application claims priority to a Chinese patent application filed on March 17, 2008, the Chinese Patent Office, Application No. 200810102060.9, entitled "Communication Cost Calculation Method, System and Apparatus" The entire contents of which are incorporated herein by reference. Technical field
本发明涉及移动通信领域, 尤其涉及一种通信费用计算方法、 系统及装 置。 背景技术  The present invention relates to the field of mobile communications, and in particular, to a communication cost calculation method, system and device. Background technique
企业用户通常会同时具备通信网和互联网 (internet ) , 所述的通信网 是指企业用户的普通电话网絡, 而互联网则是指企业的办公网絡, 在实际应 用中, 通信网和互联网二者的功能是相互独立的。  Enterprise users usually have both a communication network and an internet. The communication network refers to the ordinary telephone network of enterprise users, while the Internet refers to the office network of enterprises. In practical applications, both the communication network and the Internet The functions are independent of each other.
统一通讯系统 ( Unif ied Communica t ion, UC )是一种可以将通信网和互 联网结合起来的通讯系统。 通过 UC系统, 用户可以通过互联网控制通信网中 的通信终端的工作, 而在通信网中的语音、 视频或传真可以同互联网中的电 子邮件、 即时消息等功能互通, 从而使得用户可以有效利用通信网和互联网 进行各种信息的交互。  Unified Communications System (UC) is a communications system that combines a communications network with the Internet. Through the UC system, users can control the work of communication terminals in the communication network through the Internet, and voice, video or fax in the communication network can communicate with functions such as e-mail and instant messaging in the Internet, so that users can effectively utilize communication. The Internet and the Internet interact with various information.
UC系统中, 每个 UC用户 (即 UC客户端)都有一个 UC号码, 该 UC号码 可以根据用户的需要对应到实际的通信网或互联网中的终端上, 用户在任何 可以使用互联网的地方都可以使用 UC系统, 为此 UC客户端需要与软终端配 合应用。 所述软终端为软交换中心的终端, 具体为通过软件方式实现的视频 频电话的功能。 在一个企业内, 用户可能会经常使用与移动终端号码捆绑的软终端进行 通讯, 对于用户在企业内因公产生的费用, 都应该由企业支付。 但是, 由于 互联网的开放性, 用户在任何有互联网的地方都可以通过 UC系统进行通讯, 如果用户不是在企业内处理公事, 而是在企业之外使用 UC系统处理私事, 那 么这时产生的通讯费用则应当由用户自己支付。 In the UC system, each UC user (that is, the UC client) has a UC number, which can be mapped to the actual communication network or the terminal in the Internet according to the needs of the user. The user can use the Internet anywhere. The UC system can be used, for which the UC client needs to cooperate with the soft terminal. The soft terminal is a terminal of a softswitch center, specifically a function of a video frequency phone implemented by software. In an enterprise, users may often use a soft terminal bundled with a mobile terminal number to communicate, and the cost incurred by the user in the enterprise should be paid by the enterprise. However, due to the openness of the Internet, users can communicate through the UC system in any place with Internet. If the user does not handle the business in the enterprise, but uses the UC system to handle private affairs outside the enterprise, then the communication generated at this time The fee should be paid by the user himself.
不仅是在 UC系统中存在这样的问题, 即使不是在 UC系统中, 而是在通 常的通信系统中, 也同样面临着如何计算通信费用的问题, 因为用户的个人 移动终端也可能用于工作上, 如果个人的移动终端用于工作上, 则产生的通 信费用应当由企业支付。  Not only is there such a problem in the UC system, but even in the UC system, but in the usual communication system, it also faces the problem of how to calculate the communication fee, because the user's personal mobile terminal may also be used for work. If the personal mobile terminal is used for work, the communication fee generated should be paid by the enterprise.
现有技术中, 对于如何计算通信费用, 一种方法是打印出详细的话单, 通过确认每一个与用户移动终端发生过联系的联系人的信息来确定企业应当 支付的费用; 另一种方法则是每月为用户 ^艮销固定的通讯费。 发明内容  In the prior art, one method for calculating the communication fee is to print a detailed bill, and determine the fee that the enterprise should pay by confirming the information of each contact that has contacted the user's mobile terminal; It is a monthly fixed communication fee for users. Summary of the invention
本发明实施例针对现有技术中通信费用计算方法烦瑣以及不能合理体现 通信系统中企业的用户所使用通信费用的问题,提供一种通信费用计算方法、 系统及装置, 可以有效进行通信系统中通信费用的计算。  The embodiment of the present invention provides a communication cost calculation method, system, and device for the communication system in the prior art, which is cumbersome and cannot reasonably reflect the communication cost used by the enterprise in the communication system, and can effectively perform the communication system. Calculation of communication costs.
本发明实施例提供了一种通信费用计算方法, 包括:  An embodiment of the present invention provides a communication cost calculation method, including:
获取软终端注册时的互联网协议地址信息;  Obtaining Internet Protocol address information when the soft terminal is registered;
当软终端发起通信时, 查询所述软终端注册时的互联网协议地址信息, 并根据与所述互联网协议地址信息对应的计费规则进行计费。  When the soft terminal initiates communication, it queries the Internet Protocol address information when the soft terminal is registered, and performs charging according to the charging rule corresponding to the Internet Protocol address information.
本发明实施例还提供了一种通信费用计算方法, 包括:  The embodiment of the invention further provides a communication cost calculation method, including:
获取用户在岗状态信息;  Obtain information about the status of the user;
当通信发起时, 查询用户在岗状态信息, 并根据与所述用户在岗状态 信息相对应的计费规则进行计费。  When the communication is initiated, the user's on-the-job status information is queried, and the charging is performed according to the charging rule corresponding to the on-the-job status information of the user.
本发明实施例还提供一种通信费用计算系统, 包括: 用户在岗状态信息获取装置, 用于获取用户在岗状态信息; 通信能力部件, 用于为通信终端提供需要的通信服务; The embodiment of the invention further provides a communication cost calculation system, including: a user status information acquiring device, configured to acquire user status information; and a communication capability component, configured to provide a communication service required by the communication terminal;
通信计费触发装置, 用于检测通信终端发起的通信请求, 并发送计费 请求;  a communication charging triggering device, configured to detect a communication request initiated by the communication terminal, and send a charging request;
通信费用计算装置, 用于接收用户在岗状态信息获取装置中存储的用 户在岗状态信息, 当接收到所述计费请求时, 查询所存储的用户在岗状态 信息, 进行通信费用计算。  The communication fee calculation device is configured to receive the user on-the-job status information stored in the on-the-job status information acquisition device, and when the charging request is received, query the stored user on-the-job status information to perform communication fee calculation.
本发明实施例还提供一种通信费用计算系统, 包括:  The embodiment of the invention further provides a communication cost calculation system, including:
软交换装置, 用于获取软终端注册时的互联网协议地址信息;  a softswitch device, configured to obtain Internet protocol address information when the soft terminal is registered;
融合计费服务器, 用于当软终端发起通信时, 查询所述软终端注册时的 互联网协议地址信息, 并根据与所述互联网协议地址信息对应的计费规则进 行计费。  The convergent charging server is configured to query the internet protocol address information when the soft terminal is registered when the soft terminal initiates communication, and perform charging according to the charging rule corresponding to the internet protocol address information.
本发明实施例还提供一种通信费用计算装置, 包括:  An embodiment of the present invention further provides a communication cost calculation apparatus, including:
用户在岗状态信息接收单元, 用于接收用户在岗状态信息;  The user status information receiving unit is configured to receive the user status information;
计费请求接收单元, 用于接收通信计费触发装置发送的通信计费请求; 计费单元, 分别与所述用户在岗状态信息接收单元、 计费请求接收单元 连接, 用于根据所述计费请求接收单元接收到的计费请求、 用户在岗状态信 息接收单元接收到的用户在岗状态信息进行通信费用计算。  a charging request receiving unit, configured to receive a communication charging request sent by the communication charging triggering device; the charging unit is respectively connected to the user status information receiving unit and the charging request receiving unit, and configured to perform charging according to the The charging request received by the request receiving unit and the user status information received by the user status information receiving unit are used to calculate the communication fee.
本发明实施例提供的通信费用计算方法、 系统及装置, 通过用户在岗状 态信息获取装置釆集用户在岗状态信息, 通信费用计算装置根据该用户在岗 状态信息并结合计费规则进行计费, 可以有效区分用户的个人行为和工作行 为, 从而可以针对不同的帐户进行区分计费。  The communication cost calculation method, system and device provided by the embodiment of the present invention collect the user on-the-job status information by the user on-the-job state information acquisition device, and the communication fee calculation device performs charging according to the user on-the-job status information and the charging rule, which can be effective. Differentiate the user's personal behavior and work behavior, so that different accounts can be differentiated and billed.
下面通过具体实施例并结合附图对本发明做进一步的详细描述。 说明  The present invention will be further described in detail below by way of specific embodiments and drawings. Description
图 1所示为本发明通信费用计算系统实施例一结构示意图; 图 2所示为本发明通信费用计算方法实施例一流程图; 1 is a schematic structural diagram of Embodiment 1 of a communication fee calculation system according to the present invention; 2 is a flowchart of Embodiment 1 of a method for calculating a communication fee according to the present invention;
图 3所示为本发明通信费用计算方法实施例二流程图;  FIG. 3 is a flowchart of Embodiment 2 of a method for calculating a communication fee according to the present invention;
图 4 所示为本发明通信费用计算方法实施例二中步骤软终端注册流程 图;  FIG. 4 is a flowchart showing the process of registering a soft terminal in the second embodiment of the communication fee calculation method of the present invention;
图 5所示为为本发明通信费用计算方法实施例二中步骤 201流程图; 图 6所示为本发明通信费用计算方法实施例二中企业开户解析示意图; 图 7所示为本发明通信费用计算方法实施例二中企业管理员查询企业帐 户信息解析示意图;  FIG. 5 is a flowchart of step 201 in the second embodiment of the communication fee calculation method of the present invention; FIG. 6 is a schematic diagram of the enterprise account opening analysis in the second embodiment of the communication fee calculation method of the present invention; A schematic diagram of the enterprise administrator querying the enterprise account information in the second embodiment of the calculation method;
图 8所示为本发明通信费用计算方法实施例二中企业管理员修改企业帐 户信息解析示意图;  FIG. 8 is a schematic diagram of analyzing an enterprise account information by an enterprise administrator in Embodiment 2 of a communication fee calculation method according to the present invention;
图 9所示为本发明通信费用计算方法实施例二中企业管理员查询 /添加 / 修改 /删除与企业帐户相关联的 IP地址解析示意图;  FIG. 9 is a schematic diagram of IP address resolution associated with an enterprise account by an enterprise administrator query/add/modify/delete in the second embodiment of the communication fee calculation method according to the present invention;
图 1 0 所示为本发明通信费用计算方法实施例二中企业管理员绑定个人 帐户解析示意图;  FIG. 10 is a schematic diagram of the analysis of the personal account binding of the enterprise administrator in the second embodiment of the communication fee calculation method of the present invention;
图 1 1 所示为本发明通信费用计算方法实施例二中企业管理员去绑定个 人帐户解析示意图;  FIG. 1 is a schematic diagram of the analysis of the enterprise administrator to bind the personal account in the second embodiment of the communication cost calculation method according to the present invention;
图 12 所示为本发明通信费用计算方法实施例二中企业管理员查询员工 个人帐户解析示意图;  FIG. 12 is a schematic diagram of an enterprise administrator querying an employee's personal account in the second embodiment of the communication fee calculation method according to the present invention;
图 1 3 所示为本发明通信费用计算方法实施例二中发送短信的计费方法 解析示意图;  FIG. 1 is a schematic diagram of an accounting method for sending a short message in Embodiment 2 of a method for calculating a communication fee according to the present invention;
图 14所示为本发明通信费用计算系统实施例二结构示意图;  14 is a schematic structural diagram of Embodiment 2 of a communication fee calculation system according to the present invention;
图 15所示为本发明通信费用计算方法实施例三流程图;  15 is a flowchart of Embodiment 3 of a method for calculating a communication fee according to the present invention;
图 1 6 所示为本发明通信费用计算方法实施例三中发起呼叫的计费方法 解析示意图;  FIG. 16 is a schematic diagram of an accounting method for initiating a call in Embodiment 3 of a method for calculating a communication fee according to the present invention;
图 17所示为本发明通信费用计算装置实施例结构示意图;  17 is a schematic structural diagram of an embodiment of a communication fee calculation apparatus according to the present invention;
图 18所示为本发明通信费用计算系统实施例二结构示意图。 具体实施方式 FIG. 18 is a schematic structural diagram of Embodiment 2 of a communication fee calculation system according to the present invention. detailed description
如图 1所示为本发明通信费用计算系统实施例一结构示意图,具体包括: 至少一个用户在岗状态信息获取装置 11 ,用于获取企业用户的在岗状态信息, 此处 "用户在岗状态信息" 可以指用户所处的空间上的位置信息, 例如通过 考勤系统记录企业的员工是否在企业的信息, 也可以是互联网中的互联网协 议 ( Internet Protocol, IP)地址。 图 1 中为便于说明, 仅画出一个用户 在岗状态信息获取装置; 通信计费触发装置 12, 用于检测通信终端发起的通 信请求, 并发送计费请求; 通信费用计算装置 13, 用于接收用户在岗状态信 息获取装置 11中存储的用户在岗状态信息, 当接收到计费请求时, 查询自身 所存储的用户在岗状态信息, 根据查询结果确定计费方式。 该系统还可以包 括: 帐户管理装置 14, 用于管理与企业帐户和个人帐户相关的通讯终端的绑 定与去绑定, 企业帐户与发起通信的个人帐户的绑定, 以及配置企业帐户和 个人帐户的计费规则; 还包括能够提供所需的通信能力的通信能力部件 15。  FIG. 1 is a schematic structural diagram of Embodiment 1 of a communication fee calculation system according to the present invention, which specifically includes: at least one user status information acquiring device 11 for acquiring information on the status of an enterprise user, where the “user status information” can be Refers to the location information of the user in the space, for example, whether the employee of the enterprise is in the enterprise through the attendance system, or the Internet Protocol (IP) address in the Internet. In FIG. 1 , for convenience of description, only one user status information acquiring device is shown; a communication charging trigger device 12 is configured to detect a communication request initiated by the communication terminal, and send a charging request; and a communication cost calculating device 13 is configured to receive When the user receives the charging request, the user's on-the-job status information stored in the user's on-the-job status information acquiring device 11 queries the user's on-the-job status information stored therein, and determines the charging method according to the query result. The system may further include: an account management device 14 for managing binding and unbinding of the communication terminal associated with the enterprise account and the personal account, binding of the enterprise account with the personal account initiating the communication, and configuring the enterprise account and the individual The billing rules for the account; also include a communication capability component 15 capable of providing the required communication capabilities.
具体地, 用户在岗状态信息获取装置、 通信能力部件的功能可以在软交 换装置中实现, 软交换装置可以负责用户的注册请求, 获取用户的状态信息 以及呼叫路由; 通信计费触发装置的功能可以由通讯应用服务器 (Application Server, AS) 实现, AS 处理相关的各种通信应用, 负责发 送计费请求; 通信费用计算装置的功能可以由融合计费服务器 (Online Charging System, 0CS )来实现, 0CS可以存储用户状态信息并能处理通信计 费; 帐户管理装置的功能可以由门户系统(Portal )来实现, Portal是接入 0CS的一个接口, 用户通过 Protal可以进行帐户管理, 0CS在进行通信计费 时可以查询用户在 Protal中设置的相关帐户信息,例如与企业帐户绑定的个 人帐户有哪些, 以及不同的个人账户和企业帐户的通信费率和计费规则是什 么。  Specifically, the functions of the user status information acquiring device and the communication capability component may be implemented in the softswitch device, and the softswitch device may be responsible for the user's registration request, acquiring the user's state information and the call route; and the function of the communication charging trigger device may be Implemented by the Application Server (AS), the AS handles various communication applications and is responsible for sending the charging request. The function of the communication cost calculation device can be implemented by the Online Charging System (0CS), 0CS. The user status information can be stored and the communication billing can be processed; the function of the account management apparatus can be implemented by the portal system (Portal), the portal is an interface for accessing the 0CS, the user can perform account management through Protal, and the 0CS is performing communication billing. You can query the relevant account information set by the user in Protal, such as which personal accounts are bound to the corporate account, and what are the communication rates and billing rules for different personal accounts and corporate accounts.
如图 2所示为本发明通信费用计算方法实施例一流程图, 包括: 步骤 101、 获取用户在岗状态信息, 并将该信息发送到通信费用计算装 置。 用户在岗状态信息获取装置可以一段时间釆集一次用户在岗状态信息, 或者当用户进行某一特定行为时釆集用户的在岗状态信息, 然后将釆集的信 息进行存储。 FIG. 2 is a flowchart of Embodiment 1 of a method for calculating a communication fee according to the present invention, including: Step 101: Acquire user status information, and send the information to the communication fee calculation device. The on-the-job status information obtaining device may collect the user's on-the-job status information for a period of time, or collect the user's on-the-job status information when the user performs a certain behavior, and then store the collected information.
步骤 102、 当通信发起时, 查询用户在岗状态信息, 并根据与所述用户在 岗状态信息相对应的计费规则进行计费。 具体为: 通信能力部件发送通信请 求到通信计费触发装置。 当用户发起通信时, 通信终端向通信能力部件发送 通信请求, 通信能力部件根据该通信请求为用户提供要求的通信能力, 并向 通信计费触发装置发送通信请求; 通信计费触发装置发送计费请求到通信费 用计算装置。 该计费请求用于触发通信费用计算装置进行计费。  Step 102: When the communication is initiated, query the user status information, and perform charging according to the charging rule corresponding to the user status information. Specifically, the communication capability component sends a communication request to the communication charging trigger device. When the user initiates communication, the communication terminal sends a communication request to the communication capability component, the communication capability component provides the user with the required communication capability according to the communication request, and sends a communication request to the communication charging trigger device; the communication charging trigger device sends the charging Request to the communication fee calculation device. The charging request is used to trigger the communication fee calculation device to perform charging.
下面详细介绍如何根据用户在岗状态信息来进行通信费用的计算。  The following describes in detail how to calculate the communication cost based on the user's on-the-job status information.
一、 根据用户登录 UC系统的当前 IP地址进行通信费用计算  1. Calculate the communication cost based on the current IP address of the user logging in to the UC system.
用户登录 UC系统的当前 IP地址也可以看成是一种用户在岗状态信息。 根据用户通过软终端进行注册时的当前 IP地址进行通信费用计算的系统,是 在如图 1所示的系统的基础上将用户在岗状态信息获取装置具体为软终端注 册装置, 软终端注册装置用于在软终端进行注册时记录当前的 IP地址、 注册 时间、 通信终端类型等信息。 软终端注册装置的功能可以由软交换装置 User login The current IP address of the UC system can also be regarded as a kind of user status information. The system for calculating the communication fee according to the current IP address when the user registers through the soft terminal is based on the system shown in FIG. 1 , and the user status information acquiring device is specifically a soft terminal registration device, and the soft terminal registration device is used. Record the current IP address, registration time, communication terminal type, etc. when registering at the soft terminal. The soft terminal registration device can be functioned by a soft switching device
( Sof tSwi tch )来实现。 (Sof tSwi tch) to achieve.
如图 3所示为本发明通信费用计算方法实施例二流程图, 包括: 步骤 201、 获取软终端注册时的互联网协议地址信息;  FIG. 3 is a flowchart of Embodiment 2 of a method for calculating a communication fee according to the present invention, including: Step 201: Acquire internet protocol address information when a soft terminal is registered;
步骤 202、 当软终端发起通信时, 查询所述软终端注册时的互联网协议 地址信息, 并根据与所述互联网协议地址信息查询结果以及计费规则进行计 费。  Step 202: When the soft terminal initiates communication, querying the Internet Protocol address information when the soft terminal is registered, and performing charging according to the Internet Protocol address information query result and the charging rule.
在执行步骤 201之前还包括在软终端进行注册的步骤。  The step of registering at the soft terminal is also included before performing step 201.
其中, 在软终端进行注册的步骤具体为: 启动安装在电脑上的 UC客户 端程序, 通过互联网向 Sof tSwi tch发送注册请求进行注册。 如图 4所示为本 发明通信费用计算方法实施例二中步骤软终端注册流程图, 具体为: 步骤 2001、 运行软终端, 软终端向 SoftSwitch 发起对话初始化协议 ( Session Initial Protocol, SIP )注册请求。 软终端和 Sof tSwi tch之间 的通信基于 SIP协议。 The step of registering in the soft terminal is specifically: starting a UC client program installed on the computer, and sending a registration request to the Sof tSwi tch for registration via the Internet. As shown in Figure 4 The method for calculating the communication fee in the second embodiment of the invention is as follows: Step 2001: Running the soft terminal, the soft terminal initiates a Session Initial Protocol (SIP) registration request to the SoftSwitch. The communication between the soft terminal and the Sof tSwi tch is based on the SIP protocol.
步骤 2002、 SoftSwitch检测到该注册请求, 对发起该注册请求的用户进 行鉴权; 如果鉴权通过, 执行步骤 2005; 否则, 执行步骤 2003。  Step 2002: The SoftSwitch detects the registration request, and authenticates the user who initiated the registration request. If the authentication is passed, go to Step 2005; otherwise, go to Step 2003.
步骤 2003、SoftSwitch向软终端返回鉴权挑战请求( 401 Unauthorized), 对用户进行鉴权挑战。  Step 2003: The SoftSwitch returns an authentication challenge request (401 Unauthorized) to the soft terminal to challenge the user.
步骤 2004、 软终端收到鉴权挑战请求 (401 Unauthorized)后, 安装 SoftSwitch的鉴权规则, 进行鉴权数据编码, 并重新向 SoftSwitch发送注 册请求。  Step 2004: After receiving the authentication challenge request (401 Unauthorized), the soft terminal installs the SoftSwitch authentication rule, performs authentication data encoding, and re-sends the registration request to the SoftSwitch.
步骤 2005、 SoftSwitch检测步骤 2004中发出的注册请求, 对发起该注 册请求的用户进行鉴权, 鉴权通过后向软终端反馈 2000K消息。 软终端就可 以正常使用提供的各种通信业务。  Step 2005: The registration request sent by the SoftSwitch detection step in 2004 authenticates the user who initiated the registration request, and the 2000K message is fed back to the soft terminal after the authentication is passed. The soft terminal can normally use the various communication services provided.
以上流程遵循 SIP标准。 如图 5所示为为本发明通信费用计算方法实施 例二中步骤 201流程图, 具体为:  The above process follows the SIP standard. FIG. 5 is a flowchart of step 201 in Embodiment 2 of the method for calculating a communication fee according to the present invention, specifically:
步骤 2011、 在软终端成功注册到 SoftSwitch时, SoftSwitch保存软终 端注册信息, 包括注册时的 IP地址、 注册时间、 通信终端类型等, 然后将该 软终端注册消息发送到 0CS提供的上报软终端注册信息的接口报告信息寄存 器(Report Register) , 将用户当前的软终端注册信息上报到 0CS。  Step 2011: When the soft terminal successfully registers with the SoftSwitch, the SoftSwitch saves the soft terminal registration information, including the IP address, registration time, and communication terminal type during registration, and then sends the soft terminal registration message to the soft terminal registration provided by the 0CS. The interface of the information report information register (Report Register), and the current soft terminal registration information of the user is reported to the 0CS.
步骤 2012、 0CS收到该软终端注册信息后, 向 SoftSwitch返回成功接收 (0K) 消息, 并保存该软终端注册消息。  After receiving the soft terminal registration information, the 2012 and 0CS return a successful receiving (0K) message to the SoftSwitch, and save the soft terminal registration message.
SoftSwitch和 0CS之间的通信遵循简单对象访问( Simple Object Access Protocol, SOAP )标准。  The communication between SoftSwitch and 0CS follows the Simple Object Access Protocol (SOAP) standard.
SoftSwitch发送给 OCS的 SOAP请求如下所示:  The SOAP request sent by SoftSwitch to OCS is as follows:
POST /hw-iPortalService-IPS HTTP/1.0 Content-Type: text/xml; char set=utf-8 POST /hw-iPortalService-IPS HTTP/1.0 Content-Type: text/xml; char set=utf-8
Accept: a l ica t ion/ soap+xml, appl icat ion/dime,  Accept: a l ica t ion/ soap+xml, appl icat ion/dime,
multipart/related, text/ * Multipart/related, text/ *
User-Agent: Axis/#axisVers icm#  User-Agent: Axis/#axisVers icm#
Host: 10.71.102.13: 8080  Host: 10.71.102.13: 8080
Cache-Control: no-cache  Cache-Control: no-cache
Pragma: no-cache  Pragma: no-cache
SOAPAction: " hw.group- IPS. IPimService#reportRegister" Content-Length: 562  SOAPAction: " hw.group- IPS. IPimService#reportRegister" Content-Length: 562
<?xml version="l.0" encoding="UTF-8 " ?> <?xml version="l.0" encoding="UTF-8 " ?>
<soapenv: Envelope  <soapenv: Envelope
xmlns: soapenv="ht tp: II schema s. xml soap. org/ soap/ envelope/ xmlns: xsd="ht tp: //www. w3. org/2001/XMLSchema "  Xmlns: soapenv="ht tp: II schema s. xml soap. org/ soap/envelope/ xmlns: xsd="ht tp: //www. w3. org/2001/XMLSchema "
xmlns: xs i = "ht tp: //www. w3. org/2001/XMLSchema-ins tance " > <soapenv: Body>  Xmlns: xs i = "ht tp: //www. w3. org/2001/XMLSchema-ins tance " > <soapenv: Body>
<repor tRegi s ter xmlns = " hw.ocs. Service  <repor tRegi s ter xmlns = " hw.ocs. Service
<inParam xmlns=" " >  <inParam xmlns=" " >
<params xs i: ni 1 = " true" />  <params xs i: ni 1 = " true" />
<userUri>13501230008</userUri>  <userUri>13501230008</userUri>
<regi s trBody>  <regi s trBody>
<clientrType>K/clientrType>  <clientrType>K/clientrType>
<regi s trAddres s>l 39.138.123.89</ regis trAddress> <registrTime>20071219134212</registrTime> </ registrBody>  <regi s trAddres s>l 39.138.123.89</ regis trAddress> <registrTime>20071219134212</registrTime> </ registrBody>
</ inParam> </ reportRegister> </ inParam> </ reportRegister>
</ soapenv: Body>  </ soapenv: Body>
</ soapenv: Envelope> </ soapenv: Envelope>
OCS返回给 SoftSwitch的 SOAP响应如下所示: The SOAP response returned by OCS to SoftSwitch is as follows:
HTTP/1.1 200 OK HTTP/1.1 200 OK
Server: HuaWei ENIP SOAP Adapter/2.0  Server: HuaWei ENIP SOAP Adapter/2.0
Connect ion: close Connect ion: close
Content-Length: 583 Content-Length: 583
Content-Type: text/xml; char set=UTF-8  Content-Type: text/xml; char set=UTF-8
<?xml vers ion= 1.0' encoding= utf-8' ?> <?xml vers ion = 1.0' encoding = utf-8'?>
<S0AP-ENV: Envelope <S0AP-ENV: Envelope
xmlns: S0AP-ENV="ht tp: II schema s. xml soap. org/ soap/ envelope/ " xmlns: xsd="ht tp: //www. w3. org/2001/XMLSchema " Xmlns: S0AP-ENV="ht tp: II schema s. xml soap. org/ soap/envelope/ " xmlns: xsd="ht tp: //www. w3. org/2001/XMLSchema "
xmlns: xs i = "ht tp: //www. w3. org/2001/XMLSchema-ins tance " xmlns: soapenc="ht tp: II schema s. xml soap, org/ soap/ encoding/ " > <S0AP-ENV: Body Xmlns: xs i = "ht tp: //www. w3. org/2001/XMLSchema-ins tance " xmlns: soapenc="ht tp: II schema s. xml soap, org/ soap/ encoding/ " > <S0AP- ENV: Body
SOAP-ENV: encodingSty le="ht tp: II schema s. xml soap. org/ soap/ enc oding/ " >  SOAP-ENV: encodingSty le="ht tp: II schema s. xml soap. org/ soap/ enc oding/ " >
<ns 1: repor tRegi s terRes onse xmlns: ns 1 = " hw.ocs. Service" > <outParam>  <ns 1: repor tRegi s terRes onse xmlns: ns 1 = " hw.ocs. Service" > <outParam>
<userUri>13501230008</userUri>  <userUri>13501230008</userUri>
<output ni 1=" true"/> <output ni 1=" true"/>
</ outParam> <ret>202</ret> </ outParam> <ret>202</ret>
</ns 1: reportRegister>  </ns 1: reportRegister>
</S0AP-ENV: Body>  </S0AP-ENV: Body>
</S0AP-ENV: Envelope>  </S0AP-ENV: Envelope>
在进行实施例二所述的流程之前还包括企业开户、 企业管理员查询和修 改企业帐户信息、以及企业管理员查询 /添加 /修改 /删除与企业帐户相关联的 IP地址的流程。  Before the process described in the second embodiment, the process of opening an account, checking the enterprise administrator, and modifying the enterprise account information, and the enterprise administrator query/add/modify/delete the IP address associated with the enterprise account are also included.
(1 )企业开户流程  (1) Business account opening process
企业到运营商营业厅开户, 运营商营业厅系统将携带有企业资料、 企业 管理员用户名、 用户密码、 密码确认、 企业帐户、 绑定规模、 企业 IP的开户 请求消息通过 Portal发送到 OCS, 0CS开户成功后返回开户成功消息( 0K )。 如图 6所示为本发明通信费用计算方法实施例二中企业开户解析示意图, 图 中网絡浏览器(Web Browser )是通过 Portal登录的帐户管理系统的界面。  The enterprise opens an account with the operator's business hall. The operator's business hall system will send the enterprise account information, enterprise administrator user name, user password, password confirmation, enterprise account, binding size, and enterprise IP account opening request message to the OCS through the portal. 0CS returns to the account opening success message (0K) after successful account opening. FIG. 6 is a schematic diagram of an enterprise account opening analysis in the second embodiment of the communication fee calculation method according to the present invention. The web browser is an interface of an account management system that is logged in through the portal.
( 2 )企业管理员查询企业帐户信息流程  (2) Enterprise administrators query enterprise account information process
如图 7所示为本发明通信费用计算方法实施例二中企业管理员查询企业 帐户信息解析示意图。 企业管理员打开企业管理页面, 输入企业用户名以及 用户密码后, 登录本企业的帐户管理系统, Web Browser 把管理员查询请求 通过 Portal发送到 OCS, 0CS在收到该管理员查询请求后, 通过 Portal向企 业管理页面返回 2000K消息并显示企业帐户信息, 包括与帐户绑定的 IP地址 以及与企业绑定的通信终端信息, 与企业账户绑定的 I P地址可以是多个。  FIG. 7 is a schematic diagram of analyzing enterprise account information in the second embodiment of the communication fee calculation method according to the present invention. After the enterprise administrator opens the enterprise management page, enters the enterprise user name and user password, and logs in to the account management system of the enterprise. The Web Browser sends the administrator query request to the OCS through the portal. After receiving the administrator query request, the 0CS passes. The portal returns a 2000K message to the enterprise management page and displays the enterprise account information, including the IP address bound to the account and the communication terminal information bound to the enterprise. The IP address bound to the enterprise account may be multiple.
( 3 )企业管理员修改企业帐户信息流程  (3) Enterprise administrators modify the process of enterprise account information
企业管理员还可以对企业帐户信息进行修改, 如图 8所示为本发明通信 费用计算方法实施例二中企业管理员修改企业帐户信息解析示意图, 企业管 理员打开企业管理页面, 输入企业用户名以及用户密码后, 登录本企业的帐 户管理系统, 并发送管理员修改请求, Web Browser 把管理员修改请求通过 Portal发送到 OCS, 0CS在收到该管理员修改请求后, 通过 Portal向企业管 理页面返回 2000K消息, 并向管理员反馈所做的修改。 The enterprise administrator can also modify the enterprise account information. As shown in FIG. 8 , the enterprise administrator modifies the enterprise account information in the second embodiment of the communication fee calculation method of the present invention. The enterprise administrator opens the enterprise management page and inputs the enterprise user name. After the user password, log in to the account management system of the enterprise, and send an administrator modification request. The Web Browser sends the administrator modification request to the OCS through the portal. After receiving the administrator modification request, the 0CS passes the portal to the enterprise management. The page returns a 2000K message and feeds back the changes to the administrator.
( 4 )企业管理员查询 /添加 /修改 /删除与企业帐户绑定的 IP地址的流程 企业管理员可以查询 /添加 /修改 /删除与企业帐户绑定的 IP地址, 该与 企业帐户绑定的 IP地址是指: 如果公司员工以该与企业帐户绑定的 IP地址 登录 UC系统, 则可以认为该用户登录 UC系统用于处理公事; 如果该用户以 与企业帐户绑定的 IP地址之外的 IP地址登录,则可以认为该用户登录 UC系 统用于处理私事。 图 9所示为本发明通信费用计算方法实施例二中企业管理 员查询 /添加 /修改 /删除与企业帐户绑定的 IP地址解析示意图, 企业管理员 打开企业管理页面, 输入企业用户名以及用户密码后, 登录本企业的帐户管 理系统, 并发送管理员查询 /修改 /添加 /删除与帐户相关 IP 地址请求, Web Browser把管理员查询 /修改 /添加 /删除与帐户相关 IP地址请求通过 Por ta l 发送到 OCS , 0CS在收到该请求后, 通过 Por ta l向企业管理页面返回 200 0K 消息, 并向管理员反馈查询 /修改 /添加 /删除与帐户相关 IP地址操作之后的 信息。  (4) The process of querying/adding/modifying/deleting the IP address bound to the enterprise account by the enterprise administrator. The enterprise administrator can query/add/modify/delete the IP address bound to the enterprise account, which is bound to the enterprise account. The IP address is: If the employee logs in to the UC system with the IP address bound to the enterprise account, the user can be considered to log in to the UC system for handling the business; if the user is outside the IP address bound to the enterprise account If the IP address is logged in, the user can be considered to log in to the UC system for handling private matters. FIG. 9 is a schematic diagram of the IP address resolution of the enterprise administrator query/add/modify/delete and the enterprise account binding in the second embodiment of the communication fee calculation method according to the present invention. The enterprise administrator opens the enterprise management page, inputs the enterprise user name and the user. After the password, log in to the account management system of the enterprise, and send the administrator to query/modify/add/delete the account-related IP address request, and the Web Browser sends the administrator to query/modify/add/delete the account-related IP address request through Por ta. l After sending to the OCS, after receiving the request, 0CS returns a 200 OK message to the enterprise management page through Por ta l, and feeds back to the administrator the information after the query/modify/add/delete and account-related IP address operations.
( 5 )企业管理员绑定员工个人帐户流程  (5) Enterprise administrators bind employee personal account process
如图 10 所示为本发明通信费用计算方法实施例二中企业管理员绑定个 人帐户解析示意图, 企业开户成功后, 企业管理员输入企业用户名和用户密 码登录企业管理页面, 企业管理员发送绑定帐户请求, 选择绑定用户个人帐 户, 输入需要绑定的用户的个人帐户信息 (本实施例中该帐户信息具体为移 动终端号码) , 选择绑定, 并通过 Por ta l将绑定信息提交到 0CS , 然后 0CS 通过 Por ta l向管理员反馈绑定结果, 。  FIG. 10 is a schematic diagram of the analysis of the personal account binding of the enterprise administrator in the second embodiment of the communication cost calculation method of the present invention. After the enterprise opens an account successfully, the enterprise administrator inputs the enterprise user name and the user password to log in to the enterprise management page, and the enterprise administrator sends the binding. Set the account request, select the binding user's personal account, enter the personal account information of the user to be bound (in this embodiment, the account information is specifically the mobile terminal number), select the binding, and submit the binding information through Por ta l To 0CS, then 0CS feeds the binding result to the administrator through Por ta l.
( 6 )企业管理员去绑定个人帐户流程  (6) Enterprise administrators to bind personal account processes
如果某一用户不在该企业工作了, 则企业管理员需要将该用户的个人帐 户信息与企业帐户进行去绑定。如图 11所示为本发明通信费用计算方法实施 例二中企业管理员去绑定个人帐户解析示意图, 企业管理员输入企业用户名 和用户密码登录企业管理页面, 企业管理员发送去绑定帐户请求, 选择去绑 定用户个人帐户, 输入需要去绑定的用户的个人帐户信息 (本实施例中该帐 户信息具体为移动终端号码) , 选择去绑定, 并通过 Portal将去绑定信息提 交到 0CS, 然后 0CS通过 Portal向管理员反馈去绑定结果, 。 If a user is not working in the enterprise, the enterprise administrator needs to unbind the user's personal account information with the corporate account. FIG. 11 is a schematic diagram of the enterprise administrator unbinding the personal account in the second embodiment of the communication cost calculation method according to the present invention. The enterprise administrator inputs the enterprise user name and the user password to log in to the enterprise management page, and the enterprise administrator sends a binding account request. , choose to tie Set the user's personal account, enter the personal account information of the user who needs to be bound (in this embodiment, the account information is specifically the mobile terminal number), select to bind, and submit the unbinding information to 0CS through the Portal, then 0CS Through the Portal, feedback to the administrator to unbind the results.
( 7 )企业管理员查询绑定个人帐户流程  (7) Enterprise administrator query binding personal account process
企业管理员还可以登录企业管理界面查询与企业帐户绑定的用户个人帐 户信息。如图 12所示为本发明通信费用计算方法实施例二中企业管理员查询 员工个人帐户解析示意图, 企业管理员输入企业用户名和用户密码登录企业 管理界面, 企业管理员发送查询绑定帐户请求, 选择待查询的绑定帐户, 并 通过 Portal将带查询的绑定帐户提交到 0CS, 然后 0CS通过 Portal向管理 员反馈该绑定帐户的信息。  The enterprise administrator can also log in to the enterprise management interface to query the user's personal account information bound to the enterprise account. FIG. 12 is a schematic diagram of an enterprise administrator querying an employee's personal account in the second embodiment of the communication fee calculation method according to the present invention. The enterprise administrator inputs the enterprise user name and the user password to log in to the enterprise management interface, and the enterprise administrator sends a query binding account request. Select the binding account to be queried, and submit the binding account with the query to the 0CS through the portal. Then, the 0CS feeds back the information of the bound account to the administrator through the portal.
通过以上(1 ) _ (7)的流程之后, 通信计费帐户就包括企业帐户以及与 企业帐户绑定的用户个人帐户,如果软终端注册时的 IP地址和与企业绑定的 IP地址之一相同, 则根据与企业帐户相关的通信费率进行计费以及对企业帐 户进行费用扣除; 如果软终端注册时的 IP地址和与企业绑定的所有 IP地址 均不同, 则根据与个人帐户相关的通信费率进行计费以及对用户个人帐户进 行费用扣除。  After the flow of (1) _ (7) above, the communication billing account includes the enterprise account and the user personal account bound to the enterprise account, if the IP address of the soft terminal is registered and one of the IP addresses bound to the enterprise The same, according to the communication rate associated with the enterprise account for billing and deduction of the business account fee; if the IP address of the soft terminal registration and all IP addresses bound to the enterprise are different, according to the personal account The communication rate is charged and the user's personal account is deducted.
下面以具体的企业的用户通过 UC 系统发送短信为例来说明如何根据软 终端注册时的当前 IP地址来进行通信费用计算。 如图 13所示为本发明通信 费用计算方法实施例二中发送短信的计费方法解析示意图。 具体为:  In the following, a specific enterprise user sends a short message through the UC system as an example to explain how to calculate the communication fee according to the current IP address when the soft terminal is registered. FIG. 13 is a schematic diagram of the charging method for sending a short message in the second embodiment of the communication cost calculation method according to the present invention. Specifically:
步骤 1201、 软终端发送短信到 SoftSwitch;  Step 1201: The soft terminal sends a short message to the SoftSwitch.
步骤 1202、 SoftSwitch以 SIP Message作为承载将短信发送到 AS; 步骤 1203、 AS检测到用户发送短信的请求, 向 0CS发起第一信用控制请 求(Credit Control Request, CCR ) , 用于请求 0CS进行预扣费;  Step 1202: The SoftSwitch sends the short message to the AS by using the SIP message as the bearer. Step 1203: The AS detects the request for sending the short message by the AS, and initiates a first credit control request (CCR) to the 0CS for requesting the 0CS to perform the withholding. Fee
步骤 1204、 0CS在收到所述第一 CCR之后, 查询用户当前的软终端注册 信息, 如果软终端注册信息中记录的登录 IP地址为与企业帐户绑定的 IP地 址之一, 则对企业帐户进行预扣费; 如果软终端注册信息中记录的登录 IP地 址和与企业帐户绑定的 IP地址均不同, 则对用户个人帐户进行预扣费, 该规 则存储在 Portal 中, 0CS结合该规则以及根据用户的登录 IP地址进行资费 预扣; After receiving the first CCR, the step 1204, the 0CS queries the current soft terminal registration information of the user. If the login IP address recorded in the soft terminal registration information is one of the IP addresses bound to the enterprise account, the enterprise account is Carry out the withholding fee; if the login IP address is recorded in the soft terminal registration information If the address is different from the IP address bound to the enterprise account, the user's personal account is withheld. The rule is stored in the portal. The 0CS combines the rule and performs the withholding according to the user's login IP address.
步骤 1205、 0CS在对相应的帐户进行了预扣费之后, 发送第一信用控制 响应 ( Credit Control Answer, CCA )到 AS;  Steps 1205 and 0CS send a first credit control response (CCA) to the AS after performing a withholding fee on the corresponding account;
步骤 1206、 AS在收到所述第一 CCA之后向 SoftSwitch发送一个消息, 该消息中携带有目的移动终端的信息;  Step 1206: After receiving the first CCA, the AS sends a message to the SoftSwitch, where the message carries the information of the destination mobile terminal.
步骤 1207, SoftSwitch向短信服务中心( Short Message Service Center, SMSC )发送短信请求;  Step 1207: The SoftSwitch sends a short message request to a Short Message Service Center (SMSC).
步骤 1208、 SMSC向 SoftSwitch返回发送短信响应;  Step 1208: The SMSC returns a short message response to the SoftSwitch.
步骤 1209、 AS收到 SMSC的响应后, 根据消息中的源地址, 向消息发送 方移动终端发送短信中心已接收短信的消息, 消息发送方移动终端返回响应 消息 200 0K;  Step 1209: After receiving the response from the SMSC, the AS sends a message that the short message center has received the short message to the mobile terminal of the message according to the source address in the message, and the mobile terminal of the message returns a response message 200 0K;
步骤 1210、 SMSC将短信发送到目的移动终端后, 向 SoftSwitch发送一 个短信接受确认消息;  Step 1210: After sending the short message to the destination mobile terminal, the SMSC sends a short message acceptance confirmation message to the SoftSwitch.
步骤 1211、 SoftSwitch在收到该短信接受确认消息后, 向 AS发送一个 消息, 用于通知 AS该短信已被目的移动终端成功接收;  Step 1211: After receiving the acknowledgement message, the SoftSwitch sends a message to the AS to notify the AS that the short message has been successfully received by the destination mobile terminal.
步骤 1212、 AS在收到步骤 1211中所述消息后,向 0CS发送一个第二 CCR, 该第二 CCR用于通知 0CS对步骤 1204中进行过预扣费的帐户进行扣费;  Step 1212: After receiving the message in step 1211, the AS sends a second CCR to the 0CS, where the second CCR is used to notify the 0CS to deduct the account with the withholding fee in step 1204.
步骤 1213、 0CS向 AS发送一个第二 CCA, 用于通知 AS扣费成功; 步骤 1214、 AS向 SoftSwitch发送一个用于通知 Sof tSwi tch扣费成功的 通知消息;  Step 1213: The 0CS sends a second CCA to the AS to notify the AS that the deduction is successful. Step 1214: The AS sends a notification message to the SoftSwitch to notify the Sof tSwi tch that the deduction is successful.
步骤 1215、 SoftSwitch将接收到的扣费成功的消息发送给客户端, 正在 使用 UC系统发送短信的用户就可以看到此次发送短信的通信计费结果。  Step 1215: The SoftSwitch sends the received success message to the client, and the user who is using the UC system to send the short message can see the communication charging result of the short message.
图 13中所述的流程遵循 SIP ( rfc3261标准)标准协议, 其中 0CS进行 通信计费的流程遵循 rfc4006 (Diameter Credit Control Appl icat ion)标准, 实际上图 13中实施例在按照 SIP ( rfc3261标准) 实施的时候还涉及诸多返 回 200 0K响应消息的流程以及 SMSC向目的移动终端发送短信的流程, 但是 图 13仅用于说明本发明中如何根据软终端注册时的当前 IP进行通信计费的 方法, 所以省略流程步骤请详细参阅 SIP (rfc3261标准) , 此处不再赘述。 The process described in Figure 13 follows the SIP (rfc3261 standard) standard protocol, in which the process of communication accounting by 0CS follows the rfc4006 (Diameter Credit Control Appl Icat ion) standard. In fact, the embodiment in FIG. 13 is involved in the process of returning the 200 OK response message and the process of the SMSC sending the short message to the destination mobile terminal when implemented according to the SIP (rfc3261 standard), but FIG. 13 is only used to explain how to For the current IP address when the soft terminal is registered, the method of communication and accounting is used. Therefore, please refer to SIP (rfc3261 standard) for details of the process steps, and details are not described here.
本发明实施例二适用于 UC系统中的通信费用计算,通过判断用户个人用 户登录 UC系统时的 IP地址是否和与企业帐户绑定的 IP地址之一相同来决定 是对用户个人帐户还是企业帐户进行通信费用扣除, 计费方法简单并能有效 地实现 UC系统中通信费用的计算。  The second embodiment of the present invention is applicable to the calculation of the communication cost in the UC system, and determines whether the IP address of the user's individual user to log in to the UC system is the same as the IP address bound to the enterprise account. The communication fee is deducted, the charging method is simple, and the calculation of the communication fee in the UC system can be effectively realized.
二、 根据考勤系统记录的信息进行通信费用计算  Second, according to the information recorded by the attendance system for communication fee calculation
根据考勤系统记录的信息进行通信费用计算是指通过记录企业的用户在 考勤系统进行刷卡的记录来判断用户是否是在企业工作, 从而确定在某一时 刻用户进行通信所产生的费用应当由企业支付还是由用户个人支付。  According to the information recorded by the attendance system, the calculation of the communication fee refers to determining whether the user is working in the enterprise by recording the record of the user in the attendance system, thereby determining that the fee incurred by the user at a certain time should be paid by the enterprise. It is still paid by the user.
如图 14所示为本发明通信费用计算系统实施例二结构示意图, 本实施 例二系统是在如图 1所示的系统基础上进行了具体化, 包括:  FIG. 14 is a schematic structural diagram of Embodiment 2 of a communication fee calculation system according to the present invention. The second embodiment of the system is embodied on the system shown in FIG. 1, and includes:
考勤系统 21, 用于记录釆集企业的用户在岗状态信息;  The attendance system 21 is used for recording the status information of the users in the collection enterprise;
移动交换中心(Mobile Switch Center, MSC ) 24, 用于处理用户的语音、 短信等业务;  a Mobile Switch Center (MSC) 24, which is used to process voice, short message, and the like of the user;
月良务通用无线分组业务支持结点 ( Serving General Packet Radio Service Support Node, SGSN )以及网关通用无线分组业务支持结点( Gateway General Packet Radio Service Support Node, GGSN ) 25, 用于处理用户 彩信、无线通信协议(Wireless Application Protocol, WAP )等业务, GGSN 和 SGSN功能都相当于通信能力部件;  The General Packet Radio Service Support Node (SGSN) and the Gateway General Packet Radio Service Support Node (GGSN) 25 are used to process user MMS and wireless. For services such as the Wireless Application Protocol (WLAN), the GGSN and SGSN functions are equivalent to communication capability components;
业务控制点 (Service Control Point, SCP ) 26, 用于实现通信计费触 发装置的功能, 处理各种通信应用以及通信计费请求的触发;  Service Control Point (SCP) 26, which is used to implement the function of the communication charging trigger device, and handles triggering of various communication applications and communication charging requests;
融合计费服务器(0CS) 23, 用于接收考勤系统发送过来的用户在岗状态 信息, 用于实现用户实现存储用户在岗状态信息, 并且能够根据获取的用户 在岗状态信息进行通信计费, 用于实现通信费用计算装置的功能; 门户 (Por ta l ) 系统 22 , 是用户接入到 0CS的接口, 用于实现帐户管理 装置的功能, 通过 Por ta l可以设置个人账户以及企业账户, 可以进行企业帐 户和相关个人帐户的绑定, 并分别设置不同账户的计费规则, 当 0CS进行计 费时, 根据 Por ta l中设置的计费规则对各账户进行相应的扣费。 The Fusion Accounting Server (0CS) 23 is configured to receive the information about the status of the user sent by the attendance system, and is used to implement the information about the status of the user in the storage user, and can obtain the user according to the obtained status. The on-the-job status information is used for communication and billing, and is used to implement the function of the communication fee calculation device; the portal (Por ta l) system 22 is an interface for the user to access the 0CS, and is used to implement the function of the account management device, and can be implemented by the Por ta l Set personal account and enterprise account, you can bind enterprise account and related personal account, and set charging rules for different accounts separately. When 0CS performs charging, each account is executed according to the charging rules set in Por ta l. The corresponding deduction.
如图 15所示为本发明通信费用计算方法实施例三流程图, 包括: 步骤 301、 考勤系统获取用户的考勤信息并将该考勤信息发送到 0CS。 步骤 302、 当通信发起时, 0CS查询所述考勤信息, 并根据与该考勤信息 相对应的计费规则进行计费。  FIG. 15 is a flowchart of Embodiment 3 of a method for calculating a communication fee according to the present invention, including: Step 301: The attendance system acquires the attendance information of the user and sends the attendance information to the 0CS. Step 302: When the communication is initiated, the 0CS queries the attendance information, and performs charging according to the charging rule corresponding to the attendance information.
其中, 步骤 301具体为: 当企业的用户在考勤系统上刷卡时, 考勤系统 记录用户的考勤信息。 每个企业都有自己规定的工作时间, 例如企业规定工 作时间为 8 : 00-17: 00 , 如果用户刷卡是在 8 : 00之前一固定时间进行的, 例如是在 8 : 00之前 1小时内进行的, 则在此时间内, 不管刷了多少次卡, 刷卡系统都将该用户的考勤信息记录为 "在企业" ; 如果用户刷卡是在 17 : 00之后行的, 则在此时刻之后, 不管刷了多少次卡, 刷卡系统将该用户的考 勤信息记录为 "离开企业"; 如果用户刷卡是在 8 : 00-17: 00时间内进行的, 则考勤系统查询在当日的该时段内有无该用户的刷卡记录,如果已有此记录, 则说明该用户早退, 将该用户的考勤信息记录为 "离开企业" ; 如果在当日 的该时段内无该用户的刷卡记录, 则将该用户的考勤信息记录为 "在企业" 。 还有一种特殊情况是, 对于有的企业, 可能会要求用户加班, 这时企业需要 定义一个规定的附加工作时间, 例如规定晚上 19 : 00-21: 00为附加工作时 间, 这样虽然企业所有用户的考勤信息在 17 : 00以后均已被记录为 "离开企 业" , 但是如果用户在附加工作时间内刷了卡, 则考勤系统应当将用户的考 勤信息记录为 "在企业" , 在附加工作时间内用户发生的通信费用也应当由 企业承担。 在附加工作时间内刷卡记录规则与正常工作时间内相类似, 如果 用户刷卡是在 19 : 00之前一固定时间进行的, 例如是在 19 : 00之前 15分钟 内进行的, 则在此时间内, 不管刷了多少次卡, 考勤系统都将该用户的考勤 信息记录为 "在企业" ; 如果用户刷卡是在 21: 00之后行的, 则在此时刻之 后, 不管刷了多少次卡, 考勤系统将该用户的考勤记录为 "离开企业" ; 如 果用户刷卡是在 19: 00-21: 00时间内进行的, 则考勤系统查询在当日的该 时段内有无该用户的刷卡记录, 如果已有此记录, 将该用户的考勤信息记录 "离开企业" ; 如果在当日的该时段内无该用户的刷卡记录, 则将该用户位 置信息记录为 "在企业" 。 The step 301 is specifically as follows: When the user of the enterprise swipe the card on the attendance system, the attendance system records the attendance information of the user. Each company has its own defined working hours. For example, the company has a working time of 8: 00-17: 00. If the user swipes the card at a fixed time before 8: 00, for example, within 1 hour before 8: 00. In this time, no matter how many times the card is swiped, the card swipe system records the attendance information of the user as "in the enterprise"; if the user swipes after 17: 00, after this moment, Regardless of how many times the card is swiped, the card swipe system records the attendance information of the user as "Leaving the Enterprise"; if the user swipes the card within 8: 00-17: 00, the attendance system query has the time period of the day. There is no credit card record of the user. If the record is already present, the user is prematurely retired, and the attendance information of the user is recorded as "leave the enterprise"; if there is no credit card record of the user during the time period of the current day, the user is The attendance information is recorded as "in the enterprise". There is also a special case where, for some enterprises, users may be required to work overtime. In this case, the company needs to define a prescribed additional working time, for example, stipulate that 19: 00-21: 00 is additional working time, so that all users of the enterprise The attendance information has been recorded as "Leaving the Enterprise" after 17:00, but if the user swipes the card during the additional working hours, the attendance system should record the user's attendance information as "in the enterprise" during the additional working hours. The communication costs incurred by internal users should also be borne by the enterprise. The credit card recording rule during the additional working hours is similar to the normal working time. If the user swipes the card at a fixed time before 19: 00, for example, 15 minutes before 19: 00. In this time, no matter how many times the card is swiped, the attendance system records the attendance information of the user as "in the enterprise"; if the user swipes after 21: 00, then after this time Regardless of how many times the card is swiped, the attendance system records the attendance of the user as "Leaving the Enterprise"; if the user swipes the card within the time of 19: 00-21: 00, the attendance system query is available during the time of the day. There is no credit card record of the user. If the record is already available, the user's attendance information is recorded as "Leaving the enterprise"; if there is no credit card record of the user during the time period of the current day, the user location information is recorded as "in the enterprise"" .
考勤系统每隔一固定时间 (例如 200ms )检测一次是否有用户刷卡, 并 将用户考勤信息发送到 Portal。 Portal对该考勤信息进行鉴权, 鉴权通过后 Protal调用 0CS提供的 SOAP接口, 将该状态信息发送到 0CS, 然后 0CS更新 当前用户的考勤位置信息。  The attendance system detects whether a user swipes the card at a fixed time (for example, 200ms) and sends the user attendance information to the portal. The portal authenticates the attendance information. After the authentication is passed, Protal calls the SOAP interface provided by 0CS, and sends the status information to 0CS, and then 0CS updates the current user's attendance location information.
考勤系统发送给 Por ta 1的用户在岗状态信息如下所示:  The status information of the user sent to the Por ta 1 by the attendance system is as follows:
POST /hw-iPortalService-IPS HTTP/1.0  POST /hw-iPortalService-IPS HTTP/1.0
Content-Type: text/xml; char set=utf-8  Content-Type: text/xml; char set=utf-8
Accept: a l icat ion/ soap+xml, application/dime,  Accept: a l icat ion/ soap+xml, application/dime,
multipart/related, text/ *  Multipart/related, text/ *
User-Agent: Axi s/#axi sVer s icm#  User-Agent: Axi s/#axi sVer s icm#
Host: 10.71.102.13: 8080  Host: 10.71.102.13: 8080
Authorization: Digest rea lm=" soap, example. com",  Authorization: Digest rea lm=" soap, example. com",
nonce="47364c23432d2el31a5fb210812c",  Nonce="47364c23432d2el31a5fb210812c",
username=" sip: timecardShuawei. com " , qop=auth-int  Username=" sip: timecardShuawei. com " , qop=auth-int
Cache-Control: no-cache  Cache-Control: no-cache
Pragma: no-cache  Pragma: no-cache
SOAPAct ion: " hw.portal. Service#repor tStatus "  SOAPAct ion: " hw.portal. Service#repor tStatus "
Content-Length: 562 <?xml version="l.0" encoding="UTF-8 " ?> Content-Length: 562 <?xml version="l.0"encoding="UTF-8"?>
<soapenv: Envelope  <soapenv: Envelope
xmlns: soapenv="ht tp: II schema s. xml soap. org/ soap/ envelope/ xmlns: xsd="ht tp: //www. w3. org/2001/XMLSchema " Xmlns: soapenv="ht tp: II schema s. xml soap. org/ soap/envelope/ xmlns: xsd="ht tp: //www. w3. org/2001/XMLSchema "
xmlns: xs i = "ht tp: //www. w3. org/2001/XMLSchema-ins tance " > <soapenv: Body> Xmlns: xs i = "ht tp: //www. w3. org/2001/XMLSchema-ins tance " > <soapenv: Body>
<repor tStatus xmlns = " hw.por ta 1. Service  <repor tStatus xmlns = " hw.por ta 1. Service
<inParam xmlns=" " >  <inParam xmlns=" " >
<params xs i: ni 1 = " true" />  <params xs i: ni 1 = " true" />
<userUri>13501230008</userUri>  <userUri>13501230008</userUri>
<repor tBody>  <repor tBody>
<repor tType>l</ repor tType>  <repor tType>l</ repor tType>
<repor tName>In Company </ regis trName>  <repor tName>In Company </ regis trName>
<reportTime>20071219134212</registrTime>  <reportTime>20071219134212</registrTime>
</ repor tBody>  </ repor tBody>
</ inParam>  </ inParam>
</ reportRegister>  </ reportRegister>
</ soapenv: Body>  </ soapenv: Body>
</ soapenv: Envelope> </ soapenv: Envelope>
以上程序中, 标下划线部分 "In Company" 表示用户为在公司状态。 P 0 r t a 1返馈给考勤系统的 S 0 A P响应如下所示: In the above procedure, the underlined part "In Company" indicates that the user is in the company status. The P 0 r t a 1 S 0 A P response fed back to the attendance system is as follows:
HTTP/1.1 200 0K HTTP/1.1 200 0K
Server: HuaWei ENIP SOAP Adapter/2.0  Server: HuaWei ENIP SOAP Adapter/2.0
Connect ion: close Connect ion: close
Content-Length: 0 Content-Length: 0
Authent ica t ion-Inf o: nextnonce="e966c32a924255e42c8ee20ce7f6" Authent ica t ion-Inf o: Nextnonce="e966c32a924255e42c8ee20ce7f6"
Connect ion: close  Connect ion: close
鉴于不同的企业会有不同的考勤规定, 以上本发明实施例中所述如何记 录用户考勤仅是记录考勤信息的一例, 而非对其限制, 本实施例三中的重点 在于根据考勤系统的记录结果来判断用户是否处于在岗状态从而进行通信费 用计算。  In view of the fact that different enterprises have different attendance regulations, how to record user attendance in the above embodiment of the present invention is only an example of recording attendance information, and is not limited thereto. The focus in the third embodiment lies in the record according to the attendance system. As a result, it is judged whether the user is in an on-the-job state to perform communication fee calculation.
在进行实施例三所述的流程之前还包括企业开户、 企业管理员查询和修 改企业帐户信息、以及企业管理员查询 /添加 /修改 /删除与企业帐户相关联的 用户个人帐户的信息,与前述根据用户登录 IP地址进行通信计费方法中的企 业开户流程相同, 此处不再赘述。  Before performing the process described in the third embodiment, the enterprise account opening, the enterprise administrator query and the modification of the enterprise account information, and the enterprise administrator query/add/modify/delete the information of the user personal account associated with the enterprise account, and the foregoing The process of opening an account in the communication charging method based on the user's login IP address is the same, and is not described here.
下面以具体的企业的用户发起呼叫为例来说明如何根据刷卡系统获得的 企业的用户的考勤信息来进行通信费用计算。如图 16所示为本发明通信费用 计算方法实施例三中发起呼叫的计费方法解析示意图。 具体为:  In the following, a specific enterprise user initiated call is taken as an example to explain how to calculate the communication fee according to the attendance information of the enterprise user obtained by the card swiping system. FIG. 16 is a schematic diagram of an accounting method for initiating a call in Embodiment 3 of a method for calculating a communication fee according to the present invention. Specifically:
步骤 1501、 移动终端 A发送呼叫请求到 MSC;  Step 1501: The mobile terminal A sends a call request to the MSC.
步骤 1502、 MSC向 SCP发送初始化检出点 (Initial Detection Point, Step 1502: The MSC sends an Initial Detection Point (Initial Detection Point) to the SCP.
IDP) , IDP中含有主叫号码、 被叫号码、 号码属性能信息; IDP), IDP contains the calling number, called number, and number attribute information;
步骤 1503、 SCP在收到 IDP之后向 0CS发送第一 CCR, 用于请求 0CS进 行预扣费操作;  Step 1503: After receiving the IDP, the SCP sends a first CCR to the 0CS, and is used to request the 0CS to perform the withholding fee operation;
步骤 1504、 0CS在接收到所述第一 CCR之后, 查询考勤系统发送过来的 企业用户考勤信息进行预扣费; 如果企业的用户当前状态为 "在企业" , 则 对企业帐户进行预扣费; 如果企业的用户当前状态为 "离开企业" , 则对与 企业帐户绑定的该用户的个人帐户进行预扣费;  Steps 1504 and 0CS, after receiving the first CCR, query the enterprise user attendance information sent by the attendance system to perform a withholding fee; if the current state of the enterprise user is “in the enterprise”, the enterprise account is withholding fee; If the current status of the user of the enterprise is "Leaving the Enterprise", the personal account of the user bound to the enterprise account is withheld;
步骤 1505、 0CS向 SCP返回第一 CCA, 通知 SCP预扣费成功;  Step 1505, 0CS returns the first CCA to the SCP, and notifies the SCP that the withholding fee is successful;
步骤 1506、 SCP在收到所述第一 CCA之后, 向 MSC发送基本呼叫状态模 型事件报告请求 (Request Report Basic Call State Model Event, RRBE ) , 请求 MSC动态配置检出点 (Detection Point, DP) , MSC在以后的呼叫过 程中遇到这些 DP点时, 会上报呼叫信息给 SCP。 RRBE为 SCP控制呼叫创造了 条件。 RRBE的参数主要包括需要配置的 DP类型、 DP条件等, 一个 RRBE可以 配置多个 DP; Step 1506: After receiving the first CCA, the SCP sends a Request Report Basic Call State Model Event (RRBE) to the MSC, requesting the MSC to dynamically configure a Detection Point (DP). MSC has called in the future When these DP points are encountered in the process, the call information is reported to the SCP. RRBE creates conditions for SCP to control calls. The RRBE parameters include the DP type and DP conditions to be configured. One RRBE can be configured with multiple DPs.
步骤 1507、 SCP向 MSC发送申请计费 (Apply Charging, AC) , 申请呼 叫计费;  Step 1507: The SCP sends an Apply Charging (AC) to the MSC to apply for call accounting.
步骤 1508、 移动终端 A与移动终端 B之间进行通话; ^叚设步骤 1501中 移动终端 A是主叫, 目的移动终端 B是被叫;  Step 1508: The mobile terminal A and the mobile terminal B make a call; ^In step 1501, the mobile terminal A is the calling party, and the destination mobile terminal B is the called party;
步骤 1509、 当通话完毕后, 移动终端 A向 MSC发送用户挂机的消息; 步骤 1510、 MSC在收到用户挂机的消息后向 SCP发送计费申请报告( Apply Charging Report, ACR ) , 向 SCP上报移动终端 A与 B之间此次通信的计费 结果, 主要包括通话开始 /结束时间、 通话时长、 主叫号码、 被叫号码、 计费 号码、 费用等信息;  Step 1509: After the call is completed, the mobile terminal A sends a message that the user hangs up to the MSC. Step 1510: After receiving the message that the user hangs up, the MSC sends an Apply Charging Report (ACR) to the SCP, and reports the mobile to the SCP. The charging result of the communication between the terminals A and B mainly includes information such as the call start/end time, the call duration, the calling number, the called number, the billing number, and the fee;
步骤 1511、 MSC向 SCP发送基本呼叫状态模型事件报告 (Event Report Basic Call State Model, ERB )给 SCP;  Step 1511: The MSC sends an Event Report Basic Call State Model (ERB) to the SCP to the SCP;
步骤 1512、 SCP在收到 ERB之后释放此次呼叫;  Step 1512: The SCP releases the call after receiving the ERB.
步骤 1513、 SCP向 0CS发送第二 CCR, 该第二 CCR用于通知 0CS对步骤 1504中进行过预扣费的帐户进行扣费;  Step 1513: The SCP sends a second CCR to the 0CS, where the second CCR is used to notify the 0CS to deduct the account with the withholding fee in step 1504.
步骤 1514、 0CS向 AS发送一个第二 CCA, 用于通知 SCP扣费成功。  Step 1514: The 0CS sends a second CCA to the AS to notify the SCP that the deduction is successful.
以上步骤 1501到 1514的流程遵循移动网增强逻辑的用户应用部分协议 (Customized Applications for Mobile Network Enhanced Logic, CAP ) 、 移动应用部分协议 (Mobile Application Part, MAP ) 、 ISDN 用户应用部 分协议( ISDN User Part, I SUP) 以及 Diameter标准协议, 实际上图 15中 实施例在按照上述各标准实施的时候还涉及诸多别的流程,但是图 15仅用于 说明本发明实施例三中如何根据考勤系统获得的企业用户考勤信息来进行通 信计费, 所以省略流程步骤请详细参阅 CAP、 MAP, ISUP以及 Diameter标准, 此处不再赘述。 本发明实施例三适用于非 uc系统的普通通信系统中的通信费用计算,通 过考勤系统釆集企业用户考勤信息, 0CS根据该考勤信息以及 Por ta l中配置 的计费规则来对不同的帐户进行通信费用计算以及扣费, 计费方法简单并能 有效地实现非 UC系统中通信费用的计算。 The processes of the above steps 1501 to 1514 follow the Customized Applications for Mobile Network Enhanced Logic (CAP), the Mobile Application Part (MAP), and the ISDN User Application Part Protocol (ISDN User Part). , I SUP) and Diameter standard protocol, in fact, the embodiment in FIG. 15 is involved in many other processes when implemented according to the above various standards, but FIG. 15 is only used to explain how the third embodiment of the present invention is obtained according to the attendance system. The enterprise user attendance information is used for communication and accounting. Therefore, please refer to the CAP, MAP, ISUP, and Diameter standards for details. Please refer to it here. The third embodiment of the present invention is applicable to the calculation of the communication cost in the ordinary communication system of the non-uc system, and collects the attendance information of the enterprise user through the attendance system, and the 0CS uses different accounting policies according to the attendance information and the charging rule configured in the Por. The communication fee calculation and deduction are carried out, and the charging method is simple and can effectively calculate the communication fee in the non-UC system.
如图 Π所示为本发明通信费用计算装置实施例结构示意图,该通信费用 计算装置包括: 用户在岗状态信息接收单元 31、 计费请求接收单元 32和计 费单元 33 , 计费单元 33分别与用户在岗状态信息接收单元 31和计费请求接 收单元 32连接。 该装置的工作原理为: 用户在岗状态信息接收单元 31接收 用户在岗状态信息, 计费请求接收单元 32接收到计费请求时, 计费单元根据 接收到的用户在岗状态信息和计费请求进行通信费用计算。  FIG. 3 is a schematic structural diagram of an embodiment of a communication fee calculation apparatus according to the present invention. The communication fee calculation apparatus includes: a user on-the-job status information receiving unit 31, a billing request receiving unit 32, and a billing unit 33, and the billing unit 33 respectively The user on-the-job status information receiving unit 31 and the billing request receiving unit 32 are connected. The working principle of the device is as follows: the user status information receiving unit 31 receives the user status information, and when the charging request receiving unit 32 receives the charging request, the charging unit performs communication according to the received user status information and the charging request. Cost calculation.
图 17所示的通信费用计算装置还可以包括计费规则查询单元 34 , 该计 费规则查询单元 34用于查询不同帐户的计费规则, 供计费单元 33进行通信 费用计算时使用。  The communication fee calculation means shown in Fig. 17 may further include a charging rule inquiry unit 34 for inquiring the charging rules of different accounts for use by the charging unit 33 for calculating the communication fee.
图 18 所示为本发明通信费用计算系统实施例二结构示意图, 该系统包 括: 软交换装置(Sof tswi tch ) 41 和融合计费服务器(0CS) 42 , 该系统的工 作原理为: 软交换装置 41获取软终端注册时的互联网协议地址信息, 当软终 端发起通信时,融合计费服务器 42查询所述软终端注册时的互联网协议地址 信息, 并根据与所述互联网协议地址信息对应的计费规则进行计费。 具体地, 融合计费服务器 42当软终端发起通信时, 接收计费请求; 根据所述计费请求 查询融合计费服务器 42 自身所存储的软终端注册时的互联网协议地址信息, 并根据与所述互联网协议地址信息对应的计费规则进行计费。  FIG. 18 is a schematic structural diagram of Embodiment 2 of a communication fee calculation system according to the present invention. The system includes: a softswitch device (Sof tswi tch) 41 and a convergent billing server (0CS) 42. The working principle of the system is: a softswitch device 41. Obtaining the Internet Protocol address information when the soft terminal is registered. When the soft terminal initiates the communication, the convergent charging server 42 queries the Internet Protocol address information when the soft terminal is registered, and performs charging according to the Internet Protocol address information. Rules are billed. Specifically, the convergent charging server 42 receives the charging request when the soft terminal initiates the communication; and queries the Internet Protocol address information when the soft terminal is registered by the converged charging server 42 according to the charging request, and according to the The charging rule corresponding to the Internet Protocol address information is used for charging.
图 18 所示的系统中还可以包括接入到融合计费服务器的门户系统 ( Por ta l ) 43 , 用于管理与企业帐户和个人帐户相关的通讯终端的绑定与 去绑定, 企业帐户与发起通信的个人的个人账户之间的绑定, 以及配置企 业帐户和个人帐户的计费规则, 供所述融合计费服务器进行通信费用计算 时查询。 本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤 可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读 取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述 的存储介质包括: R0M、 RAM, 磁碟或者光盘等各种可以存储程序代码的介质。 The system shown in FIG. 18 may further include a portal system (por ta l ) 43 for accessing the convergent charging server for managing binding and debinding of the communication terminal related to the enterprise account and the personal account, and the enterprise account. The binding between the personal account of the person initiating the communication, and the charging rules for configuring the enterprise account and the personal account are queried for the calculation of the communication fee by the convergent charging server. A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The steps of the foregoing method embodiments are included; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对其 限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通技术 人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或 者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不使相应技 术方案的本质脱离本发明各实施例技术方案的精神和范围。  It should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that: The technical solutions described in the foregoing embodiments are modified, or some of the technical features are equivalently replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

权 利 要 求 书 Claim
1、 一种通信费用计算方法, 其特征在于, 包括:  A communication cost calculation method, characterized in that:
获取软终端注册时的互联网协议地址信息;  Obtaining Internet Protocol address information when the soft terminal is registered;
当软终端发起通信时, 查询所述软终端注册时的互联网协议地址信息, 并根据与所述互联网协议地址信息对应的计费规则进行计费。  When the soft terminal initiates communication, it queries the Internet Protocol address information when the soft terminal is registered, and performs charging according to the charging rule corresponding to the Internet Protocol address information.
2、 根据权利要求 1所述的通信费用计算方法, 其特征在于, 所述获取 软终端注册时的互联网协议地址信息具体为:  2. The communication fee calculation method according to claim 1, wherein the acquiring the Internet Protocol address information when the soft terminal is registered is specifically:
当软终端注册成功后, 保存软终端注册时的互联网协议地址信息。 After the soft terminal registers successfully, the Internet Protocol address information when the soft terminal is registered is saved.
3、 根据权利要求 1所述的通信费用计算方法, 其特征在于, 所述当软终 端发起通信时, 查询所述软终端注册时的互联网协议地址信息, 并根据与所 述互联网协议地址信息对应的计费规则进行计费具体为: The communication fee calculation method according to claim 1, wherein when the soft terminal initiates communication, the Internet protocol address information when the soft terminal is registered is queried, and corresponding to the Internet protocol address information. The billing rules for billing are specifically:
当软终端发起通信时, 接收计费请求;  Receiving a charging request when the soft terminal initiates communication;
根据所述计费请求查询所存储的软终端注册时的互联网协议地址信息, 并根据与所述互联网协议地址信息对应的计费规则进行计费。  And querying, according to the charging request, the stored internet protocol address information when the soft terminal is registered, and performing charging according to the charging rule corresponding to the internet protocol address information.
4、 根据权利要求 1所述的通信费用计算方法, 其特征在于, 在获取软 终端注册时的互联网协议地址信息之前还包括:将企业帐户与发起所述软终 端通信的个人的个人帐户进行绑定, 并将企业帐户与企业设定的互联网协 议地址进行绑定;  4. The communication fee calculation method according to claim 1, wherein before acquiring the Internet Protocol address information at the time of registration of the soft terminal, the method further comprises: binding the enterprise account with the personal account of the individual who initiated the communication of the soft terminal. And bind the corporate account to the Internet Protocol address set by the enterprise;
所述根据与所述互联网协议地址信息对应的计费规则进行计费具体为: 业设定的互联网协议地址之一;  The charging according to the charging rule corresponding to the Internet protocol address information is specifically: one of the Internet protocol addresses set by the industry;
如果所述软终端注册时的互联网协议地址是与企业帐户绑定的企业设 定的互联网协议地址之一, 则根据与企业帐户相关的通信费率进行通信费 用计算并对企业帐户进行费用扣除; 否则, 根据与个人帐户相关的通信费 率进行通信费用计算并对个人帐户进行费用扣除。  If the Internet Protocol address when the soft terminal is registered is one of the Internet Protocol addresses set by the enterprise bound to the enterprise account, the communication fee calculation is performed according to the communication rate associated with the enterprise account, and the fee is deducted for the enterprise account; Otherwise, the communication fee calculation is performed based on the communication rate associated with the personal account and the personal account is charged.
5、 一种通信费用计算方法, 其特征在于, 包括: 获取用户在岗状态信息; 5. A communication cost calculation method, characterized in that: Obtain information about the status of the user;
当通信发起时, 查询用户在岗状态信息, 并根据与所述用户在岗状态 信息相对应的计费规则进行计费。  When the communication is initiated, the user's on-the-job status information is queried, and the charging is performed according to the charging rule corresponding to the on-the-job status information of the user.
6、 根据权利要求 5所述的通信费用计算方法, 其特征在于, 所述获取用 户在岗状态信息具体为: 通过考勤系统获取用户在岗状态信息。  The communication fee calculation method according to claim 5, wherein the acquiring the on-the-job status information is specifically: obtaining the user status information by the attendance system.
7、根据权利要求 5所述的通信费用计算方法, 其特征在于, 所述当通信 发起时, 查询用户在岗状态信息, 并根据与所述在岗状态信息相对应的计 费规则进行计费具体为:  The communication fee calculation method according to claim 5, wherein, when the communication is initiated, the user status information is queried, and the charging is performed according to the charging rule corresponding to the on-the-job status information. :
当通信发起时, 接收计费请求;  Receiving a charging request when the communication is initiated;
根据所述计费请求查询所存储的所述用户在岗状态信息, 并根据与所述 用户在岗状态信息对应的计费规则进行计费。  The stored on-the-job status information is queried according to the charging request, and the charging is performed according to the charging rule corresponding to the user's on-the-job status information.
8、 根据权利要求 5所述的通信费用计算方法, 其特征在于, 在获取用户 在岗状态信息之前还包括: 将企业帐户与发起通信的个人的个人帐户进行 绑定;  The method for calculating a communication fee according to claim 5, further comprising: binding the enterprise account to the personal account of the individual who initiated the communication before acquiring the information of the on-the-job status of the user;
所述根据与所述用户在岗状态信息对应的计费规则进行计费具体为: 判断所述用户在岗状态信息中记录的用户位置是否是企业规定的位置; 如果是, 根据与企业帐户相关的通信费率进行通信费用计算并对企业 帐户进行费用扣除; 否则, 根据与个人帐户相关的通信费率进行通信费用 计算并对个人帐户进行费用扣除。  The charging according to the charging rule corresponding to the on-the-job status information of the user is specifically: determining whether the user location recorded in the on-the-job status information is a location specified by the enterprise; if yes, according to the communication related to the enterprise account The rate is calculated for the communication fee and the business account is deducted; otherwise, the communication fee is calculated based on the communication rate associated with the individual account and the personal account is deducted.
9、 一种通信费用计算系统, 其特征在于, 包括:  9. A communication cost calculation system, comprising:
用户在岗状态信息获取装置, 用于获取用户在岗状态信息; 通信计费触发装置, 用于检测通信终端发起的通信请求, 并发送计费 请求;  a user status information acquiring device, configured to acquire user status information; a communication charging triggering device, configured to detect a communication request initiated by the communication terminal, and send a charging request;
通信费用计算装置, 用于接收用户在岗状态信息获取装置中存储的用 户在岗状态信息, 当接收到所述计费请求时, 查询存储的用户在岗状态信 息, 进行通信费用计算。 The communication fee calculation device is configured to receive the user status information stored in the user status information acquiring device, and when receiving the charging request, query the stored user status information to perform communication fee calculation.
1 0、根据权利要求 9所述的通信费用计算系统, 其特征在于,还包括: 帐户管理装置, 用于管理与企业帐户和个人帐户相关的通讯终端的绑 定与去绑定, 企业帐户与发起通信的个人的个人账户之间的绑定, 以及配 置企业帐户和个人帐户的计费规则, 供所述通信费用计算装置进行通信费 用计算时查询。 10. The communication fee calculation system according to claim 9, further comprising: account management means for managing binding and debinding of the communication terminal related to the enterprise account and the personal account, the enterprise account and The binding between the personal accounts of the individuals initiating the communication, and the charging rules for configuring the enterprise account and the personal account are queried for the communication fee calculation device to perform the communication fee calculation.
11、 根据权利要求 10所述的通信费用计算系统, 其特征在于, 所述用户 在岗状态信息获取装置具体为软交换设备;  The communication fee calculation system according to claim 10, wherein the user status information acquiring device is specifically a soft switching device;
所述通信计费触发装置具体为通讯应用服务器;  The communication charging triggering device is specifically a communication application server;
所述通信费用计算装置具体为融合计费服务器;  The communication cost calculation device is specifically a convergent charging server;
所述帐户管理装置具体为用于接入到融合计费服务器的门户系统。  The account management device is specifically a portal system for accessing a convergent charging server.
12、 根据权利要求 10所述的通信费用计算系统, 其特征在于, 所述用户 在岗状态信息获取装置具体为考勤系统;  The communication fee calculation system according to claim 10, wherein the user status information acquisition device is specifically an attendance system;
所述通信计费触发装置具体为业务控制点;  The communication charging triggering device is specifically a service control point;
所述通信费用计算装置具体为融合计费服务器;  The communication cost calculation device is specifically a convergent charging server;
所述帐户管理装置具体为用于接入到融合计费服务器的门户系统。  The account management device is specifically a portal system for accessing a convergent charging server.
1 3、 一种通信费用计算装置, 其特征在于, 包括:  1 3, a communication cost calculation device, comprising:
用户在岗状态信息接收单元, 用于接收用户在岗状态信息;  The user status information receiving unit is configured to receive the user status information;
计费请求接收单元, 用于接收通信计费触发装置发送的通信计费请求; 计费单元, 分别与所述用户在岗状态信息接收单元、 计费请求接收单元 连接, 用于根据所述计费请求接收单元接收到的计费请求、 用户在岗状态信 息接收单元接收到的用户在岗状态信息进行通信费用计算。  a charging request receiving unit, configured to receive a communication charging request sent by the communication charging triggering device; the charging unit is respectively connected to the user status information receiving unit and the charging request receiving unit, and configured to perform charging according to the The charging request received by the request receiving unit and the user status information received by the user status information receiving unit are used to calculate the communication fee.
14、 根据权利要求 1 3所述的通信费用计算装置, 其特征在于, 还包括: 计费规则查询单元, 用于查询不同帐户的计费规则, 供所述计费单元进 行通信费用计算时使用。  The communication fee calculation device according to claim 13, further comprising: a charging rule query unit, configured to query charging rules of different accounts, and use the charging unit to perform communication cost calculation .
15、 一种通信费用计算系统, 其特征在于, 包括:  15. A communication cost calculation system, comprising:
软交换装置, 用于获取软终端注册时的互联网协议地址信息; 融合计费服务器, 用于当软终端发起通信时, 查询所述软终端注册时的 互联网协议地址信息, 并根据与所述互联网协议地址信息对应的计费规则进 行计费。 a softswitch device, configured to obtain Internet protocol address information when the soft terminal is registered; The convergent charging server is configured to query the Internet Protocol address information when the soft terminal is registered when the soft terminal initiates communication, and perform charging according to the charging rule corresponding to the internet protocol address information.
16、 根据权利要求 15所述的通信费用计算系统, 其特征在于, 所述融合 计费服务器具体用于当软终端发起通信时, 接收计费请求; 根据所述计费请 求查询所存储的软终端注册时的互联网协议地址信息, 并根据与所述互联网 协议地址信息对应的计费规则进行计费。  The communication fee calculation system according to claim 15, wherein the convergent charging server is specifically configured to: when the soft terminal initiates communication, receive a charging request; and query the stored soft according to the charging request. The Internet Protocol address information at the time of terminal registration, and charging according to the charging rule corresponding to the Internet Protocol address information.
17、 根据权利要求 16所述的通信费用计算系统, 其特征在于, 还包括: 接入到融合计费服务器的门户系统,用于管理与企业帐户和个人帐户相 关的通讯终端的绑定与去绑定, 企业帐户与发起通信的个人的个人账户之 间的绑定, 以及配置企业帐户和个人帐户的计费规则, 供所述融合计费服 务器进行通信费用计算时查询。  17. The communication fee calculation system according to claim 16, further comprising: a portal system connected to the convergent charging server, configured to manage binding and deciding of communication terminals related to the enterprise account and the personal account. The binding, the binding between the enterprise account and the personal account of the individual who initiated the communication, and the charging rules for configuring the enterprise account and the personal account are queried for the calculation of the communication fee by the convergent charging server.
PCT/CN2009/070812 2008-03-17 2009-03-16 Method, system and device for calculating communication expenses WO2009115028A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810102060.9 2008-03-17
CNA2008101020609A CN101247240A (en) 2008-03-17 2008-03-17 Communication charge calculation method, system and device

Publications (1)

Publication Number Publication Date
WO2009115028A1 true WO2009115028A1 (en) 2009-09-24

Family

ID=39947472

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/070812 WO2009115028A1 (en) 2008-03-17 2009-03-16 Method, system and device for calculating communication expenses

Country Status (2)

Country Link
CN (1) CN101247240A (en)
WO (1) WO2009115028A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113114864A (en) * 2021-04-12 2021-07-13 浙江百应科技有限公司 VOIP voice call real-time charging system and method

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247240A (en) * 2008-03-17 2008-08-20 华为技术有限公司 Communication charge calculation method, system and device
CN102316424A (en) * 2011-03-04 2012-01-11 华为软件技术有限公司 Information charging method, terminal and server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859137A (en) * 2006-03-30 2006-11-08 华为技术有限公司 Charging device and method
CN1866840A (en) * 2005-09-23 2006-11-22 华为技术有限公司 Charging method and system in wireless access network
CN1968507A (en) * 2006-03-08 2007-05-23 华为技术有限公司 Mobile terminal positioning method and system
CN101247240A (en) * 2008-03-17 2008-08-20 华为技术有限公司 Communication charge calculation method, system and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866840A (en) * 2005-09-23 2006-11-22 华为技术有限公司 Charging method and system in wireless access network
CN1968507A (en) * 2006-03-08 2007-05-23 华为技术有限公司 Mobile terminal positioning method and system
CN1859137A (en) * 2006-03-30 2006-11-08 华为技术有限公司 Charging device and method
CN101247240A (en) * 2008-03-17 2008-08-20 华为技术有限公司 Communication charge calculation method, system and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113114864A (en) * 2021-04-12 2021-07-13 浙江百应科技有限公司 VOIP voice call real-time charging system and method

Also Published As

Publication number Publication date
CN101247240A (en) 2008-08-20

Similar Documents

Publication Publication Date Title
Hakala et al. Diameter credit-control application
KR101101015B1 (en) Third party charging for sip sessions
JP4629679B2 (en) Method and system for free internet protocol communication service
EP1871084A1 (en) Method and system for third party charging
US20040243490A1 (en) Method and system for performing a financial transaction in a mobile communications system
US20090076952A1 (en) Variable charging assignment for multi-service environments
CN102067513A (en) Centralized charging system and method for offline and online charging
CN1701591A (en) Charging in a communication system
CN101803276B (en) Subscription and charge notice control
WO2009115028A1 (en) Method, system and device for calculating communication expenses
WO2006066508A1 (en) A call controlling method and system, business operation supporting system and service controlling point
KR101194611B1 (en) System and method for reporting an expiry of the limited fare
KR100621203B1 (en) Method and system for controlling wireless data service for prepaid and limited subscriber
CN101572954B (en) Method, device and system for releasing session
WO2015196818A1 (en) Method and apparatus for sending short message
Lin et al. Charging for Mobile All-IP Telecommunications
CN102036209A (en) Method and device for identity authentication and charging of mobile interconnection network user
WO2011015154A1 (en) Method, device and system for releasing resources
CN101998323B (en) Policy and charging control-based redirection method and device
WO2007062545A1 (en) A method for accessing the caller terminal to prepaid service system
KR101001210B1 (en) Prepaid-card communication method and system of private mobilecommunication service system
KR101081097B1 (en) Call control component collection of communication device identification information for internet protocol endpoint
US20150011181A1 (en) System and method to support mediation of ocs diameter/ro reauthorization on gsm camel networks
US8923275B2 (en) Providing service information for charging a subscriber for a service
Bertz et al. Diameter Credit-Control Application

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09721914

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09721914

Country of ref document: EP

Kind code of ref document: A1