WO2013185681A1 - 一种ussd服务器、hlr服务器和基于ussd的通话转移方法 - Google Patents

一种ussd服务器、hlr服务器和基于ussd的通话转移方法 Download PDF

Info

Publication number
WO2013185681A1
WO2013185681A1 PCT/CN2013/080027 CN2013080027W WO2013185681A1 WO 2013185681 A1 WO2013185681 A1 WO 2013185681A1 CN 2013080027 W CN2013080027 W CN 2013080027W WO 2013185681 A1 WO2013185681 A1 WO 2013185681A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
call transfer
ussd
call
module
Prior art date
Application number
PCT/CN2013/080027
Other languages
English (en)
French (fr)
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 WO2013185681A1 publication Critical patent/WO2013185681A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/42Systems providing special services or facilities to subscribers
    • H04M3/54Arrangements for diverting calls for one subscriber to another predetermined subscriber
    • H04M3/548Arrangements for diverting calls for one subscriber to another predetermined subscriber with remote control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]

Definitions

  • the present invention relates to the field of communications, and in particular, to an unstructured Supplementary Data Service (USSD) server, a Home Location Register (HLR) server, and a USSD-based call transfer method.
  • USSD unstructured Supplementary Data Service
  • HLR Home Location Register
  • the purpose of the embodiment of the present invention is to provide a USSD server, an HLR server, and a USSD-based call transfer method, which can enable a user to use the current terminal to control a terminal that is temporarily not in use to enable or disable the call transfer function.
  • An unstructured supplementary data service USSD server includes a first receiving module, an analyzing module, an instruction generating module, and a first sending module, where:
  • the first receiving module is configured to: receive a USSD instruction string sent by the first terminal in sequence through the mobile switching center, the unstructured supplementary data service USSD gateway, or the USSD center;
  • the parsing module is configured to: parse the USSD instruction string to obtain an analysis result; the instruction generating module is configured to: when the parsing result indicates that the USSD instruction string is all legal, according to the USSD instruction The string generates a call transfer control instruction; The first sending module is configured to: send the call transfer control command to a home location register HLR server, so that the HLR server identifies the call transfer state of the second terminal according to the call transfer control instruction, and according to The identified call transfer status of the second terminal processes a call to the second terminal.
  • the USSD instruction string includes at least: a call transfer state control field, an identifier field of the second terminal, and an authentication field of the second terminal;
  • the call transfer control instruction includes the first terminal identifier, the second terminal identifier, and the call transfer status information.
  • the parsing module includes a first obtaining module, a first determining module, a second obtaining module, a second determining module, a third obtaining module, and a third determining module, where:
  • the first obtaining module is configured to: obtain the call transfer state control field; the first determining module is configured to: determine whether the call transfer state control field is legal, and obtain a first determination result;
  • the second obtaining module is configured to: when the first determination result indicates that the call transfer control field is legal, obtain an identifier field of the second terminal;
  • the second determining module is configured to: determine the validity of the identifier field of the second terminal, and obtain a second determination result;
  • the third acquiring module is configured to: indicate, in the second determining result, the second terminal When the identifier field is legal, the authentication field of the second terminal is obtained;
  • the third determining module is configured to: determine a validity of an authentication field of the second terminal according to a pre-stored correspondence between a terminal identifier and a terminal authentication field, to obtain a third determination result; When the judgment result indicates that the authentication field of the second terminal is legal, the first successful result is returned;
  • the command generating module is configured to generate a call transfer control command according to the following manner: when the third determination result indicates that the authentication field of the second terminal is legal, respectively, according to the call transfer state control field, the second The identifier field of the terminal determines the call forwarding state information, the second terminal identifier, and confirms that the first terminal identifier of the USSD command string is sent, and generates the first terminal identifier, the second terminal identifier, and the call transfer state information.
  • the call transfer control instruction is included in the USSD server.
  • the USSD server further includes a second sending module, where:
  • the second sending module is configured to: form the first message by the parsing result, and send the message to the short message platform through the USSD gateway or the USSD center and the mobile switching center, so that the short message platform can A message is sent to the first terminal and/or the second terminal.
  • the call transfer status information is: turning the call transfer on or off.
  • a home location register HLR server includes a second receiving module, an identity module, and a processing module, where:
  • the second receiving module is configured to: receive a call transfer control command sent by the unstructured supplementary data service USSD server; the call transfer control command includes a first terminal identifier, a second terminal identifier, and call transition state information;
  • the identifier module is configured to: identify a call transfer state of the second terminal according to the call transfer control instruction;
  • the processing module is configured to: process the call to the second terminal according to the identified call transfer status of the second terminal.
  • the identifier module is configured to identify a call transfer state of the second terminal according to the call transfer control instruction according to the following manner: setting a flag bit, and causing the flag position to be bitwise or cleared according to the call transfer state control command Identifying a call transfer status of the second terminal, where: the call transfer information is a flag position and points to the first terminal when the call transfer is initiated; and the flag bit is cleared when the call transfer information is a closed call transfer .
  • the processing module includes a fourth determining module and a processing sub-module, where: the fourth determining module is configured to: when receiving a call request to call the second terminal, determine, by the second terminal Whether the flag bit is set, and a fourth judgment result is obtained;
  • the processing sub-module is configured to: when the fourth determination result indicates that the flag bit of the second terminal has been set, the call request for calling the second terminal is forwarded according to the direction of the flag bit, otherwise Call transfer processing is not performed.
  • a call transfer method based on the unstructured supplementary data service USSD is used for a USSD server, and the call transfer method includes:
  • the USSD instruction string includes at least: a call transfer state control field, an identifier field of the second terminal, and an authentication field of the second terminal;
  • the call transfer control instruction includes the first terminal identifier, the second terminal identifier, and the call transfer status information.
  • the step of parsing the USSD instruction string to obtain an analysis result includes:
  • the authentication field of the second terminal is obtained
  • the call transfer method further includes:
  • the parsing result is formed into a first message, which is sent to the short message platform by the USSD gateway or the USSD center and the mobile switching center, so that the short message platform can send the first message to the first terminal and / or the second terminal.
  • the call transfer status information is: turning the call transfer on or off.
  • the call transfer control command includes a first terminal identifier, a second terminal identifier, and call transfer status information
  • the call to the second terminal is processed according to the identified call transfer status of the second terminal.
  • the step of identifying, according to the call transfer control instruction, the call transfer status of the second terminal includes:
  • the flag position is located and directed to the first terminal; when the call transfer information is the closed call transfer, the flag bit is cleared.
  • the calling the second according to the call forwarding state of the second terminal that is identified The steps of the terminal's call processing include:
  • the call request for calling the second terminal is forwarded according to the direction of the flag bit, otherwise the call transfer process is not performed.
  • the user can use the current terminal to control the terminal that is temporarily not in the hand to enable or disable the call transfer function;
  • the original telecom operation architecture is not changed, and only the operator needs to construct a USSD server or cooperate with a third-party service provider to implement the value-added service; the call transfer and the eavesdropping of the terminal call information ensure that The security of the call transfer setting is avoided to avoid being used by illegal elements.
  • the call transfer function can be canceled through the corresponding menu in the terminal.
  • FIG. 1 is a schematic structural diagram of a USSD server according to an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of an HLR server according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a USSD-based call transfer method for an USSD server according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of a USSD-based call transfer method for an HLR server according to an embodiment of the present invention
  • FIG. 5 is a schematic flowchart of the USSD server parsing a USSD instruction string in the embodiment of the present invention
  • FIG. 6 is a schematic flowchart of a function of closing a call transfer function of a terminal according to an embodiment of the present invention. Preferred embodiment of the invention
  • USSD is a data interactive session method developed on the basis of GSM short message system, which has higher transmission rate and stronger interactivity than short message service.
  • the current application range of the USSD technology is very broad and mature, and is the main technology used in the embodiments of the present invention.
  • the embodiment of the present invention provides a USSD server, as shown in FIG. 1, including a first receiving module 101, a parsing module 102, an instruction generating module 103, and a first sending module 104, where:
  • the first receiving module 101 is configured to: receive a USSD instruction string sent by the first terminal in sequence through the mobile switching center, the unstructured supplementary data service USSD gateway or the USSD center;
  • the parsing module 102 is configured to: parse the USSD instruction string to obtain an analysis result; the instruction generation module 103 is configured to: when the parsing result indicates that the USSD instruction string is all legal, according to the USSD instruction string Generating a call transfer control command;
  • the first sending module 104 is configured to: send the call transfer control command to an HLR server, so that the HLR server identifies a call transfer state of the second terminal according to the call transfer control instruction, and according to the identifier The call transfer status of the second terminal processes the call to the second terminal.
  • the first terminal sends a USSD command string to a mobile switching center, and the mobile switching center sends the USSD command string to the USSD server through a USSD gateway or a USSD center, and is received by the first receiving module 101. ;
  • the parsing module 102 then parses the received USSD instruction string to obtain an analysis result of the validity of the USSD instruction string.
  • the instruction generation module 103 generates a call transfer control instruction only when all of the USSD instruction strings are legal;
  • the first sending module 104 sends the call transfer control command to an HLR server, so that the HLR server identifies the call transfer status of the second terminal according to the call transfer control instruction, and according to the identifier Call forwarding status of the two terminals to call the second terminal The call is processed.
  • the embodiment of the present invention provides the USSD server, which can facilitate the remote control call transfer when the mobile phone is lost or missed, so that the terminal user does not contact the interrupted friend, and does not change the original telecommunication operation architecture, and only needs the operator's own architecture.
  • a value-added service can be implemented by working with a USSD server or with a third-party service provider.
  • the USSD instruction string includes at least: a call transfer state control field, an identifier field of the second terminal, and an authentication field of the second terminal;
  • the call transfer control instruction includes the first terminal identifier, the second terminal identifier, and the call transfer status information.
  • the module 102 includes a first obtaining module, a first determining module, a second obtaining module, a second determining module, a third obtaining module, and a third determining module, where:
  • the first obtaining module is configured to: obtain the call transfer state control field; the first determining module is configured to: determine whether the call transfer state control field is legal, and obtain a first determination result;
  • the second obtaining module is configured to: when the first determination result indicates that the call transfer control field is legal, obtain an identifier field of the second terminal;
  • the second determining module is configured to: determine validity of the identifier field of the second terminal, and obtain a second determination result;
  • the third obtaining module is configured to: obtain an authentication field of the second terminal when the second determining result indicates that the identifier field of the second terminal is legal;
  • the third determining module is configured to: determine a validity of an authentication field of the second terminal according to a pre-stored correspondence between a terminal identifier and a terminal authentication field, to obtain a third determination result; When the judgment result indicates that the authentication field of the second terminal is legal, the first successful result is returned;
  • the command generating module 103 is configured to generate a call transfer control instruction according to the following manner: when the third determination result indicates that the authentication field of the second terminal is legal, respectively, according to the call The transfer status control field, the identifier field of the second terminal, the call transfer status information, the second terminal identifier, and the first terminal identifier that sends the USSD command string, and the first terminal identifier, The second terminal identifier and the call transfer status information generate the call transfer control instruction.
  • the USSD server provided by the embodiment of the present invention first determines whether the call transfer state control field belongs to a function string for enabling call transfer, that is, whether the call transfer state control field is legal, and if not, the second is not acquired.
  • the identification field of the terminal directly returns the first failure result;
  • the identifier field of the second terminal is obtained, and the legality of the identifier field is determined. If not, the authentication field of the second terminal is not obtained, and the second terminal is directly returned to the second.
  • the result of the failure where the identifier field is the number of the second terminal, or other information that can uniquely identify the second terminal; when the identifier field of the second terminal is legal, the second terminal is obtained.
  • the right field, and judges the validity of the authentication field returns the first successful result when it is legal, and returns the third failure result when it is invalid.
  • the USSD server needs to have the authentication database support to implement the service, and the terminal is saved in the database.
  • the correspondence between the identifier and the terminal authentication field, where the authentication field may be the service password of the terminal.
  • the command generating module 103 generates a call transfer control command according to the USSD command string only when the third determination result indicates that the authentication field of the second terminal is legal.
  • the USSD server prevents the illegal user from opening the call forwarding of the terminal without the knowledge of the terminal user by judging the validity of the authentication field of the second terminal, and eavesdropping the terminal call.
  • the information ensures the security of the call transfer settings and avoids being used by illegal elements.
  • the USSD server may also set the number of times the same terminal identifier is operated within a certain period of time, that is, the same terminal identifier cannot be operated multiple times within a period of time, and the USSD is exceeded after a specified number of times. The server automatically refuses to serve it.
  • terminal A continuously sends the USSD command for malicious purposes, attempting to crack the service password of terminal B or overloading the USSD server, so terminal A sends The server automatically refuses service after more than 3 times.
  • the terminal user After obtaining the parsing result, the terminal user should be notified in time, so that the user can confirm whether the sent USSD command string is successfully parsed by the USSD server. If the failure should inform the user of the reason for the failure, the USSD server may further include the second sending. Module:
  • the second sending module is configured to: form the first message by the parsing result, and send the message to the short message platform through the USSD gateway or the USSD center and the mobile switching center, so that the short message platform can A message is sent to the first terminal and/or the second terminal.
  • the USSD server sends the analysis result to the first message, and sends the result to the mobile switching center through the USSD gateway or the USSD center, and sends the message to the short message platform, and the short message platform returns the analysis result to the a first terminal and/or a second terminal, where, when the parsing result indicates that the USSD instruction string is invalid, the corresponding failure result is returned to the first terminal, so that the first terminal user can confirm the failure reason.
  • Saving the network resource may not inform the second terminal; when the back parsing result indicates that the USSD instruction string is legal, the first successful result is sent to the first terminal, and the second terminal is notified, the short message content may be: "When the first terminal opens the call forwarding function of the second terminal, please close the service in time" to notify the user that the call transfer is successful, and the user of the second terminal can also know when the second terminal is acquired again.
  • the second terminal has been opened by the background to transfer the call, and can check whether it is the user's own operation, this can The short message is obtained by the short message, because the short message must be included in the short message, and the user can judge whether to input the legal behavior. If the user's service password is stolen, the user can know the mobile phone service password according to the short message. Stolen and phone calls are eavesdropped, and illegal users can be tracked back.
  • the call transfer status information may be to enable or disable the call transfer, and determine whether to open or close the call transfer by using the call transfer status control field in the USSD command string.
  • the USSD server in the embodiment of the present invention refers to a service provider, and the server may be configured by the operator to parse the USSD command character, or may be provided by a third party, and the third-party service provider may reach an agreement with the network operator. , rent its database and network, this database should provide the target mobile phone number and user service password verification, the information is correct before the corresponding service can be provided.
  • An embodiment of the present invention further provides an HLR server, as shown in FIG. 2, including a second receiving mode.
  • Block 201, identification module 202, and processing module 203 wherein:
  • the second receiving module 201 is configured to: receive a call transfer control command sent by the USSD server; the call transfer control command includes a first terminal identifier, a second terminal identifier, and a call transfer status information.
  • the identification module 202 is configured to: identify, according to the call transfer control instruction, a call transfer state of the second terminal;
  • the processing module 203 is configured to: process the call to the second terminal according to the identified call transfer status of the second terminal.
  • the identifier module 202 identifies a call transfer state of the second terminal according to the call transfer control command received by the second receiving module 201, and the processing module 203 calls the call according to the identified call transfer state of the second terminal. The call of the second terminal is processed.
  • the identifier module 202 is configured to identify, according to the call transfer control instruction, a call transfer state of the second terminal according to the following manner: setting a flag bit, and causing the flag position according to the call transfer state control command Bit or clear to identify the call transfer status of the second terminal, where:
  • the flag position is located and directed to the first terminal; when the call transfer information is the closed call transfer, the flag bit is cleared.
  • the flag bit indicates that the second terminal has turned on the call transfer service, and when the flag bit is cleared, the second terminal closes the call transfer.
  • the processing module 203 includes a fourth determining module and a processing submodule, where:
  • the fourth determining module is configured to: determine, when the call request of the second terminal is received, whether the flag bit of the second terminal is set, to obtain a fourth determination result;
  • the processing sub-module is configured to: when the fourth determination result indicates that the flag bit of the second terminal has been set, the call request for calling the second terminal is forwarded according to the direction of the flag bit, otherwise Call transfer processing is not performed.
  • the HLR server determines the second end when receiving a call to the second terminal. Whether the flag of the terminal is set, when set, the call request to the second terminal is forwarded according to the direction of the flag bit, that is, the call is transferred and transferred to the first terminal; when the flag is cleared, it is not required The call transfer process is performed. At this time, the call transfer function of the second terminal is turned on or off by the first terminal, that is, when the mobile phone is not around, the call transfer function is implemented by another mobile phone.
  • the call forwarding is divided into all the calls, the busy transfer, and the unanswered transfer.
  • the HLR server needs to transfer all the calls in the background, and the call transfer in other situations, such as busy transfer, cannot be normally implemented.
  • the transfer, the unattended transfer also gives the contact an illusion that the user of the second terminal cannot be contacted in time, so the HLR server in the embodiment of the present invention enables all calls to be transferred by default.
  • the call forwarding function can be implemented by the above process.
  • the call forwarding function of the second terminal is turned off, there are two implementation modes:
  • ⁇ Method 1> The user of the second terminal obtains the second terminal, and checks the short message notification to know that the second terminal has opened the call transfer function, and the user can enter the setting menu at this time, and then enter the call setting menu inside, and cancel the call. Transfer menu, through this menu, the user can cancel the call transfer function of the second terminal, at this time, the flag bit P in the HLR server is cleared, all the phones of the second terminal are not transferred, and the call returns to normal;
  • the embodiment of the present invention further provides a USSD-based call forwarding method, which is used in a USSD server, as shown in FIG. 3, and includes the following steps:
  • Step 31 Receive the first terminal sequentially through the mobile switching center, and the unstructured supplementary data service
  • Step 32 Parse the USSD instruction string to obtain an analysis result.
  • Step 33 when the parsing result indicates that the USSD instruction string is all legal, according to the The USSD instruction string generates a call transfer control instruction
  • Step 34 Send the call transfer control command to an HLR server, so that the HLR server identifies the call transfer status of the second terminal according to the call transfer control instruction, and according to the identified call of the second terminal The transfer status processes the call to the second terminal.
  • the USSD instruction string includes at least: a call transfer state control field, an identifier field of the second terminal, and an authentication field of the second terminal;
  • the call transfer control instruction includes the first terminal identifier, the second terminal identifier, and the call transfer status information.
  • step 32 may include steps 321-3210:
  • Step 321 Obtain the call transfer state control field.
  • Step 322 determining whether the call transfer state control field is legal, obtaining a first determination result, if the law proceeds to step 323, otherwise proceeds to step 324;
  • Step 323 Obtain an identifier field of the second terminal.
  • Step 324 returning a first failure result
  • Step 325 determining the validity of the identifier field of the second terminal, obtaining a second determination result, if the law proceeds to step 326, otherwise proceeds to step 327;
  • Step 326 Obtain an authentication field of the second terminal.
  • Step 327 returning a second failure result
  • Step 328 Determine a legality of the authentication field of the second terminal according to the correspondence between the pre-stored terminal identifier and a terminal authentication field, and obtain a third determination result. If the process proceeds to step 329, the process proceeds to step 3210. ;
  • Step 329 returning a first successful result
  • step 3210 a third failure result is returned.
  • Step 33 when the third determination result indicates that the authentication field of the second terminal is legal, determining call transfer state information according to the call transfer state control field and the identifier field of the second terminal, respectively. And identifying, by the second terminal identifier, the first terminal identifier that sends the USSD command string, and generating the first terminal identifier, the second terminal identifier, and the call transfer state information. Call transfer control command.
  • the foregoing method further includes:
  • Step 35 The parsing result is formed into a first message, and is sent to the short message platform by the USSD gateway or the USSD center and the mobile switching center, so that the short message platform can send the first message to the first message. a terminal and/or the second terminal.
  • the call transfer status information is: turning on or off the call transfer.
  • the embodiment of the present invention further provides a call forwarding method based on USSD, which is used in an HLR server. As shown in FIG. 4, the method includes the following steps:
  • Step 41 Receive a call transfer control command sent by the USSD server, where the call transfer control command includes a first terminal identifier, a second terminal identifier, and call transfer state information.
  • Step 42 Identify, according to the call transfer control instruction, a call transfer state of the second terminal.
  • Step 43 Process a call to the second terminal according to the identified call transfer state of the second terminal.
  • step 42 may include:
  • the flag position is located and directed to the first terminal; when the call transfer information is the closed call transfer, the flag bit is cleared.
  • step 43 specifically includes steps 431-432:
  • Step 431 When receiving a call request for calling the second terminal, determining whether the flag bit of the second terminal is set, and obtaining a fourth determination result;
  • Step 432 when the fourth determination result indicates that the flag bit of the second terminal has been set, the call request for calling the second terminal is forwarded according to the direction of the flag bit, otherwise the call transfer process is not performed.
  • the above process will be specifically described below in conjunction with the actual situation, as shown in FIG.
  • the mobile phone A obtained by the user sends a USSD string through the mobile phone A, wherein the string is: *123+15751563375+06490#;
  • the USSD string analysis server starts the corresponding analysis program to analyze the string from left to right. First, read the first four digits *123, and determine whether the first four digits belong to the function string for turning on the call transfer. If the kinetic energy string fails to be read, The sending failure command is returned to the USSD gateway;
  • 15751563375 is the number of mobile phone B, to determine whether it is a legitimate mobile phone number
  • the analyzer will continue to read the mobile phone service password, and 06490 is the user service password of the mobile phone B.
  • the legality judgment of the service password is determined by the AUC authentication center;
  • the central office receives the USSD string and sends the USSD string to the USSD server.
  • the USSD server analyzes the string, checks for legality, and handles possible situations.
  • the parsing result is sent to the USSD gateway, and the USSD gateway sends the result to the mobile service switching center MSC, and the operation result message is reported to the mobile phone A and the mobile phone B through the SMS platform linked thereto;
  • a register P of the HLR register is set, and the call to the mobile phone B will be transferred to the mobile phone A;
  • ⁇ Method 1> As shown in Figure 6, the user obtains the mobile phone B and views the short message notification to know that the mobile phone B has opened the call transfer function. The user can enter the setting menu at this time, and then enter the call setting menu inside, and cancel the call. Transfer menu, through this menu, the user can cancel the call transfer function of mobile phone B. At this time, the flag bit P in the HLR server is cleared, all the calls of the call B are not transferred to the mobile phone A, and the call returns to normal;
  • the embodiment of the present invention can realize the most urgently needed requirement of the user with minimal cost, so that the user's call contact will not be interrupted if the mobile phone is lost or forgotten.
  • the user can use the current terminal to control the terminal that is temporarily not in the hand to enable or disable the call transfer function; and without changing the original telecommunication operation architecture, the operator only needs to construct a USSD server or a third-party service provider. Cooperation can realize this value-added service; it can prevent illegal users from opening the terminal's call transfer without the knowledge of the end user, eavesdropping the terminal's call information, ensuring the security of the call transfer setting and avoiding the use of illegal elements; After that, cancel the call transfer function through the corresponding menu in the terminal. Therefore, the present invention has strong industrial applicability.

Landscapes

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

Abstract

一种USSD服务器、HLR服务器和基于USSD的通话转移方法,其中,所述USSD服务器包括:第一接收模块设置成:接收第一终端依次经过移动交换中心、USSD网关或USSD中心发送的USSD指令字串;解析模块设置成:对所述USSD指令字串进行解析,获得解析结果;指令生成模块设置成:在所述解析结果指示所述USSD指令字串全部合法时,根据所述USSD指令字串生成通话转移控制指令;第一发送模块设置成:将所述通话转移控制指令发送给HLR服务器。上述技术方案可以让用户使用当前终端控制暂时不在手上的终端开启或关闭通话转移功能。

Description

一种 USSD服务器、 HLR服务器和基于 USSD的通话转移方法
技术领域
本发明涉及通信领域, 尤其涉及一种非结构化补充数据业务(USSD, Unstructured Supplementary Service Data )月良务器、 归属位置哥存器 ( HLR, Home Location Register )服务器和基于 USSD的通话转移方法。
背景技术
随着手机的普及, 几乎人手一部手机, 人与人之间的联系几乎都是通过 手机, 如果手机用户无法接听或不愿接听电话时, 会开启通话转移功能。 传 统的通话转移技术是手机必须在自己的身边, 通过相应的菜单才能开通或关 闭通话转移, 一旦因某些情况手机不在身边, 比如说手机被盗或者手机遗忘 在家, 通话转移功能就无法实现。 发明内容
本发明实施例的目的是提供一种 USSD 服务器、 HLR服务器和基于 USSD 的通话转移方法, 可以让用户使用当前终端控制暂时不在手上的终端 开启或关闭通话转移功能。
为实现上述目的, 釆用如下技术方案:
一种非结构化补充数据业务 USSD服务器, 包括第一接收模块、 解析模 块、 指令生成模块和第一发送模块, 其中:
所述第一接收模块设置成: 接收第一终端依次经过移动交换中心、 非结 构化补充数据业务 USSD网关或 USSD中心发送的 USSD指令字串;
所述解析模块设置成:对所述 USSD指令字串进行解析,获得解析结果; 所述指令生成模块设置成: 在所述解析结果指示所述 USSD指令字串全 部合法时, 根据所述 USSD指令字串生成通话转移控制指令; 所述第一发送模块设置成: 将所述通话转移控制指令发送给一归属位置 寄存器 HLR服务器, 使得所述 HLR服务器根据所述通话转移控制指令标识 所述第二终端的通话转移状态, 并根据标识的所述第二终端的通话转移状态 对呼叫所述第二终端的通话进行处理。
可选地, 所述 USSD指令字串至少包括: 通话转移状态控制字段、 第二 终端的标识字段和第二终端的鉴权字段;
所述通话转移控制指令包括所述第一终端标识、 所述第二终端标识和通 话转移状态信息。
可选地, 所述解析模块包括第一获取模块、 第一判断模块、 第二获取模 块、 第二判断模块、 第三获取模块和第三判断模块, 其中:
所述第一获取模块设置成: 获取所述通话转移状态控制字段; 所述第一判断模块设置成: 判断所述通话转移状态控制字段是否合法, 获得第一判断结果;
所述第二获取模块设置成: 在所述第一判断结果指示所述通话转移控制 字段合法时, 获取所述第二终端的标识字段;
所述第二判断模块设置成: 判断所述第二终端的标识字段的合法性, 获 得第二判断结果; 所述第三获取模块设置成: 在所述第二判断结果指示所述第二终端的标 识字段合法时, 获取所述第二终端的鉴权字段;
所述第三判断模块设置成: 根据预存的一终端标识与一终端鉴权字段的 对应关系, 判断所述第二终端的鉴权字段的合法性, 获得一第三判断结果; 在所述第三判断结果指示所述第二终端的鉴权字段合法时, 返回第一成 功结果;
所述指令生成模块设置成按照如下方式生成通话转移控制指令: 在所述 第三判断结果指示所述第二终端的鉴权字段合法时, 分别根据所述通话转移 状态控制字段、 所述第二终端的标识字段确定通话转移状态信息、 所述第二 终端标识, 并确认发送所述 USSD指令字串的第一终端标识, 将所述第一终 端标识、 第二终端标识和通话转移状态信息生成所述通话转移控制指令。 可选地, 该 USSD服务器还包括第二发送模块, 其中:
所述第二发送模块设置成: 将所述解析结果形成第一消息, 依次通过所 述 USSD网关或 USSD中心、 所述移动交换中心发送到短信平台, 使得所述 短信平台能够将所述第一消息发送给所述第一终端和 /或所述第二终端。
可选地, 所述通话转移状态信息为: 开启或关闭通话转移。
一种归属位置寄存器 HLR服务器, 包括第二接收模块、标识模块和处理 模块, 其中:
所述第二接收模块设置成: 接收非结构化补充数据业务 USSD服务器发 送的通话转移控制指令; 所述通话转移控制指令包括第一终端标识、 第二终 端标识和通话转移状态信息;
所述标识模块设置成: 根据所述通话转移控制指令标识第二终端的通话 转移状态;
所述处理模块设置成: 4艮据标识的所述第二终端的通话转移状态对呼叫 所述第二终端的通话进行处理。
可选地, 所述标识模块设置成按照如下方式根据所述通话转移控制指令 标识第二终端的通话转移状态: 设置一标志位, 根据所述通话转移状态控制 指令使得标志位置位或清零来标识所述第二终端的通话转移状态, 其中: 所述通话转移信息为开启通话转移时,标志位置位并指向所述第一终端; 所述通话转移信息为关闭通话转移时, 标志位清零。
可选地, 所述处理模块包括第四判断模块和处理子模块, 其中: 所述第四判断模块设置成: 在接收到呼叫所述第二终端的通话请求时, 判断所述第二终端的标志位是否置位, 获得一第四判断结果;
所述处理子模块设置成: 在所述第四判断结果指示所述第二终端的标志 位已经置位时, 将呼叫所述第二终端的通话请求根据标志位的指向进行通话 转移处理, 否则不进行通话转移处理。 一种基于非结构化补充数据业务 USSD的通话转移方法, 用于一 USSD 服务器, 该通话转移方法包括:
接收第一终端依次经过移动交换中心、 非结构化补充数据业务 USSD网 关或 USSD中心发送的 USSD指令字串;
对所述 USSD指令字串进行解析, 获得解析结果;
在所述解析结果指示所述 USSD指令字串全部合法时, 根据所述 USSD 指令字串生成通话转移控制指令;
将所述通话转移控制指令发送给一归属位置寄存器 HLR服务器,使得所 述 HLR服务器根据所述通话转移控制指令标识所述第二终端的通话转移状 态, 并根据标识的所述第二终端的通话转移状态对呼叫所述第二终端的通话 进行处理。
可选地, 所述 USSD指令字串至少包括: 通话转移状态控制字段、 第二 终端的标识字段和第二终端的鉴权字段;
所述通话转移控制指令包括所述第一终端标识、 所述第二终端标识和通 话转移状态信息。
可选地, 所述对所述 USSD指令字串进行解析, 获得解析结果的步骤包 括:
获取所述通话转移状态控制字段;
判断所述通话转移状态控制字段是否合法 , 获得第一判断结果; 在所述第一判断结果指示所述通话转移控制字段合法时, 获取所述第二 终端的标识字段;
判断所述第二终端的标识字段的合法性, 获得第二判断结果;
在所述第二判断结果指示所述第二终端的标识字段合法时, 获取所述第 二终端的鉴权字段;
根据预存的一终端标识与一终端鉴权字段的对应关系, 判断所述第二终 端的鉴权字段的合法性, 获得一第三判断结果;
在所述第三判断结果指示所述第二终端的鉴权字段合法时, 返回第一成 功结果;
所述在所述解析结果指示所述 USSD 指令字串全部合法时, 根据所述 USSD指令字串生成通话转移控制指令具体为在所述第三判断结果指示所述 第二终端的鉴权字段合法时, 分别根据所述通话转移状态控制字段、 所述第 二终端的标识字段确定通话转移状态信息、 所述第二终端标识, 并确认发送 所述 USSD指令字串的第一终端标识, 将所述第一终端标识、 第二终端标识 和通话转移状态信息生成所述通话转移控制指令。
可选地, 该通话转移方法还包括:
将所述解析结果形成第一消息,依次通过所述 USSD网关或 USSD中心、 所述移动交换中心发送到短信平台 , 使得所述短信平台能够将所述第一消息 发送给所述第一终端和 /或所述第二终端。
可选地, 所述通话转移状态信息为: 开启或关闭通话转移。
一种基于非结构化补充数据业务 USSD的通话转移方法, 用于一归属位 置寄存器 HLR服务器, 包括:
接收 USSD服务器发送的通话转移控制指令; 所述通话转移控制指令包 括第一终端标识、 第二终端标识和通话转移状态信息;
根据所述通话转移控制指令标识第二终端的通话转移状态;
根据标识的所述第二终端的通话转移状态对呼叫所述第二终端的通话进 行处理。
可选地, 所述根据所述通话转移控制指令标识所述第二终端的通话转移 状态的步骤包括:
设置一标志位, 根据所述通话转移状态控制指令使得标志位置位或清零 来标识所述第二终端的通话转移状态, 其中:
所述通话转移信息为开启通话转移时,标志位置位并指向所述第一终端; 所述通话转移信息为关闭通话转移时, 标志位清零。
可选地, 所述根据标识的所述第二终端的通话转移状态对呼叫所述第二 终端的通话进行处理的步骤包括:
在接收到呼叫所述第二终端的通话请求时, 判断所述第二终端的标志位 是否置位, 获得一第四判断结果;
在所述第四判断结果指示所述第二终端的标志位已经置位时, 将呼叫所 述第二终端的通话请求根据标志位的指向进行通话转移处理, 否则不进行通 话转移处理。
本发明实施例具有以下有益效果:
本发明实施例中, 用户可以使用当前终端控制暂时不在手上的终端开启 或关闭通话转移功能;
本发明实施例中, 不改变原有的电信运营架构, 只需要运营商自行架构 一个 USSD服务器或者和第三方服务提供商合作就可以实现此增值业务; 通话转移, 窃听终端通话信息, 确保了在进行通话转移设置时的安全性, 避 免被非法份子利用; 能后, 可以在获得所述终端后, 通过终端里的相应菜单取消通话转移功能。 附图概述
图 1为本发明实施例中一种 USSD服务器的结构示意图;
图 2为本发明实施例中一种 HLR服务器的结构示意图;
图 3为本发明实施例中一种用于一 USSD服务器的基于 USSD的通话转 移方法的流程示意图;
图 4为本发明实施例中一种用于一 HLR服务器的基于 USSD的通话转 移方法的流程示意图;
图 5为本发明实施例中 USSD服务器解析一 USSD指令字串的流程示意 图;
图 6为本发明实施例中一种关闭终端通话转移功能的流程示意图。 本发明的较佳实施方式
为使本发明实施例要解决的技术问题、 技术方案和优点更加清楚, 下面 将结合附图及具体实施例进行详细描述。
目前, USSD是在 GSM短消息系统基础上开发的数据交互会话方式,具 有比短消息服务更高的传输速率和更强的交互性。 USSD技术当前应用范围 非常广, 也比较成熟, 是本发明实施例中主要釆用的技术。
本发明实施例提供了一种 USSD服务器, 如图 1所示, 包括第一接收模 块 101、 解析模块 102、 指令生成模块 103和第一发送模块 104, 其中:
第一接收模块 101设置成: 接收第一终端依次经过移动交换中心、 非结 构化补充数据业务 USSD网关或 USSD中心发送的 USSD指令字串;
解析模块 102设置成:对所述 USSD指令字串进行解析,获得解析结果; 指令生成模块 103设置成: 在所述解析结果指示所述 USSD指令字串全 部合法时, 根据所述 USSD指令字串生成通话转移控制指令;
第一发送模块 104设置成:将所述通话转移控制指令发送给一 HLR服务 器,使得所述 HLR服务器根据所述通话转移控制指令标识所述第二终端的通 话转移状态, 并根据标识的所述第二终端的通话转移状态对呼叫所述第二终 端的通话进行处理。
第一终端发送一 USSD指令字串给一移动交换中心, 所述移动交换中心 通过一 USSD网关或 USSD中心将所述 USSD指令字串发送到所述 USSD服 务器, 由所述第一接收模块 101接收;
然后由所述解析模块 102对接收到的所述 USSD指令字串进行解析, 获 得所述 USSD指令字串合法性的解析结果;
所述指令生成模块 103只在所述的 USSD指令字串全部合法时生成一通 话转移控制指令;
所述第一发送模块 104将所述通话转移控制指令发送给一 HLR服务器, 使得所述 HLR服务器根据所述通话转移控制指令标识所述第二终端的通话 转移状态, 并根据标识的所述第二终端的通话转移状态对呼叫所述第二终端 的通话进行处理。
本发明实施例提供所述 USSD服务器, 可以方便用户在手机丟失或者遗 漏时遥控通话转移, 使得终端用户不会和中断好友的联系, 同时不改变原有 的电信运营架构, 只需要运营商自行架构一个 USSD服务器或者和第三方服 务提供商合作就可以实现此增值业务。
其中, 所述 USSD指令字串至少包括: 通话转移状态控制字段、 第二终 端的标识字段和第二终端的鉴权字段;
所述通话转移控制指令包括所述第一终端标识、 所述第二终端标识和通 话转移状态信息。
对应的, 在对所述 USSD指令字串合法性进行解析时, 应该依次判断所 述通话转移状态控制字段、 第二终端的标识字段和第二终端的鉴权字段的合 法性, 即所述解析模块 102包括第一获取模块、 第一判断模块、 第二获取模 块、 第二判断模块、 第三获取模块和第三判断模块, 其中:
所述第一获取模块设置成: 获取所述通话转移状态控制字段; 所述第一判断模块设置成: 判断所述通话转移状态控制字段是否合法, 获得第一判断结果;
所述第二获取模块设置成: 在所述第一判断结果指示所述通话转移控制 字段合法时, 获取所述第二终端的标识字段;
所述第二判断模块设置成: 判断所述第二终端的标识字段的合法性, 获 得第二判断结果;
所述第三获取模块设置成: 在所述第二判断结果指示所述第二终端的标 识字段合法时, 获取所述第二终端的鉴权字段;
所述第三判断模块设置成: 根据预存的一终端标识与一终端鉴权字段的 对应关系, 判断所述第二终端的鉴权字段的合法性, 获得一第三判断结果; 在所述第三判断结果指示所述第二终端的鉴权字段合法时, 返回第一成 功结果;
所述指令生成模块 103设置成按照如下方式生成通话转移控制指令: 在 所述第三判断结果指示所述第二终端的鉴权字段合法时, 分别根据所述通话 转移状态控制字段、 所述第二终端的标识字段确定通话转移状态信息、 所述 第二终端标识, 并确认发送所述 USSD指令字串的第一终端标识, 将所述第 一终端标识、第二终端标识和通话转移状态信息生成所述通话转移控制指令。
本发明实施例提供的 USSD服务器, 首先判断所述通话转移状态控制字 段是否属于开启通话转移的功能字串, 即所述通话转移状态控制字段是否合 法, 如果不合法就不再获取所述第二终端的标识字段, 直接返回第一失败结 果;
在所述通话转移状态控制字段合法时, 获取所述第二终端的标识字段, 并判断标识字段的合法性,如果不合法就不再获取所述第二终端的鉴权字段, 直接返回第二失败结果, 这里的标识字段可以为所述第二终端的号码, 或其 它可以唯一标识所述第二终端的信息; 在所述第二终端的标识字段合法时, 获取所述第二终端的鉴权字段, 并 判断鉴权字段的合法性, 合法时返回第一成功结果, 不合法时返回第三失败 结果, 所述 USSD服务器要实现此业务需要有鉴权数据库支持, 数据库里面 保存的是终端标识与终端鉴权字段的对应关系, 这里的鉴权字段可以为终端 的服务密码,
一般依靠 AUC鉴权中心来判断;
所述指令生成模块 103只在第三判断结果指示所述第二终端的鉴权字段 合法时, 根据所述 USSD指令字串生成一通话转移控制指令。
上述任何一步的失败都会导致此次操作失败, 所述 USSD服务器通过判 断第二终端的鉴权字段的合法性, 来预防不法用户在终端用户不知情的情况 下开启终端的通话转移, 窃听终端通话信息, 确保了在进行通话转移设置时 的安全性, 避免被非法份子利用。
同时, 为了防止拒绝服务攻击, 所述 USSD服务器还可以设置在一段时 间内对同一终端标识进行操作的次数, 即同样一个终端标识不能在一段时间 内多次被操作, 超过规定次数后所述 USSD服务器自动拒绝为其提供服务。
例如: 终端 A的用户出于恶性目的, 连续不断的发送 USSD指令, 企图 破解终端 B的服务密码或者使 USSD服务器超负荷至瘫痪,所以终端 A发送 超过 3次后服务器自动拒绝服务。
在获得解析结果后, 应及时告知终端用户, 以便用户确认发送的 USSD 指令字串是否成功被所述 USSD服务器解析,如果失败应告知用户失败原因, 因此, 所述 USSD服务器还可以包括第二发送模块:
所述第二发送模块设置成: 将所述解析结果形成第一消息, 依次通过所 述 USSD网关或 USSD中心、 所述移动交换中心发送到短信平台, 使得所述 短信平台能够将所述第一消息发送给所述第一终端和 /或所述第二终端。
所述 USSD服务器将解析结果形成第一消息, 通过所述 USSD 网关或 USSD 中心发送到所述移动交换中心, 由所述移动交换中心发送到一短信平 台, 所述短信平台将解析结果返回所述第一终端和 /或第二终端, 其中, 在解 析结果指示所述 USSD指令字串不合法时, 返回相应的失败结果给所述第一 终端, 方便第一终端用户确认失败原因, 此时为节省网络资源可以不告知第 二终端; 在返解析结果指示所述 USSD指令字串合法时, 将第一成功结果发 送到所述第一终端, 同时告知所述第二终端, 短信内容可以为: "所述第一 终端在何时开启了所述第二终端的通话转移功能, 请及时关闭此服务" , 通 知用户通话转移成功, 当第二终端的用户再次获取到第二终端时也可以获知 第二终端已经被后台开启通话转移, 并且可以检查是否是用户自己的操作, 这个可以通过短信来获知, 因为发送给第二终端的短信中必须含第一终端的 号码, 通过这个号码用户可以判断是否输入合法行为, 如果用户的服务密码 被盗用,用户根据这个短信可以获知手机服务密码被盗并且手机通话被窃听, 可以反向追踪非法用户。
上述通话转移状态信息可以为开启或关闭通话转移, 通过所述 USSD指 令字串中的通话转移状态控制字段来确定开启或关闭通话转移。
本发明实施例所述的 USSD服务器是指服务提供商, 可以由运营商自行 架构该服务器, 用以解析 USSD命令字符, 也可以由第三方提供, 第三方服 务提供商可以和网络运营商达成协议, 租用其数据库和网络, 此数据库要提 供目标手机号码以及用户服务密码的验证,信息正确后才能提供相应的服务。
本发明实施例还提供了一种 HLR服务器,如图 2所示, 包括第二接收模 块 201、 标识模块 202和处理模块 203 , 其中:
第二接收模块 201设置成:接收 USSD服务器发送的通话转移控制指令; 所述通话转移控制指令包括第一终端标识、 第二终端标识和通话转移状态信 息
标识模块 202设置成: 根据所述通话转移控制指令标识所述第二终端的 通话转移状态;
处理模块 203设置成: 根据标识的所述第二终端的通话转移状态对呼叫 所述第二终端的通话进行处理。 所述标识模块 202根据所述第二接收模块 201接收到的通话转移控制指 令标识所述第二终端的通话转移状态, 所述处理模块 203根据标识的所述第 二终端的通话转移状态对呼叫所述第二终端的通话进行处理。
其中, 可选地, 所述标识模块 202设置成按照如下方式根据所述通话转 移控制指令标识所述第二终端的通话转移状态: 设置一标志位, 根据所述通 话转移状态控制指令使得标志位置位或清零来标识所述第二终端的通话转移 状态, 其中:
所述通话转移信息为开启通话转移时,标志位置位并指向所述第一终端; 所述通话转移信息为关闭通话转移时, 标志位清零。
通过在所述 HLR服务器中设置一标志位,来标识终端是否开启或关闭通 话转移, 标志位置位时标志第二终端已经开启了通话转移服务, 标志位清零 时标志第二终端关闭通话转移。
其中, 可选地, 所述处理模块 203包括第四判断模块和处理子模块, 其 中:
所述第四判断模块设置成: 在接收到呼叫所述第二终端的通话请求时, 判断所述第二终端的标志位是否置位, 获得一第四判断结果;
所述处理子模块设置成: 在所述第四判断结果指示所述第二终端的标志 位已经置位时, 将呼叫所述第二终端的通话请求根据标志位的指向进行通话 转移处理, 否则不进行通话转移处理。
所述 HLR服务器在收到呼叫所述第二终端的通话时 ,会判断所述第二终 端的标志位是否置位, 置位时会将呼叫所述第二终端的通话请求根据标志位 的指向进行通话转移处理, 即进行通话转移, 转移到第一终端; 标志位清零 时, 不需要进行通话转移处理, 此时就实现了通过第一终端开启或关闭第二 终端的通话转移功能, 即实现当手机不在身边时, 通过另一手机实现通话转 移功能。
一般的通话转移分为转移所有通话, 遇忙转移和无人接听时转移, 本发 明实施例中 HLR服务器要后台开通的是转移所有通话,其他情况的通话转移 比如遇忙转移是无法正常实现通话转移的, 无人接听时转移也给联系人一种 错觉,无法及时联系的上第二终端的用户,所以本发明实施例中的 HLR服务 器默认开启转移所有的通话。
开启通话转移功能可以由上述过程实现, 在关闭第二终端的通话转移功 能时有两种实现方式:
<方式一 >第二终端的用户获取到第二终端, 查看短信通知了解到第二终 端已经开启了通话转移功能, 用户此时可以进入设置菜单, 再进入里面的通 话设置菜单, 里面有取消通话转移的菜单, 通过此菜单, 用户可以取消第二 终端的通话转移功能, 此时 HLR服务器中的标志位 P清零, 所有第二终端 的电话不会被转移, 通话恢复正常;
<方式二 >如果第二终端用户并没有获取第二终端, 但是依然想关闭第二 终端的通话转移服务, 此时需要通过用户获取到的第一终端发送 USSD命令 来实现。 这个过程和开启的过程相似, 不同的是 USSD服务器分析 USSD字 串后,会将 HLR服务器中的标志位清零,此时呼叫第二终端的电话恢复正常 通信。
本发明实施例还提供了一种基于 USSD的通话转移方法, 用于一 USSD 服务器, 如图 3所示, 包括如下步骤:
步骤 31 , 接收第一终端依次经过移动交换中心、 非结构化补充数据业务
USSD网关或 USSD中心发送的 USSD指令字串;
步骤 32, 对所述 USSD指令字串进行解析, 获得解析结果;
步骤 33 , 在所述解析结果指示所述 USSD指令字串全部合法时, 根据所 述 USSD指令字串生成通话转移控制指令;
步骤 34,将所述通话转移控制指令发送给一 HLR服务器,使得所述 HLR 服务器根据所述通话转移控制指令标识所述第二终端的通话转移状态, 并根 据标识的所述第二终端的通话转移状态对呼叫所述第二终端的通话进行处理。
其中, 所述 USSD指令字串至少包括: 通话转移状态控制字段、 第二终 端的标识字段和第二终端的鉴权字段;
所述通话转移控制指令包括所述第一终端标识、 所述第二终端标识和通 话转移状态信息。
其中, 可选地, 步骤 32可以包括步骤 321-3210:
步骤 321 , 获取所述通话转移状态控制字段;
步骤 322 , 判断所述通话转移状态控制字段是否合法, 获得一第一判断 结果, 如果合法进入步骤 323 , 否则进入步骤 324;
步骤 323 , 获取所述第二终端的标识字段;
步骤 324, 返回一第一失败结果;
步骤 325 , 判断所述第二终端的标识字段的合法性, 获得一第二判断结 果, 如果合法进入步骤 326 , 否则进入步骤 327;
步骤 326, 获取所述第二终端的鉴权字段;
步骤 327 , 返回一第二失败结果;
步骤 328 , 根据预存的一终端标识与一终端鉴权字段的对应关系, 判断 所述第二终端的鉴权字段的合法性, 获得一第三判断结果, 如果合法进入步 骤 329, 否则进入步骤 3210;
步骤 329, 返回一第一成功结果;
步骤 3210, 返回一第三失败结果。
其中步骤 33在所述第三判断结果指示所述第二终端的鉴权字段合法时, 分别根据所述通话转移状态控制字段、 所述第二终端的标识字段确定通话转 移状态信息、 所述第二终端标识, 并确认发送所述 USSD指令字串的第一终 端标识, 将所述第一终端标识、 第二终端标识和通话转移状态信息生成所述 通话转移控制指令。
其中, 可选地, 上述方法还包括:
步骤 35 , 将所述解析结果形成第一消息, 依次通过所述 USSD 网关或 USSD 中心、 所述移动交换中心发送到短信平台, 使得所述短信平台能够将 所述第一消息发送给所述第一终端和 /或所述第二终端。
其中, 可选地, 上述方法中, 所述通话转移状态信息为: 开启或关闭通 话转移。
本发明实施例还提供了一种基于 USSD 的通话转移方法, 用于一 HLR 服务器, 如图 4所示, 包括如下步骤:
步骤 41 ,接收 USSD服务器发送的通话转移控制指令; 所述通话转移控 制指令包括第一终端标识、 第二终端标识和通话转移状态信息;
步骤 42,根据所述通话转移控制指令标识所述第二终端的通话转移状态; 步骤 43 ,根据标识的所述第二终端的通话转移状态对呼叫所述第二终端 的通话进行处理。
其中, 可选地, 步骤 42可以包括:
设置一标志位, 根据所述通话转移状态控制指令使得标志位置位或清零 来标识所述第二终端的通话转移状态, 其中:
所述通话转移信息为开启通话转移时,标志位置位并指向所述第一终端; 所述通话转移信息为关闭通话转移时, 标志位清零。
其中, 可选地, 步骤 43具体包括步骤 431-432:
步骤 431 , 在接收到呼叫所述第二终端的通话请求时, 判断所述第二终 端的标志位是否置位, 获得一第四判断结果;
步骤 432 ,在所述第四判断结果指示所述第二终端的标志位已经置位时, 将呼叫所述第二终端的通话请求根据标志位的指向进行通话转移处理, 否则 不进行通话转移处理。
下面结合实际具体说明上述过程, 如图 5所示。 用户获取到的手机 A,通过手机 A发送一 USSD字串,其中,该字串为: *123+15751563375+06490#;
USSD字串分析服务器启动相应的分析程序从左到右分析此字串, 首先 读取前四位 *123 , 判断前四位是否属于开启通话转移的功能字串, 如果读取 动能字串失败则发送失败指令返回给 USSD网关;
如否则继续往下读取 11位的手机号码, 15751563375是手机 B的号码, 判断是否是合法的手机号码;
如果手机号码合法, 分析器将继续往下读取手机服务密码, 06490 是手 机 B的用户服务密码, 此次服务密码的合法性判断要依靠 AUC鉴权中心来 判断;
如果一致则继续读字串, 否则发送短信通知手机 A操作失败密码正确的 话分析器会继续往下读取字符,读取到 #, 此次分析就成功结束了, 否则任何 一步的失败都会导致此次操作失败。
为了防止拒绝服务攻击, 同样一个号码不能一段时间内多次被操作, 比 如说手机 A处于恶性目的,连续不断的发送 USSD指令,企图破解手机 B的 服务密码或者使 USSD服务器超负荷至瘫痪,所以手机 A发送超过 3次后服 务器自动拒绝分析服务, 短信平台会发短信告诉用户发送超过 3次, 请稍后 再试。
在上述过程中,局端接收该 USSD字串,并将该 USSD字串发送至 USSD 服务器;
USSD服务器分析该字串, 进行合法性检查, 并对可能出现的情况进行 处理;
解析结束后将解析结果发送至 USSD网关, USSD网关将结果发送至移 动业务交换中心 MSC,通过与之链接的短信平台将操作结果短信告之手机 A 和手机 B;
如果是请求开启通话转移功能,则将 HLR寄存器的一个寄存器 P置位, 此时呼叫手机 B的电话将被转移手机 A;
关闭此类通话转移功能, 有两种方式: <方式一 >如图 6所示, 用户获取到手机 B, 查看短信通知了解到手机 B 已经开启了通话转移功能, 用户此时可以进入设置菜单, 再进入里面的通话 设置菜单, 里面有取消通话转移的菜单, 通过此菜单, 用户可以取消手机 B 的通话转移功能, 此时 HLR服务器中的标志位 P清零, 所有呼叫 B的电话 不会被转移到手机 A, 通话恢复正常;
<方式二 >如果用户并没有获取手机 B,但是依然想关闭手机 B的通话转 移服务, 此时需要通过用户获取到的手机 A发送 USSD命令来实现。 这个过 程和开启的过程相似, 不同的是 USSD服务器分析 USSD字串后,会将 HLR 服务器中的标志位清零, 此时呼叫手机 B的电话恢复正常通信, 短信平台发 送操作结果短信告之手机 A和手机 B, 至此通话转移功能将会被关闭, 以此 来实现手机 A通过 USSD来遥控关闭手机 B的通话转移。
本发明实施例可以以最小的代价实现用户最为急需的需求, 使得用户通 话联系在手机丟失或者遗忘的情况下不会被中断。
以上所述是本发明的优选实施方式, 应当指出, 对于本技术领域的普通 技术人员来说, 在不脱离本发明所述原理的前提下, 还可以做出若干改进和 润饰, 这些改进和润饰也应视为本发明的保护范围。
工业实用性
上述技术方案中, 用户可以使用当前终端控制暂时不在手上的终端开启 或关闭通话转移功能; 且不改变原有的电信运营架构, 只需要运营商自行架 构一个 USSD服务器或者和第三方服务提供商合作就可以实现此增值业务; 可以预防不法用户在终端用户不知情的情况下开启终端的通话转移, 窃听终 端通话信息,确保了在进行通话转移设置时的安全性,避免被非法份子利用; 终端后, 通过终端里的相应菜单取消通话转移功能。 因此本发明具有很强的 工业实用性。

Claims

权利要求书
1. 一种非结构化补充数据业务 USSD服务器, 包括第一接收模块、 解析 模块、 指令生成模块和第一发送模块, 其中: 所述第一接收模块设置成: 接收第一终端依次经过移动交换中心、 非结 构化补充数据业务 USSD网关或 USSD中心发送的 USSD指令字串;
所述解析模块设置成:对所述 USSD指令字串进行解析,获得解析结果; 所述指令生成模块设置成: 在所述解析结果指示所述 USSD指令字串全 部合法时, 根据所述 USSD指令字串生成通话转移控制指令;
所述第一发送模块设置成: 将所述通话转移控制指令发送给一归属位置 寄存器 HLR服务器, 使得所述 HLR服务器根据所述通话转移控制指令标识 所述第二终端的通话转移状态, 并根据标识的所述第二终端的通话转移状态 对呼叫所述第二终端的通话进行处理。
2. 根据权利要求 1所述的 USSD服务器, 其中:
所述 USSD指令字串至少包括: 通话转移状态控制字段、 第二终端的标 识字段和第二终端的鉴权字段;
所述通话转移控制指令包括所述第一终端标识、 所述第二终端标识和通 话转移状态信息。
3.如权利要求 2所述的 USSD服务器, 其中, 所述解析模块包括第一获 取模块、 第一判断模块、 第二获取模块、 第二判断模块、 第三获取模块和第 三判断模块, 其中:
所述第一获取模块设置成: 获取所述通话转移状态控制字段; 所述第一判断模块设置成: 判断所述通话转移状态控制字段是否合法, 获得第一判断结果;
所述第二获取模块设置成: 在所述第一判断结果指示所述通话转移控制 字段合法时, 获取所述第二终端的标识字段;
所述第二判断模块设置成: 判断所述第二终端的标识字段的合法性, 获 得第二判断结果; 所述第三获取模块设置成: 在所述第二判断结果指示所述第二终端的标 识字段合法时, 获取所述第二终端的鉴权字段;
所述第三判断模块设置成: 根据预存的一终端标识与一终端鉴权字段的 对应关系, 判断所述第二终端的鉴权字段的合法性, 获得一第三判断结果; 在所述第三判断结果指示所述第二终端的鉴权字段合法时, 返回第一成 功结果;
所述指令生成模块设置成按照如下方式生成通话转移控制指令: 在所述 第三判断结果指示所述第二终端的鉴权字段合法时, 分别根据所述通话转移 状态控制字段、 所述第二终端的标识字段确定通话转移状态信息、 所述第二 终端标识, 并确认发送所述 USSD指令字串的第一终端标识, 将所述第一终 端标识、 第二终端标识和通话转移状态信息生成所述通话转移控制指令。
4. 如权利要求 1所述的 USSD服务器,该 USSD服务器还包括第二发送 模块, 其中:
所述第二发送模块设置成: 将所述解析结果形成第一消息, 依次通过所 述 USSD网关或 USSD中心、 所述移动交换中心发送到短信平台, 使得所述 短信平台能够将所述第一消息发送给所述第一终端和 /或所述第二终端。
5. 如权利要求 2所述的 USSD服务器, 其中, 所述通话转移状态信息 为: 开启或关闭通话转移。
6. 一种归属位置寄存器 HLR服务器, 包括第二接收模块、 标识模块和 处理模块, 其中:
所述第二接收模块设置成: 接收非结构化补充数据业务 USSD服务器发 送的通话转移控制指令; 所述通话转移控制指令包括第一终端标识、 第二终 端标识和通话转移状态信息;
所述标识模块设置成: 根据所述通话转移控制指令标识第二终端的通话 转移状态;
所述处理模块设置成: 4艮据标识的所述第二终端的通话转移状态对呼叫 所述第二终端的通话进行处理。
7. 如权利要求 6所述的 HLR服务器, 其中, 所述标识模块设置成按照 如下方式根据所述通话转移控制指令标识第二终端的通话转移状态: 设置一 标志位, 根据所述通话转移状态控制指令使得标志位置位或清零来标识所述 第二终端的通话转移状态, 其中: 所述通话转移信息为开启通话转移时,标志位置位并指向所述第一终端; 所述通话转移信息为关闭通话转移时, 标志位清零。
8. 如权利要求 7所述的 HLR服务器, 其中, 所述处理模块包括第四判 断模块和处理子模块, 其中:
所述第四判断模块设置成: 在接收到呼叫所述第二终端的通话请求时, 判断所述第二终端的标志位是否置位, 获得一第四判断结果;
所述处理子模块设置成: 在所述第四判断结果指示所述第二终端的标志 位已经置位时, 将呼叫所述第二终端的通话请求根据标志位的指向进行通话 转移处理, 否则不进行通话转移处理。
9. 一种基于非结构化补充数据业务 USSD 的通话转移方法, 用于一 USSD服务器, 该通话转移方法包括:
接收第一终端依次经过移动交换中心、 非结构化补充数据业务 USSD网 关或 USSD中心发送的 USSD指令字串;
对所述 USSD指令字串进行解析, 获得解析结果;
在所述解析结果指示所述 USSD指令字串全部合法时, 根据所述 USSD 指令字串生成通话转移控制指令;
将所述通话转移控制指令发送给一归属位置寄存器 HLR服务器,使得所 述 HLR服务器根据所述通话转移控制指令标识所述第二终端的通话转移状 态, 并根据标识的所述第二终端的通话转移状态对呼叫所述第二终端的通话 进行处理。
10. 根据权利要求 9所述的基于 USSD的通话转移方法, 其中: 所述 USSD指令字串至少包括: 通话转移状态控制字段、 第二终端的标 识字段和第二终端的鉴权字段;
所述通话转移控制指令包括所述第一终端标识、 所述第二终端标识和通 话转移状态信息。
11.如权利要求 10所述的基于 USSD的通话转移方法, 其中, 所述对所 述 USSD指令字串进行解析, 获得解析结果的步骤包括:
获取所述通话转移状态控制字段;
判断所述通话转移状态控制字段是否合法, 获得第一判断结果; 在所述第一判断结果指示所述通话转移控制字段合法时, 获取所述第二 终端的标识字段;
判断所述第二终端的标识字段的合法性, 获得第二判断结果;
在所述第二判断结果指示所述第二终端的标识字段合法时, 获取所述第 二终端的鉴权字段;
根据预存的一终端标识与一终端鉴权字段的对应关系, 判断所述第二终 端的鉴权字段的合法性, 获得一第三判断结果;
在所述第三判断结果指示所述第二终端的鉴权字段合法时, 返回第一成 功结果;
所述在所述解析结果指示所述 USSD 指令字串全部合法时, 根据所述
USSD指令字串生成通话转移控制指令具体为在所述第三判断结果指示所述 第二终端的鉴权字段合法时, 分别根据所述通话转移状态控制字段、 所述第 二终端的标识字段确定通话转移状态信息、 所述第二终端标识, 并确认发送 所述 USSD指令字串的第一终端标识, 将所述第一终端标识、 第二终端标识 和通话转移状态信息生成所述通话转移控制指令。
12. 如权利要求 9所述的基于 USSD的通话转移方法, 该通话转移方法 还包括:
将所述解析结果形成第一消息,依次通过所述 USSD网关或 USSD中心、 所述移动交换中心发送到短信平台, 使得所述短信平台能够将所述第一消息 发送给所述第一终端和 /或所述第二终端。
13. 如权利要求 10所述的 USSD服务器, 其中, 所述通话转移状态信 息为: 开启或关闭通话转移。
14. 一种基于非结构化补充数据业务 USSD的通话转移方法, 用于一归 属位置寄存器 HLR服务器, 包括:
接收 USSD服务器发送的通话转移控制指令; 所述通话转移控制指令包 括第一终端标识、 第二终端标识和通话转移状态信息;
根据所述通话转移控制指令标识第二终端的通话转移状态;
根据标识的所述第二终端的通话转移状态对呼叫所述第二终端的通话进 行处理。
15.如权利要求 14所述的基于 USSD的通话转移方法, 其中, 所述根据 所述通话转移控制指令标识所述第二终端的通话转移状态的步骤包括:
设置一标志位, 根据所述通话转移状态控制指令使得标志位置位或清零 来标识所述第二终端的通话转移状态, 其中:
所述通话转移信息为开启通话转移时,标志位置位并指向所述第一终端; 所述通话转移信息为关闭通话转移时, 标志位清零。
16. 如权利要求 15所述的基于 USSD的通话转移方法, 其中, 所述根据 标识的所述第二终端的通话转移状态对呼叫所述第二终端的通话进行处理的 步骤包括:
在接收到呼叫所述第二终端的通话请求时, 判断所述第二终端的标志位 是否置位, 获得一第四判断结果;
在所述第四判断结果指示所述第二终端的标志位已经置位时, 将呼叫所 述第二终端的通话请求根据标志位的指向进行通话转移处理, 否则不进行通 话转移处理。
PCT/CN2013/080027 2012-10-15 2013-07-24 一种ussd服务器、hlr服务器和基于ussd的通话转移方法 WO2013185681A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210389730.6A CN102905241B (zh) 2012-10-15 2012-10-15 一种ussd服务器、hlr服务器和基于ussd的通话转移方法
CN201210389730.6 2012-10-15

Publications (1)

Publication Number Publication Date
WO2013185681A1 true WO2013185681A1 (zh) 2013-12-19

Family

ID=47577238

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/080027 WO2013185681A1 (zh) 2012-10-15 2013-07-24 一种ussd服务器、hlr服务器和基于ussd的通话转移方法

Country Status (2)

Country Link
CN (1) CN102905241B (zh)
WO (1) WO2013185681A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102905241B (zh) * 2012-10-15 2015-12-16 中兴通讯股份有限公司 一种ussd服务器、hlr服务器和基于ussd的通话转移方法
CN104125550B (zh) * 2014-06-23 2018-11-30 小米科技有限责任公司 通信转移方法、终端、服务器及系统
CN106488421B (zh) * 2015-08-28 2020-02-14 中国移动通信集团公司 一种规避误设置无效前转号码的方法和装置
CN107277864A (zh) * 2016-04-06 2017-10-20 中兴通讯股份有限公司 重定向方法、服务商、非结构化补充数据业务中心及系统
CN109151743B (zh) * 2017-06-13 2022-05-10 中兴通讯股份有限公司 一种呼叫转移的方法、设备和系统

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1228898A (zh) * 1996-06-24 1999-09-15 艾利森公司 在移动电信系统中确认转发的目的号码
CN1360428A (zh) * 2000-12-20 2002-07-24 株式会社Ntt都科摩 控制转移的系统和方法
CN1406043A (zh) * 2002-10-10 2003-03-26 中国电信集团广东省电信公司 用一个电信运营商的网络系统为其它电信网的电信用户提供呼叫转移的方法
US6925162B1 (en) * 1999-09-16 2005-08-02 Mci, Inc. Method and system for negotiated call forwarding
CN102665185A (zh) * 2012-05-11 2012-09-12 华为技术有限公司 一种开通呼叫前转业务的方法、装置及系统
CN102905241A (zh) * 2012-10-15 2013-01-30 中兴通讯股份有限公司 一种ussd服务器、hlr服务器和基于ussd的通话转移方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1228898A (zh) * 1996-06-24 1999-09-15 艾利森公司 在移动电信系统中确认转发的目的号码
US6925162B1 (en) * 1999-09-16 2005-08-02 Mci, Inc. Method and system for negotiated call forwarding
CN1360428A (zh) * 2000-12-20 2002-07-24 株式会社Ntt都科摩 控制转移的系统和方法
CN1406043A (zh) * 2002-10-10 2003-03-26 中国电信集团广东省电信公司 用一个电信运营商的网络系统为其它电信网的电信用户提供呼叫转移的方法
CN102665185A (zh) * 2012-05-11 2012-09-12 华为技术有限公司 一种开通呼叫前转业务的方法、装置及系统
CN102905241A (zh) * 2012-10-15 2013-01-30 中兴通讯股份有限公司 一种ussd服务器、hlr服务器和基于ussd的通话转移方法

Also Published As

Publication number Publication date
CN102905241B (zh) 2015-12-16
CN102905241A (zh) 2013-01-30

Similar Documents

Publication Publication Date Title
CN105307108B (zh) 一种物联网信息交互通信方法及系统
US20120066753A1 (en) Authentication method, authentication apparatus and authentication system
EP3008935B1 (en) Mobile device authentication in heterogeneous communication networks scenario
KR101475349B1 (ko) 이동 통신 시스템에서 단말 보안 능력 관련 보안 관리 방안및 장치
KR20200022512A (ko) 네트워크 보안 관리 방법 및 장치
KR101104500B1 (ko) 휴대단말기의 음성호 시그널링 방법
WO2015131689A1 (zh) 传感器对码处理方法、装置、网络平台设备及物联网网关
CN103535004B (zh) 用于促进匿名音频和视频通信的方法和基于web的系统
CN105813071B (zh) 流量共享方法及装置、终端
WO2013185681A1 (zh) 一种ussd服务器、hlr服务器和基于ussd的通话转移方法
CN106790251B (zh) 用户接入方法和用户接入系统
WO2009030096A1 (fr) Client de communication mobile et serveur de communication client, procédé de réalisation des communications
WO2016030567A1 (en) Method and apparatus for establishment of private communication between devices
CN100512500C (zh) 处理呼叫的方法和业务控制设备及呼叫处理系统
JP4897864B2 (ja) 移動体ネットワークにおけるサービスのcliなりすましに対する保護
JP4554636B2 (ja) 通信制御装置およびプロトコル変換方法
CN110324819A (zh) 副卡终端的管理方法和管理服务器
WO2020177616A1 (zh) 一种pdu会话二次验证的方法及装置
EP3163917B1 (en) Sending short messages over ussd
KR101024281B1 (ko) 스팸호 차단 방법 및 시스템
US9998919B1 (en) SMS spoofing protection
KR102329891B1 (ko) Smpp 기반의 제어용 sms를 인증하는 장치 및 방법
JP2013042490A (ja) mVoIPベースの呼接続方法及びシステム
JP2013090288A (ja) プログラム、無線通信端末、通信装置および通信システム
US20220070301A1 (en) Method and Apparatus for Detecting SMS Parameter Manipulation

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: 13803478

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: 13803478

Country of ref document: EP

Kind code of ref document: A1