CN114301881A - Registration method, registration device, electronic equipment and computer-readable storage medium - Google Patents

Registration method, registration device, electronic equipment and computer-readable storage medium Download PDF

Info

Publication number
CN114301881A
CN114301881A CN202111505287.XA CN202111505287A CN114301881A CN 114301881 A CN114301881 A CN 114301881A CN 202111505287 A CN202111505287 A CN 202111505287A CN 114301881 A CN114301881 A CN 114301881A
Authority
CN
China
Prior art keywords
registration
sip
client
message
password
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202111505287.XA
Other languages
Chinese (zh)
Other versions
CN114301881B (en
Inventor
陈诚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN202111505287.XA priority Critical patent/CN114301881B/en
Publication of CN114301881A publication Critical patent/CN114301881A/en
Application granted granted Critical
Publication of CN114301881B publication Critical patent/CN114301881B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The application provides a registration method, a registration device, an electronic device and a computer-readable storage medium, wherein the method comprises the following steps: receiving account information and password information sent by a client; authenticating the account number information and the password information, and sending an authentication success message to the client after the authentication is passed; receiving a registration application message sent by a client after receiving an authentication success message, wherein the registration application message comprises account information; generating a registration response message according to the registration application message, wherein the registration response message comprises an SIP registration password and an SIP number corresponding to the account information; and sending the registration response message to the client so that the client performs registration according to the registration response message, thereby improving the security of SIP registration.

Description

Registration method, registration device, electronic equipment and computer-readable storage medium
Technical Field
The present application relates to the field of network communications, and in particular, to a registration method, apparatus, electronic device, and computer-readable storage medium.
Background
With the development of IP-based voice exchanges (IP Private Branch eXchange, IP pbx), more and more companies, enterprises, etc. have begun deploying IP-based corporate telephone systems. The ip pbx supports Session Initiation Protocol (SIP). In the actual use process, after the client successfully registers on the voice server through the SIP number and the SIP registration password, the IP call can be carried out. However, in the existing ip pbx, the SIP registration password is not protected, and if the SIP registration password is leaked, other people can perform SIP registration on the voice server through the client supporting the SIP protocol by the third party, so that potential safety hazards such as call stealing and the like occur.
Disclosure of Invention
An embodiment of the present application provides a registration method, an apparatus, an electronic device, and a computer-readable storage medium, so as to solve the problem of low security in an existing ip pbx system.
In a first aspect, the present invention provides a registration method, applied to a server, the method including: receiving account information and password information sent by a client; authenticating the account information and the password information, and sending an authentication success message to the client after the authentication is passed; receiving a registration application message sent by the client after receiving the authentication success message, wherein the registration application message comprises the account information; generating a registration response message according to the registration application message, wherein the registration response message comprises an SIP registration password and an SIP number corresponding to the account information; and sending the registration response message to the client so that the client performs registration according to the registration response message.
In the embodiment of the application, the account information and the password information sent by the client are authenticated, and after the authentication is passed, the client sends a registration application message to the server to obtain the corresponding SIP number and the SIP registration password, so that the client registers according to the SIP number and the SIP registration password. The server and the client interact through a private protocol (the client sends a registration application message to request the SIP number and the SIP registration password, and the server replies the SIP number and the SIP registration password through a registration response message), so that the client supporting the SIP protocol by a third party cannot acquire the SIP number and the SIP registration password, and the SIP registration safety is improved.
In an optional embodiment, the step of generating the SIP registration password includes: and generating the SIP registration password according to a random number generation algorithm and the current time.
In the embodiment of the application, the server dynamically generates the SIP registration password according to the random number generation algorithm and the current time, and the SIP registration passwords are different when the SIP registration is performed every time, so that the SIP registration safety is improved.
In an optional embodiment, the generating the SIP registration password according to the random number generation algorithm and the current time includes: generating a random number according to the random number generation algorithm; determining a first time stamp according to the time after the current time is delayed by a preset time length, and selecting a digit with a preset digit at the tail in the first time stamp; and splicing the random number and the digits of the preset digits at the tail end in the first time stamp to generate the SIP registration password.
In an optional implementation manner, after the sending the registration response packet to the client, the method further includes: receiving an SIP registration message sent by the client, wherein the SIP registration message comprises an SIP number and an SIP registration password; judging whether the SIP number is matched with the SIP registration password; if not, sending a registration failure message to the client; if so, judging whether the digits of the preset digits at the tail in the SIP registration password are larger than or equal to the digits of the preset digits at the tail in the timestamp of the current time or not; if so, sending a registration success message to the client; otherwise, sending a registration failure message to the client.
In the embodiment of the application, when the server authenticates the SIP registration password, the server verifies the time efficiency of the SIP registration password, and the security of the SIP registration is further improved.
In a second aspect, the present invention provides a registration method, applied to a client, where the method includes: sending account information and password information to a server; after receiving an authentication success message sent by the server, sending a registration application message to the server, wherein the authentication success message represents that the account information and the password information pass the authentication of the server, and the registration application message comprises the account information; receiving a registration response message generated by the server according to the registration application message, wherein the registration response message comprises an SIP registration password and an SIP number corresponding to the account information; and registering according to the registration response message.
In an optional embodiment, the registering according to the registration response packet includes: and sending an SIP registration message to the server, wherein the SIP registration message comprises the SIP registration password and the SIP number.
In a third aspect, the present invention provides a registration apparatus configured in a server, the apparatus including: the receiving module is used for receiving account information and password information sent by the client; the authentication module is used for authenticating the account information and the password information; the sending module is used for sending an authentication success message to the client after the authentication is passed; the receiving module is further configured to receive a registration application message sent by the client after receiving the authentication success message, where the registration application message includes the account information; a generating module, configured to generate a registration response message according to the registration application message, where the registration response message includes an SIP registration password and an SIP number corresponding to the account information; the sending module is further configured to send the registration response message to the client, so that the client performs registration according to the registration response message.
In an optional embodiment, the generating module is further configured to generate the SIP registration password according to a random number generation algorithm and a current time.
In an optional embodiment, the generating module is specifically configured to generate a random number according to the random number generation algorithm; determining a first time stamp according to the time after the current time is delayed by a preset time length, and selecting a digit with a preset digit at the tail in the first time stamp; and splicing the random number and the digits of the preset digits at the tail end in the first time stamp to generate the SIP registration password.
In an optional embodiment, the receiving module is further configured to: receiving an SIP registration message sent by the client, wherein the SIP registration message comprises an SIP number and an SIP registration password; the authentication module is also used for judging whether the SIP number is matched with the SIP registration password; if not, sending a registration failure message to the client; if so, judging whether the digits of the preset digits at the tail in the SIP registration password are larger than or equal to the digits of the preset digits at the tail in the timestamp of the current time or not; the sending module is further used for sending a registration success message to the client when the judgment result of the authentication module is yes; otherwise, sending a registration failure message to the client.
In a fourth aspect, the present invention provides a registration apparatus configured at a client, the apparatus comprising: the sending module is used for sending account information and password information to the server; after receiving an authentication success message sent by the server, sending a registration application message to the server, wherein the authentication success message represents that the account information and the password information pass the authentication of the server, and the registration application message comprises the account information; a receiving module, configured to receive a registration response message generated by the server according to the registration application message, where the registration response message includes an SIP registration password and an SIP number corresponding to the account information; and the registration module is used for registering according to the registration response message.
In an optional implementation manner, the registration module is specifically configured to send an SIP registration message to the server, where the SIP registration message includes the SIP registration password and the SIP number.
In a fifth aspect, the present invention provides an electronic device, comprising: a processor, a memory, and a bus; the processor and the memory are communicated with each other through the bus; the memory stores program instructions executable by the processor, the processor being capable of executing the method of any one of the preceding embodiments when invoked by the processor.
In a sixth aspect, the present invention provides a computer-readable storage medium having stored thereon computer program instructions which, when read and executed by a computer, perform the method according to any of the preceding embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a flowchart of a registration method according to an embodiment of the present application;
fig. 2 is a block diagram illustrating a registration apparatus configured at a client according to an embodiment of the present disclosure;
fig. 3 is a block diagram illustrating a registration apparatus configured in a server according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Icon: 200. 300-a registration device; 201. 302-a receiving module; 202-an authentication module; 203. 301-a sending module; 204-a generation module; 303-a registration module; 400-an electronic device; 401-a processor; 402-a communication interface; 403-a memory; 404-bus.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Before describing the registration method provided in the embodiment of the present application, some concepts related to the embodiment of the present application are described:
SIP registration: when the SIP protocol is used for communication, each client needs to register with the voice server after being started every time, and communication can be carried out only after the registration is successful.
Dispatching desk system client: in the ip pbx, scheduling service software can be set, providing rich scheduling functions for production and command, such as: incoming call selection, incoming call group answering, multi-party call, forced insertion and forced disconnection, call monitoring, voice broadcasting, call recording and the like. The user registers on the voice server through the client software of the dispatching desk system.
Time stamping: the time elapsed from the current time to 1/1970 in ms is commonly used in the computer software industry as a parameter related to the calculation time.
Referring to fig. 1, fig. 1 is a flowchart of a registration method according to an embodiment of the present disclosure, which includes the following steps:
step 101: and the client sends the account information and the password information to the server.
Step 102: and the server receives the account information and the password information sent by the client and authenticates the account information and the password information.
Step 103: and the server sends an authentication success message to the client after the authentication is passed.
Step 104: and after receiving the authentication success message sent by the server, the client sends a registration application message to the server.
Step 105: and the server generates a registration response message according to the registration application message and sends the registration response message to the client.
Step 106: and the client registers according to the registration response message.
The above method is described in detail below.
Step 101: and the client sends the account information and the password information to the server.
In the embodiment of the application, when a user needs to perform SIP registration, account information and password information are firstly sent to a server through a client. The account information and the password information are created in the server in advance for the administrator, and the created account information and password information are distributed to the user for use. For example, the administrator creates an account: zhangsan, the corresponding password information is: 123.
and when the account information is created, the account information and the SIP number are bound. For example, the account of the user a is zhagnsan, and the corresponding SIP number is: 1000. the server stores the mapping relation of the account information, the password information and the SIP number.
As an optional implementation manner, before the step 101, the registration method provided by the present application further includes:
and establishing a Websockets connection between the client and the server, and transmitting data by using a Websockets protocol. When the Websockets are used for data transmission in a protocol, the Websockets can encrypt and transmit data, and therefore safety is improved. It should be noted that, the encryption transmission method adopted between the client and the server is not specifically limited in the present application, and besides the encryption transmission by using the Websockets protocol, other encryption transmission protocols such as HTTPS may also be used for the transmission.
Step 102: and the server receives the account information and the password information sent by the client and authenticates the account information and the password information.
In the embodiment of the application, after receiving the account information and the password information sent by the client, the server authenticates the account information and the password information sent by the client according to the mapping relationship between the account information and the password information which is stored in advance. If the account information and the password information sent by the receiving client side are the same as the mapping relation of the account information and the password information which are stored in advance, the authentication is passed; otherwise, the authentication is not passed.
Step 103: and the server sends an authentication success message to the client after the authentication is passed.
In the embodiment of the application, after the authentication is passed, the server sends an authentication success message to the client, and the account information and the password information sent by the client are represented to be correct.
Step 104: and after receiving the authentication success message sent by the server, the client sends a registration application message to the server.
In the embodiment of the application, after receiving the authentication success message sent by the server, the client sends a registration application message to the server. The registration application message comprises account information, and the client requests the server for the SIP number and the SIP registration password corresponding to the account information through the registration application message.
As an optional implementation manner, the format of the registration application message is: { "method": sip register "," params ": account": xxx "}. Wherein, the method is sip register, and the purpose of the message is shown as follows: the client side carries out SIP registration application to the server; the account in params is xxx, which means that the account performing the SIP registration request is xxx. For example, the account information of the user a is zhangsan, and after the steps 101 and 103, the account information and the password information of the user a pass authentication. Then, the client will send a message to the server: { "method": sip register "," params ": account": zhangsan "}.
Step 105: and the server generates a registration response message according to the registration application message and sends the registration response message to the client.
In the embodiment of the application, the server receives the registration application message sent by the client, and then generates a registration response message according to the registration application message. Specifically, the registration response message includes an SIP registration password and an SIP number. And the SIP number is the SIP number corresponding to the account information in the registration application message.
As an optional implementation manner, the server analyzes the received registration application message, and determines account information therein. And determining the SIP number corresponding to the account information according to the mapping relation between the pre-stored account information and the SIP number.
For example, assume that the registration application message received by the server is: { "method": sip register "," params ": account": zhangsan "}. The server determines account information as follows according to the account field in the registration application message: zhangsan. And then determining that the SIP number corresponding to the account information zhangsan is 1000 according to the mapping relation between the account information and the SIP number which is pre-stored in the server.
The manner in which the SIP registration password is generated will be described below.
As an alternative, the server may randomly generate a string, and use the string as the SIP registration password. It should be noted that the randomly generated character string may be one or more combinations of numbers, capital letters, lowercase letters, special symbols, and the like. The number of bits of the randomly generated character string can be flexibly set according to the number of bits of the SIP registration password, for example: 6-position, 8-position, etc., which are not specifically limited in this application.
As another optional implementation, the step of generating the SIP registration password may include: and generating the SIP registration password according to the random number generation algorithm and the current time.
Specifically, generating the SIP registration password according to the random number generation algorithm and the current time may include the following:
generating a random number according to a random number generation algorithm;
determining a first time stamp according to the time after the current time is delayed by a preset time length, and selecting a digit with a preset digit at the tail in the first time stamp;
and splicing the random number and the digits with preset digits at the tail end in the first time stamp to generate the SIP registration password.
Specifically, the server generates a random number according to a random number generation algorithm, and the number of bits of the random number can be flexibly set according to actual requirements. Then, the server determines a timestamp (first timestamp) corresponding to the time after the preset time delay according to the preset time delay after the current time. And selecting a digit with a preset digit at the tail in the first time stamp. And finally, splicing the determined random number and the digits of the preset digit positioned at the tail in the first time stamp to generate the SIP registration password.
For example, the server generates a 6-bit random number according to a random number generation algorithm: 183157. the current time is 2021 year, 10 month, 19 days, 19:48:50, one minute later, and is: 2021, 10 months, 19 days, 19:49: 50. According to the time: the last 6 bits of the timestamp corresponding to this time are 644190 as determined by 19:49: 50/10/2021. Splicing the random number and the timestamp 6, and then generating an SIP password as follows: 183157644190.
it should be noted that, the number of bits of the random number, the preset number of bits at the end of the first timestamp, and the delayed preset duration are not specifically limited, and those skilled in the art can flexibly select the number of bits according to actual situations.
And after determining the SIP registration password and the SIP number, the server generates a registration response message.
As an optional implementation manner, the form of the registration response message may be: { "method": sip register ", res {" account ": zhangsan", "sip": 1000 "," exp ": 183157756190" }. Wherein, the content after res represents the data returned in the registration response message, account is zhangsan, and the account number for performing the SIP registration request is zhangsan; SIP is 1000, which represents the returned SIP number; exp is 183157756190 indicating the returned SIP registration password.
Step 106: and the client registers according to the registration response message.
In the embodiment of the application, after receiving the registration response message sent by the server, the client performs SIP registration according to the SIP number and the SIP registration password in the registration response message.
Specifically, the step 106 may include the following steps:
and sending the SIP registration message to the server.
In the embodiment of the application, the SIP registration message includes an SIP registration password and an SIP number. After receiving the SIP registration message, the server authenticates the SIP registration password and the SIP number, determines whether the corresponding relationship between the SIP registration password and the SIP number is consistent, and if so, returns a registration success message to represent that the client registration is successful; if not, returning a registration failure message to represent the client registration failure. It can be understood that the server stores the mapping relationship between the SIP registration password and the SIP number when sending the registration response message. After receiving the SIP registration message, comparing the SIP registration password and the SIP number with the stored mapping relationship between the SIP registration password and the SIP number, and determining whether the corresponding relationship between the two is consistent.
As an optional implementation manner, if the SIP registration password generated by the server includes a number with a preset number of bits located at the end of the first timestamp, the server may include the following contents when authenticating the SIP registration password and the SIP number in the SIP registration message:
judging whether the SIP number is matched with the SIP registration password;
if not, sending a registration failure message to the client;
if so, judging whether the digits of the preset digits at the tail in the SIP registration password are more than or equal to the digits of the preset digits at the tail in the timestamp of the current time;
if so, sending a registration success message to the client; otherwise, sending a registration failure message to the client.
In the embodiment of the application, whether the SIP number is matched with the SIP registration password is judged. The specific determination method has been introduced in the foregoing embodiments, and is not described herein. If the SIP number is matched with the SIP registration password, whether the digits of the preset digits at the tail in the SIP registration password are larger than the digits of the preset digits at the tail in the timestamp of the current time is further judged.
It should be noted that, when the SIP registration password is generated, the time used is the number of the preset digit at the end in the timestamp corresponding to the time point of the preset time after the current time delay of the SIP registration password. Therefore, if the server receives the number of the preset digit at the tail in the SIP registration password sent by the client, which is greater than the number of the preset digit at the tail in the timestamp of the current time, it indicates that the current time does not exceed the time point of the preset time after the current time delay for generating the SIP registration password, and therefore, the server considers that the SIP registration password is still in the validity period, and sends a registration success message to the client.
If the server receives the number of the preset digit at the tail in the SIP registration password sent by the client, which is smaller than the number of the preset digit at the tail in the timestamp of the current time, the current time is beyond the time point of the preset duration after the current time delay for generating the SIP registration password, and therefore the SIP registration password is considered to be invalid, and a registration failure message is sent to the client. By the method, the server can verify the time effectiveness of the SIP registration password during SIP registration, and the SIP registration safety is further improved.
It should be noted that the client mentioned in the registration method provided in the embodiment of the present application may be any client in the ip pbx system, and may be a client of a dispatching desk system, or a client of an ordinary user, which is not specifically limited in this application.
To sum up, in the registration method provided in the embodiment of the present application, the account information and the password information sent by the client are authenticated, and after the authentication is passed, the client sends a registration application message to the server to obtain the corresponding SIP number and the SIP registration password, and then performs registration according to the SIP number and the SIP registration password. The server and the client interact through a private protocol (the client sends a registration application message to request the SIP number and the SIP registration password, and the server replies the SIP number and the SIP registration password through a registration response message), so that the client supporting the SIP protocol by a third party cannot acquire the SIP number and the SIP registration password, and the safety is improved.
Based on the same inventive concept, the embodiment of the application provides a registration device. Referring to fig. 2, fig. 2 is a block diagram illustrating a registration apparatus configured at a client according to an embodiment of the present application, where the registration apparatus 200 is configured at a client of a cluster, and the registration apparatus 200 may include:
a receiving module 201, configured to receive account information and password information sent by a client;
an authentication module 202, configured to authenticate the account information and the password information;
a sending module 203, configured to send an authentication success message to the client after the authentication is passed;
the receiving module 201 is further configured to receive a registration application message sent by the client after receiving the authentication success message, where the registration application message includes the account information;
a generating module 204, configured to generate a registration response message according to the registration application message, where the registration response message includes an SIP registration password and an SIP number corresponding to the account information;
the sending module 203 is further configured to send the registration response packet to the client, so that the client performs registration according to the registration response packet.
In an optional implementation, the generating module 204 is further configured to generate the SIP registration password according to a random number generation algorithm and a current time.
In an optional embodiment, the generating module 204 is specifically configured to generate a random number according to the random number generating algorithm; determining a first time stamp according to the time after the current time is delayed by a preset time length, and selecting a digit with a preset digit at the tail in the first time stamp; and splicing the random number and the digits of the preset digits at the tail end in the first time stamp to generate the SIP registration password.
In an optional embodiment, the receiving module 201 is further configured to: receiving an SIP registration message sent by the client, wherein the SIP registration message comprises an SIP number and an SIP registration password; the authentication module is also used for judging whether the SIP number is matched with the SIP registration password; if so, judging whether the digits of the preset digits at the tail in the SIP registration password are larger than the digits of the preset digits at the tail in the timestamp of the current time or not; the sending module 203 is further configured to send a registration success message to the client when the authentication module determines that the authentication module is yes; otherwise, sending a registration failure message to the client.
In addition, the embodiment of the application provides a registration device. Referring to fig. 3, fig. 3 is a block diagram illustrating a registration apparatus configured at a client according to an embodiment of the present application, where the registration apparatus 300 is configured at a master node of a cluster, and the registration apparatus 300 may include:
a sending module 301, configured to send account information and password information to a server; after receiving an authentication success message sent by the server, sending a registration application message to the server, wherein the authentication success message represents that the account information and the password information pass the authentication of the server, and the registration application message comprises the account information;
a receiving module 302, configured to receive a registration response message generated by the server according to the registration application message, where the registration response message includes an SIP registration password and an SIP number corresponding to the account information;
and a registration module 303, configured to perform registration according to the registration response packet.
In an optional implementation manner, the registration module 303 is specifically configured to send an SIP registration message to the server, where the SIP registration message includes the SIP registration password and the SIP number.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device 400 according to an embodiment of the present application, where the electronic device 400 includes: at least one processor 401, at least one communication interface 402, at least one memory 403 and at least one bus 404. Wherein the bus 404 is used for implementing direct connection communication of these components, the communication interface 402 is used for communicating signaling or data with other node devices, and the memory 403 stores machine-readable instructions executable by the processor 401. When the electronic device 400 is in operation, the processor 401 communicates with the memory 403 via the bus 404 and the machine-readable instructions, when called by the processor 401, perform the registration method as described above.
The processor 401 may be an integrated circuit chip having signal processing capabilities. The Processor 401 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. Which may implement or perform the various methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The Memory 403 may include, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read Only Memory (PROM), Erasable Read Only Memory (EPROM), electrically Erasable Read Only Memory (EEPROM), and the like.
It will be appreciated that the configuration shown in fig. 4 is merely illustrative and that electronic device 400 may include more or fewer components than shown in fig. 4 or have a different configuration than shown in fig. 4. The components shown in fig. 4 may be implemented in hardware, software, or a combination thereof. In the embodiment of the present application, the electronic device 400 may be, but is not limited to, an entity device such as a desktop, a laptop, a smart phone, an intelligent wearable device, and a vehicle-mounted device, and may also be a virtual device such as a virtual machine. In addition, the electronic device 400 is not necessarily a single device, but may be a combination of multiple devices, such as a server cluster, and the like.
In addition, an embodiment of the present application further provides a computer storage medium, where a computer program is stored on the computer storage medium, and when the computer program is executed by a computer, the steps of the registration method in the above embodiments are performed.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
It should be noted that the functions, if implemented in the form of software functional modules and sold or used as independent products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A registration method is applied to a server, and the method comprises the following steps:
receiving account information and password information sent by a client;
authenticating the account information and the password information, and sending an authentication success message to the client after the authentication is passed;
receiving a registration application message sent by the client after receiving the authentication success message, wherein the registration application message comprises the account information;
generating a registration response message according to the registration application message, wherein the registration response message comprises an SIP registration password and an SIP number corresponding to the account information;
and sending the registration response message to the client so that the client performs registration according to the registration response message.
2. The method of claim 1, wherein generating the SIP registration password comprises:
and generating the SIP registration password according to a random number generation algorithm and the current time.
3. The method of claim 2, wherein generating the SIP registration password according to the random number generation algorithm and the current time comprises:
generating a random number according to the random number generation algorithm;
determining a first time stamp according to the time after the current time is delayed by a preset time length, and selecting a digit with a preset digit at the tail in the first time stamp;
and splicing the random number and the digits of the preset digits at the tail end in the first time stamp to generate the SIP registration password.
4. The method of claim 3, wherein after the sending the registration response message to the client, the method further comprises:
receiving an SIP registration message sent by the client, wherein the SIP registration message comprises an SIP number and an SIP registration password;
judging whether the SIP number is matched with the SIP registration password;
if not, sending a registration failure message to the client;
if so, judging whether the digits of the preset digits at the tail in the SIP registration password are larger than or equal to the digits of the preset digits at the tail in the timestamp of the current time or not;
if so, sending a registration success message to the client; otherwise, sending a registration failure message to the client.
5. A registration method applied to a client side, the method comprising:
sending account information and password information to a server;
after receiving an authentication success message sent by the server, sending a registration application message to the server, wherein the authentication success message represents that the account information and the password information pass the authentication of the server, and the registration application message comprises the account information;
receiving a registration response message generated by the server according to the registration application message, wherein the registration response message comprises an SIP registration password and an SIP number corresponding to the account information;
and registering according to the registration response message.
6. The method according to claim 5, wherein the registering according to the registration response message comprises:
and sending an SIP registration message to the server, wherein the SIP registration message comprises the SIP registration password and the SIP number.
7. A registration apparatus, configured to a server, the apparatus comprising:
the receiving module is used for receiving account information and password information sent by the client;
the authentication module is used for authenticating the account information and the password information;
the sending module is used for sending an authentication success message to the client after the authentication is passed;
the receiving module is further configured to receive a registration application message sent by the client after receiving the authentication success message, where the registration application message includes the account information;
a generating module, configured to generate a registration response message according to the registration application message, where the registration response message includes an SIP registration password and an SIP number corresponding to the account information;
the sending module is further configured to send the registration response message to the client, so that the client performs registration according to the registration response message.
8. A registration apparatus, configured at a client, the apparatus comprising:
the sending module is used for sending account information and password information to the server; after receiving an authentication success message sent by the server, sending a registration application message to the server, wherein the authentication success message represents that the account information and the password information pass the authentication of the server, and the registration application message comprises the account information;
a receiving module, configured to receive a registration response message generated by the server according to the registration application message, where the registration response message includes an SIP registration password and an SIP number corresponding to the account information;
and the registration module is used for registering according to the registration response message.
9. An electronic device, comprising: a processor, a memory, and a bus; the processor and the memory are communicated with each other through the bus; the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1-6.
10. A computer-readable storage medium having computer program instructions stored thereon which, when read and executed by a computer, perform the method of any one of claims 1-6.
CN202111505287.XA 2021-12-10 2021-12-10 Registration method, registration device, electronic device and computer-readable storage medium Active CN114301881B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111505287.XA CN114301881B (en) 2021-12-10 2021-12-10 Registration method, registration device, electronic device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111505287.XA CN114301881B (en) 2021-12-10 2021-12-10 Registration method, registration device, electronic device and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN114301881A true CN114301881A (en) 2022-04-08
CN114301881B CN114301881B (en) 2023-09-15

Family

ID=80968430

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111505287.XA Active CN114301881B (en) 2021-12-10 2021-12-10 Registration method, registration device, electronic device and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN114301881B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917526A (en) * 2010-08-24 2010-12-15 杭州华三通信技术有限公司 Method and equipment for number collocation in SIP (Session Initiation Protocol) telephone network
JP2013197920A (en) * 2012-03-21 2013-09-30 Nippon Telegr & Teleph Corp <Ntt> Communication system, sip server, and authentication method
JP2014010554A (en) * 2012-06-28 2014-01-20 Kotobuki Solution Co Ltd User authentication system
CN104219401A (en) * 2013-05-31 2014-12-17 华为技术有限公司 A phone number distributing method, device and system
CN104753937A (en) * 2015-03-24 2015-07-01 江苏物联网研究发展中心 SIP (System In Package)-based security certificate registering method
CN106878305A (en) * 2017-02-16 2017-06-20 西安电子科技大学 The method that endpoint registration is realized based on Session Initiation Protocol
CN107294900A (en) * 2016-03-30 2017-10-24 阿里巴巴集团控股有限公司 Identity registration method and apparatus based on biological characteristic
US20180124604A1 (en) * 2015-04-02 2018-05-03 Samsung Electronics Co., Ltd. Method for performing multiple authentications within service registration procedure
US20200007596A1 (en) * 2018-06-28 2020-01-02 Unify Patente Gmbh & Co. Kg Method and sip registrar server for managing transmission resources in a sip-based communication system
CN112039878A (en) * 2020-08-28 2020-12-04 北京飞讯数码科技有限公司 Equipment registration method and device, computer equipment and storage medium
CN112291164A (en) * 2020-10-20 2021-01-29 浙江华创视讯科技有限公司 Repeated registration processing method, computer device and readable storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917526A (en) * 2010-08-24 2010-12-15 杭州华三通信技术有限公司 Method and equipment for number collocation in SIP (Session Initiation Protocol) telephone network
JP2013197920A (en) * 2012-03-21 2013-09-30 Nippon Telegr & Teleph Corp <Ntt> Communication system, sip server, and authentication method
JP2014010554A (en) * 2012-06-28 2014-01-20 Kotobuki Solution Co Ltd User authentication system
CN104219401A (en) * 2013-05-31 2014-12-17 华为技术有限公司 A phone number distributing method, device and system
CN104753937A (en) * 2015-03-24 2015-07-01 江苏物联网研究发展中心 SIP (System In Package)-based security certificate registering method
US20180124604A1 (en) * 2015-04-02 2018-05-03 Samsung Electronics Co., Ltd. Method for performing multiple authentications within service registration procedure
CN107294900A (en) * 2016-03-30 2017-10-24 阿里巴巴集团控股有限公司 Identity registration method and apparatus based on biological characteristic
CN106878305A (en) * 2017-02-16 2017-06-20 西安电子科技大学 The method that endpoint registration is realized based on Session Initiation Protocol
US20200007596A1 (en) * 2018-06-28 2020-01-02 Unify Patente Gmbh & Co. Kg Method and sip registrar server for managing transmission resources in a sip-based communication system
CN112039878A (en) * 2020-08-28 2020-12-04 北京飞讯数码科技有限公司 Equipment registration method and device, computer equipment and storage medium
CN112291164A (en) * 2020-10-20 2021-01-29 浙江华创视讯科技有限公司 Repeated registration processing method, computer device and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
彭焕峰;: "SIP注册服务器的研究与设计", 电脑知识与技术, no. 32 *

Also Published As

Publication number Publication date
CN114301881B (en) 2023-09-15

Similar Documents

Publication Publication Date Title
CN109905405B (en) Security method for lawful interception
EP2999189A1 (en) Network authentication method for secure electronic transactions
US11159674B2 (en) Multi-factor authentication of caller identification (ID) identifiers
US20080181379A1 (en) Caller name authentication to prevent caller identity spoofing
RU2570838C2 (en) Strong authentication by providing number
CN112188493B (en) Authentication method, system and related equipment
CN102271035A (en) Password transmission method and device
TW201029423A (en) Method and system for authentication
US11496319B2 (en) Method of identity authentication for voice over internet protocol call and related device
US20180130056A1 (en) Method and system for transaction security
CN110958119A (en) Identity verification method and device
KR20100038990A (en) Apparatus and method of secrity authenticate in network authenticate system
WO2006002068A2 (en) Method and apparatus for making accessible a set of services to users
TW201830949A (en) Methods for sharing sim card and mobile terminals
WO2021031741A1 (en) Voip processing method, device, and terminal
CN110610418B (en) Transaction state query method, system, device and storage medium based on block chain
US20130183934A1 (en) Methods for initializing and/or activating at least one user account for carrying out a transaction, as well as terminal device
CN112448958B (en) Domain policy issuing method and device, electronic equipment and storage medium
CN101771684A (en) Internet compuphone authentication method and service system thereof
CN112769757A (en) Data pushing method, device and system
EP1320975B1 (en) Internet protocol telephony security architecture
CN114301881B (en) Registration method, registration device, electronic device and computer-readable storage medium
CN116032546A (en) Resource access method and device and electronic equipment
CN115473655A (en) Terminal authentication method, device and storage medium for access network
CN115664669A (en) Financial equipment authentication method, cash dispenser, external equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant