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

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

Info

Publication number
CN114301881B
CN114301881B CN202111505287.XA CN202111505287A CN114301881B CN 114301881 B CN114301881 B CN 114301881B CN 202111505287 A CN202111505287 A CN 202111505287A CN 114301881 B CN114301881 B CN 114301881B
Authority
CN
China
Prior art keywords
registration
sip
client
password
message
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.)
Active
Application number
CN202111505287.XA
Other languages
Chinese (zh)
Other versions
CN114301881A (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

Abstract

The application provides a registration method, a registration device, an electronic device and a computer readable storage medium, wherein the registration method comprises the following steps: receiving account information and password information sent by a client; authenticating account information and 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 registers according to the registration response message, thereby improving the security of SIP registration.

Description

Registration method, registration device, electronic device 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 switches (IP Private Branch eXchange, IP pbx), more and more companies, enterprises, etc. are beginning to deploy IP-based corporate telephone systems. Ip pbx supports session initiation protocol (Session Initiation Protocol, SIP). In the actual use process, the client can carry out IP call after the client is successfully registered on the voice server through the SIP number and the SIP registration password. However, in the existing ip pbx, the SIP registration password is not protected, and if the SIP registration password is revealed, other people can perform SIP registration on the voice server through the client supporting the SIP protocol by a third party, so that potential safety hazards such as calling and illegal use occur.
Disclosure of Invention
An object of an embodiment of the present application is to provide a registration method, apparatus, electronic device, and computer readable storage medium, which are used for solving the problem of low security in the existing ip pbx system.
In a first aspect, the present application provides a registration method, applied to a server, the method comprising: 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 registers according to the registration response message.
In the embodiment of the application, firstly, account information and password information sent by a client are authenticated, and after the authentication is passed, the client sends a registration application message to a server to obtain a corresponding SIP number and an SIP registration password, and then registration is carried out 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 request 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 cannot acquire the SIP number and the SIP registration password, and the security of SIP registration is improved.
In an alternative 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 passwords according to the random number generation algorithm and the current time, and the SIP registration passwords are different when each time of registration is performed, so that the security of SIP registration is improved.
In an alternative 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 number of a preset digit positioned at the end of the first time stamp; and splicing the random number and the digits with the preset digits at the tail of the first timestamp to generate the SIP registration password.
In an alternative embodiment, after the sending the registration response message 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 or not; if not, sending a registration failure message to the client; if so, judging whether the number of the preset digits at the end in the SIP registration password is larger than or equal to the number of the preset digits at the end in the timestamp of the current time; if yes, sending a message of successful registration 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 aging of the SIP registration password, so that the security of SIP registration is further improved.
In a second aspect, the present application provides a registration method, applied to a client, the method comprising: transmitting 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 characterizes the authentication of the account information and the password information through 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 implementation manner, the registering according to the registration response message 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 application provides a registration apparatus configured in 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 packet sent by the client after receiving the authentication success packet, where the registration application packet includes the account information; the generation module is used for 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; 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 alternative embodiment, the generating module is further configured to generate the SIP registration password according to a random number generating algorithm and a current time.
In an alternative embodiment, the generating module 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 number of a preset digit positioned at the end of the first time stamp; and splicing the random number and the digits with the preset digits at the tail of the first timestamp to generate the SIP registration password.
In an alternative 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 number of the preset digits at the end in the SIP registration password is larger than or equal to the number of the preset digits at the end in the timestamp of the current time; the sending module is further configured to send a registration success message to the client when the authentication module determines that the authentication module is successful; otherwise, sending a registration failure message to the client.
In a fourth aspect, the present application provides a registration apparatus configured to a client, the apparatus including: 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 characterizes the authentication of the account information and the password information through the server, and the registration application message comprises the account information; the receiving module is used for receiving the server to generate 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 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 a 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 application provides an electronic device, comprising: a processor, a memory, and a bus; the processor and the memory complete communication 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 the preceding embodiments.
In a sixth aspect, the present application provides a computer readable storage medium having stored thereon computer program instructions which, when read and executed by a computer, perform a 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 needed 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 should not be considered as limiting the scope, and other related drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a registration method according to an embodiment of the present application;
fig. 2 is a block diagram of a registration device configured at a client according to an embodiment of the present application;
fig. 3 is a block diagram of a registration device configured in a server according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Icon: 200. 300-registering means; 201. 302-a receiving module; 202-an authentication module; 203. 301-a transmitting module; 204-a generation module; 303-a registration module; 400-an electronic device; 401-a processor; 402-a communication interface; 403-memory; 404-bus.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.
Before describing the registration method provided by the embodiment of the present application, some concepts related in the embodiment of the present application are described first:
SIP registration: when the SIP protocol is used for communication, each client needs to register with the voice server after each startup, and the call can be performed after the registration is successful.
Dispatching desk system client: in an ip pbx, dispatch service software may be provided to provide rich production, command dispatch functions such as: incoming call selection, incoming call group answering, multiparty call, strong insertion and strong detachment, call monitoring, voice broadcasting, call recording and the like. The user registers on the voice server through the dispatcher system client software.
Timestamp: the current time, in ms, is the time elapsed from 1 month to 1 day in 1970, and is commonly used in the computer software industry as a parameter for calculating time.
Referring to fig. 1, fig. 1 is a flowchart of a registration method according to an embodiment of the present application, which may include 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: after receiving the authentication success message sent by the server, the client sends a registration application message to the server.
Step 105: the server generates a registration response message according to the registration application message and sends the registration response message to the client.
Step 106: 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 sent to a server through a client. It should be noted that, account information and password information are created in advance for an administrator in a server, and the created account information and password information are distributed to users for use. For example, an administrator creates an account: zhangsan, corresponding password information is: 123.
when the account information is created, the account information and the SIP number are bound. For example, the account number of the user a is zhagnsan, and the corresponding SIP number is: 1000. and the server stores the mapping relation of the account information, the password information and the SIP number.
As an optional embodiment, before the step 101, the registration method provided by the present application further includes:
and establishing a Websockts connection between the client and the server, and carrying out data transmission by using a Websockts protocol. When the Websockets are used for data transmission, the Websockets can encrypt and transmit the data, so that the safety is improved. The encryption transmission method adopted between the client and the server is not particularly limited, and other encryption transmission protocols such as HTTPS can be adopted for transmission besides the Websockets protocol.
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 relation of the pre-stored account information and the pre-stored password information. If the account information and the password information sent by the receiving client are the same as the mapping relation of the pre-stored account information and the password information, 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 characterized to be correct.
Step 104: 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 SIP number and the SIP registration password corresponding to the account information from the server through the registration application message.
As an alternative implementation manner, the format of the registration application message is as follows: { "method": "sip register", "params": { "account": "xxx" }. Wherein, the method is sip register, which indicates that the purpose of the message is: the client side carries out SIP registration application to the server; the account in params is xxx, and indicates that the account number for making the SIP registration request is xxx. For example, the account information of the user a is zhangsan, and after steps 101-103, the account information and the password information of the user a are authenticated. The client will then send a message to the server: { "method": "sip register", "params": { "account": "zhangsan" }.
Step 105: 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 further generates a registration response message according to the registration application message. Specifically, the registration response message includes a SIP registration password and a SIP number. The SIP number corresponds 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 are pre-stored in the server.
The manner in which the SIP registration password is generated is described below.
As an alternative embodiment, the server may randomly generate a string, and use the string as the SIP registration password. It should be noted that one or more combinations of numbers, uppercase letters, lowercase letters, special symbols, etc. may be included in the randomly generated character string. The number of bits of the randomly generated character string may be flexibly set according to the number of bits of the SIP registration password, for example: 6-bit, 8-bit, etc., which are not particularly limited in the present application.
As another alternative embodiment, 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:
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 number of a preset bit number at the end of the first time stamp;
and splicing the random number and the digits of the preset digits positioned at the tail of the first timestamp to generate the SIP registration password.
Specifically, the server firstly generates a random number according to a random number generation algorithm, and the bit number of the random number can be flexibly set according to actual requirements. Then, the server determines a time stamp (first time stamp) corresponding to the time after the delay of the preset time period according to the preset time period of the current time delay. A number of a preset number of bits at the end of the first timestamp is selected. And finally, splicing the determined random number and the digits with the preset digits at the tail of the first timestamp to generate the SIP registration password.
For example, the server generates a 6-bit random number according to the random number generation algorithm: 183157. the current time is 2021, 10 months, 19 days, 19:48:50, one minute later, is: 2021, 10, 19, 19:49:50. According to time: the last 6 bits of the time stamp corresponding to the time determined by 19:49:50 on day 19 of 10 of 2021 are 644190. Splicing the random number with the timestamp 6, and generating the SIP password as follows: 183157644190.
it should be noted that, the present application does not specifically limit the number of bits of the random number, the preset number of bits at the end of the first timestamp, and the preset time period after delay, and those skilled in the art can flexibly select according to the actual situation.
After determining the SIP registration password and the SIP number, the server generates a registration response message.
As an alternative embodiment, the registration response message may be in the form of: { "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, representing the returned SIP number; exp is 183157756190, representing the returned SIP registration password.
Step 106: 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 comprises 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 relation 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 characterize the registration failure of the client. 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 relation between the SIP registration password and the SIP number, and determining whether the corresponding relation is consistent.
As an optional implementation manner, if the SIP registration password generated by the server includes a number of a preset number of digits located at the end of the first timestamp, the server may include the following 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 number of the preset digit at the end in the SIP registration password is larger than or equal to the number of the preset digit at the end in the timestamp of the current time;
if yes, sending a message of successful registration to the client; otherwise, sending a registration failure message to the client.
In the embodiment of the application, whether the SIP number and the SIP registration password are matched is judged first. The specific determination method is described in the foregoing embodiments, and will not be described herein. If the SIP number is matched with the SIP registration password, further judging whether the number of the preset digit at the end in the SIP registration password is larger than the number of the preset digit at the end in the timestamp of the current time.
When the SIP registration password is generated, the time adopted is a number of a preset number of digits located at the end in a timestamp corresponding to a time point of a preset duration after the current time of generating the SIP registration password. Therefore, if the server receives the number of the preset digit at the end of the SIP registration password sent by the client and is greater than the number of the preset digit at the end of the timestamp of the current time, the server indicates that the current time does not exceed the time point of the preset duration after the current time for generating the SIP registration password, and therefore, the SIP registration password is considered to be still in the validity period, and a successful registration message is sent to the client.
If the server receives the preset digits at the end of the SIP registration password sent by the client and the digits at the end of the SIP registration password are smaller than the digits at the end of the preset digits in the timestamp of the current time, the current time is indicated to be the time point when the current time for generating the SIP registration password exceeds the preset time length after the current time 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 mode, the server can verify the SIP registration password aging when the SIP registration is carried out, so that the security of the SIP registration is further improved.
It should be noted that, the client mentioned in the registration method provided by the embodiment of the present application may be any client in the ip pbx system, which may be a client of the dispatch system or a client of a common user, which is not specifically limited in the present application.
In summary, in the registration method provided by the embodiment of the present application, the account information and the password information sent by the client are authenticated first, and after the authentication is passed, the client sends a registration request message to the server to obtain the corresponding SIP number and SIP registration password, and then the registration is performed 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 request 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 cannot acquire the SIP number and the SIP registration password, and the security 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 of a registration apparatus configured at a client, 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 packet sent by the client after receiving the authentication success packet, where the registration application packet 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 a SIP registration password and a SIP number corresponding to the account information;
the sending module 203 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 alternative embodiment, the generating module 204 is further configured to generate the SIP registration password according to a random number generating algorithm and a current time.
In an alternative 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 number of a preset digit positioned at the end of the first time stamp; and splicing the random number and the digits with the preset digits at the tail of the first timestamp to generate the SIP registration password.
In an alternative 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 number of the preset digits at the end in the SIP registration password is larger than the number of the preset digits at the end in the timestamp of the current time; 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 in the affirmative; 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 of a registration apparatus configured at a client, 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 characterizes the authentication of the account information and the password information through the server, and the registration application message comprises the account information;
a receiving module 302, configured to receive the registration response message generated by the server according to the registration application message, where the registration response message includes a SIP registration password and a SIP number corresponding to the account information;
and the registration module 303 is configured to register according to the registration response message.
In an alternative embodiment, the registration module 303 is specifically configured to send a 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 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. Where bus 404 is used to enable direct connection communication of these components, communication interface 402 is used for communication of signaling or data with other node devices, and memory 403 stores machine readable instructions executable by processor 401. When the electronic device 400 is in operation, the processor 401 and the memory 403 communicate via the bus 404, and the machine readable instructions when invoked 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 (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. Which may implement or perform the various methods, steps, and logical blocks disclosed in embodiments of the 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 (Random Access Memory, RAM), read Only Memory (ROM), programmable Read Only Memory (Programmable Read-Only Memory, PROM), erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), and the like.
It is to be understood that the configuration shown in fig. 4 is merely illustrative, and that electronic device 400 may also include more or fewer components than those shown in fig. 4, or have a different configuration than that 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, a physical device such as a desktop, a notebook, a smart phone, an intelligent wearable device, a vehicle-mounted device, or 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 a plurality of devices, such as a server cluster, or the like.
Furthermore, the embodiment of the present application also provides a computer storage medium having a computer program stored thereon, which when executed by a computer, performs the steps of the registration method as in the above embodiment.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
Further, the units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Furthermore, functional modules in various embodiments of the present application may be integrated together to form a single portion, or each module may exist alone, or two or more modules may be integrated to form a single portion.
It should be noted that the functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM) random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
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 variations will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A registration method, applied to a server, the method comprising:
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 registers according to the registration response message.
2. The method of claim 1, wherein the step of 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 the 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 number of a preset digit positioned at the end of the first time stamp;
and splicing the random number and the digits with the preset digits at the tail of the first timestamp to generate the SIP registration password.
4. A method according to claim 3, wherein after said sending said registration response message to said client, said 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 or not;
if not, sending a registration failure message to the client;
if so, judging whether the number of the preset digits at the end in the SIP registration password is larger than or equal to the number of the preset digits at the end in the timestamp of the current time;
if yes, sending a message of successful registration to the client; otherwise, sending a registration failure message to the client.
5. A registration method, applied to a client, the method comprising:
transmitting 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 characterizes the authentication of the account information and the password information through 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 of claim 5, wherein 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 in 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 packet sent by the client after receiving the authentication success packet, where the registration application packet includes the account information;
the generation module is used for 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;
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 for 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 characterizes the authentication of the account information and the password information through the server, and the registration application message comprises the account information;
the receiving module is used for receiving the server to generate 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 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 complete communication 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, characterized in that the computer readable storage medium has stored thereon computer program instructions, which when read and run by a computer, perform the method according to any 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 CN114301881A (en) 2022-04-08
CN114301881B true 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 (9)

* 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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016167553A1 (en) * 2015-04-02 2016-10-20 Samsung Electronics Co., Ltd. Method for performing multiple authentications within service registration procedure
EP3588893B1 (en) * 2018-06-28 2023-03-08 Unify Patente GmbH & Co. KG Method and system for managing transmission resources in a sip-based communication system

Patent Citations (9)

* 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
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
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 (2)

* Cited by examiner, † Cited by third party
Title
M. Garcia-Martin 等.Diameter Session Initiation Protocol (SIP) Application (RFC4740).Diameter Session Initiation Protocol (SIP) Application (RFC4740).2019,全文. *
SIP注册服务器的研究与设计;彭焕峰;;电脑知识与技术(第32期);全文 *

Also Published As

Publication number Publication date
CN114301881A (en) 2022-04-08

Similar Documents

Publication Publication Date Title
US20220337580A1 (en) Systems and methods for phone number certification and verification
US11159674B2 (en) Multi-factor authentication of caller identification (ID) identifiers
US20090025075A1 (en) On-demand authentication of call session party information during a telephone call
US8634396B2 (en) Methods, devices, systems, and computer program products for registration of multi-mode communications devices
US8302175B2 (en) Method and system for electronic reauthentication of a communication party
TW201014315A (en) User identity authentication method, system thereof and identifying code generating maintenance subsystem
US11496319B2 (en) Method of identity authentication for voice over internet protocol call and related device
US20210226794A1 (en) Access control using proof-of-possession token
WO2006002068A2 (en) Method and apparatus for making accessible a set of services to users
WO2014130390A1 (en) Method and apparatus for providing trusted caller id services
EP1946528B1 (en) Method and apparatus to provide cryptographic identity assertion for the pstn
CN112929339B (en) Message transmitting method for protecting privacy
EP1680940B1 (en) Method of user authentication
JPH05347617A (en) Communication method for radio communication system
CN112398798B (en) Network telephone processing method, device and terminal
US20130183934A1 (en) Methods for initializing and/or activating at least one user account for carrying out a transaction, as well as terminal device
CN114301881B (en) Registration method, registration device, electronic device and computer-readable storage medium
CN101771684A (en) Internet compuphone authentication method and service system thereof
US8699675B2 (en) Method and apparatus for exchanging information in a voice communication system
EP1320975B1 (en) Internet protocol telephony security architecture
US8627439B2 (en) Processing communication events in a communications system
CN109257177B (en) Key generation method, system, mobile terminal, server and storage medium
EP2204030B1 (en) Transmission of messages
CN107995587B (en) Authentication method, authentication platform, authentication system and service provider platform
CN114726958A (en) Identity authentication method and device, electronic equipment and readable 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