CN114039956B - SIP registration service method, device, equipment and computer readable storage medium - Google Patents

SIP registration service method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN114039956B
CN114039956B CN202111174138.XA CN202111174138A CN114039956B CN 114039956 B CN114039956 B CN 114039956B CN 202111174138 A CN202111174138 A CN 202111174138A CN 114039956 B CN114039956 B CN 114039956B
Authority
CN
China
Prior art keywords
external
internal
registration
sip
binding
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
CN202111174138.XA
Other languages
Chinese (zh)
Other versions
CN114039956A (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.)
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information 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 China Mobile Communications Group Co Ltd, China Mobile Hangzhou Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202111174138.XA priority Critical patent/CN114039956B/en
Publication of CN114039956A publication Critical patent/CN114039956A/en
Application granted granted Critical
Publication of CN114039956B publication Critical patent/CN114039956B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1073Registration or de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1069Session establishment or de-establishment

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a method, a device, equipment and a computer readable storage medium for SIP registration service, wherein the method for SIP registration service comprises the following steps: receiving binding request information of binding an internal number sent by a client terminal; determining the identity information of the client terminal based on the binding request information, and converting the identity information into an internal number corresponding to the identity information; acquiring an external number to be bound, carrying out association binding on the internal number and the external number, and sending a registration request corresponding to the external number to an external SIP system; and determining whether the registration success authority of the internal number in the internal SIP system is opened or not according to the registration result information returned by the external SIP system based on the registration request. The invention realizes the associated registration between the internal number and the external number, and expands the capability of the SIP registration service system.

Description

SIP registration service method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of SIP technologies, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for SIP registration service.
Background
In an audio/video communication system based on SIP (Session Initiation Protocol ) protocol, when a user initiates a call, in order for the user to learn the address and call of the opposite party, SIP terminals of the two parties must register to a SIP server, and before the SIP terminal calls the opposite party, state check is required to be performed through the SIP registration server, and then call, route management and session processing can be performed. In the field of home scene communication and the field of enterprise communication adopting an ip pbx (voice over internet protocol) mode, there is a communication demand of one number with multiple terminals, that is, one public payment number can be used by multiple communication terminal devices at the same time, but at present, there is no related scheme for association registration between an internal number corresponding to the communication terminal device and an external number corresponding to the public payment number.
The foregoing description is provided for general background information and does not necessarily constitute prior art.
Disclosure of Invention
The invention mainly aims to provide a method, a device, equipment and a computer readable storage medium for SIP registration service, which aim to solve the technical problem that the internal number and the external number can not be associated and registered at present.
In order to achieve the above object, the present invention provides a SIP registration service method, including the steps of:
receiving binding request information of binding an internal number sent by a client terminal;
determining the identity information of the client terminal based on the binding request information, and converting the identity information into an internal number corresponding to the identity information;
acquiring an external number to be bound, carrying out association binding on the internal number and the external number, and sending a registration request corresponding to the external number to an external SIP system;
and determining whether the registration success authority of the internal number in the internal SIP system is opened or not according to the registration result information returned by the external SIP system based on the registration request.
Optionally, the step of determining whether the registration success authority of the internal number in the internal SIP system is opened according to the registration result information returned by the external SIP system based on the registration request includes:
if the received registration result information returned by the external SIP system based on the registration request is that the registration is successful, the registration success authority of the internal number in the internal SIP system is opened;
if the received registration result information returned by the external SIP system based on the registration request is that the registration fails, the registration success authority of the internal number in the internal SIP system is closed.
Optionally, if the received registration result information returned by the external SIP system based on the registration request is that the registration is successful, after the step that the registration success authority of the internal SIP system is development, the internal number includes:
acquiring registration record information of the internal number in an internal SIP system based on a preset period, and judging whether the registration record information is completely invalid;
and if all the registration record information is invalid, sending a cancellation request corresponding to the external number to an external SIP system.
Optionally, the step of associating and binding the internal number with the external number includes:
inquiring whether an internal SIP system has registration record information of the internal number;
if the internal SIP system has the registration record information of the internal number, executing the step of determining whether the registration success authority of the internal number in the internal SIP system is opened according to the registration result information returned by the external SIP system based on the registration request;
and if the internal SIP system does not have the registration record information of the internal number, executing the step of sending a registration request corresponding to the external number to the external SIP system.
Optionally, the step of obtaining the external number to be bound includes:
detecting whether the internal number has a specified binding identifier;
if the internal number has the appointed binding identification, determining an appointed external number corresponding to the appointed binding identification, and taking the appointed external number as the external number to be bound.
Optionally, after the step of detecting whether the internal number has a specified binding identifier, the method further includes:
and if the internal number does not have the appointed binding identification, selecting a hit external number from a preset public external number group, and taking the hit external number as an external number to be bound.
Optionally, the step of obtaining the external number to be bound includes:
judging whether the internal number has authentication information or not;
if the internal number has authentication information, judging whether the internal number is successfully authenticated or not based on the authentication information;
and if the internal number authentication is successful, executing the step of acquiring the external number to be bound.
In addition, to achieve the above object, the present invention also provides a SIP registration service apparatus, including:
the receiving unit is used for receiving the binding request information of the binding internal number sent by the client terminal;
The internal number generation unit is used for determining the identity information of the client terminal based on the binding request information and converting the identity information into an internal number corresponding to the identity information;
the external number proxy registration unit is used for acquiring an external number to be bound, carrying out association binding on the internal number and the external number, and sending a registration request corresponding to the external number to an external SIP system;
and the authority verification unit is used for determining whether the registration success authority of the internal number in the internal SIP system is opened according to the registration result information returned by the external SIP system based on the registration request.
In addition, in order to achieve the above object, the present invention also provides a SIP registration service device, where the SIP registration service device includes a memory, a processor, and a SIP registration service program stored in the memory and executable on the processor, and when the SIP registration service program is executed by the processor, the steps of the SIP registration service method described above are implemented.
In addition, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a SIP registration service program which, when executed by a processor, implements the steps of the SIP registration service method as described above.
The invention determines the ID information of the client terminal based on the binding request information by receiving the binding request information of the binding internal number sent by the client terminal, and converts the ID information into the internal number corresponding to the ID information, thereby creating a globally unique internal number corresponding to the client terminal based on the ID information corresponding to the client terminal, then, by obtaining the external number to be bound, associating and binding the internal number with the external number, and sending a registration request corresponding to the external number to an external SIP system, each internal number and external number have an association binding relation, so that when the external number is added to an SIP registration service system, the SIP registration service system can perform proxy registration on the external number based on the registration result information returned by the registration request, and further, by determining whether the internal number and the external number are open based on the registration success authority of the SIP registration request, the internal number and the external number are associated, the SIP registration association is generated, the internal number and the external number is shared to drive the SIP registration request, if the internal number and the external number are not successfully registered with the internal number are successfully registered, if the internal number is successfully registered with the internal SIP registration system, the internal number is successfully registered with the internal SIP registration request, the internal number is successfully registered with the internal SIP registration of the external number if the internal number is successfully registered with the internal number, the internal number is successfully registered with the internal SIP registration of the internal number, the internal number is successfully registered with the internal number, and if the internal number is successfully registered with the internal SIP registration of the internal number, the capabilities of the SIP registration service system are extended.
Drawings
FIG. 1 is a schematic diagram of a terminal/device structure of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic block diagram of a SIP registration service system according to an embodiment of the present invention;
fig. 3 is a flowchart of a first embodiment of a SIP registration service method according to the present invention;
fig. 4 is a flowchart of a second embodiment of the SIP registration service method of the present invention;
fig. 5 is a flowchart of a third embodiment of a SIP registration service method according to the present invention;
fig. 6 is a flowchart of a fourth embodiment of a SIP registration service method according to the present invention;
fig. 7 is a schematic diagram of a device unit of the SIP registration service device of the present invention;
FIG. 8 is a flow chart of internal number information management according to an embodiment of the present invention;
FIG. 9 is a flow chart of external number information management according to an embodiment of the present invention;
the achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
As shown in fig. 1, fig. 1 is a schematic diagram of a terminal structure of a hardware running environment according to an embodiment of the present invention.
The terminal in the embodiment of the invention is a SIP registration service device.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Optionally, the terminal may also include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and so on. Among other sensors, such as light sensors, motion sensors, and other sensors. In particular, the light sensor may comprise an ambient light sensor, which may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor, which may turn off the display screen and/or the backlight when the terminal device is moved to the ear. Of course, the terminal device may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, which are not described herein.
It will be appreciated by those skilled in the art that the terminal structure shown in fig. 1 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a SIP registration service program may be included in a memory 1005, which is a type of computer storage medium.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call a SIP registration service program stored in the memory 1005 and perform the following operations:
receiving binding request information of binding an internal number sent by a client terminal;
determining the identity information of the client terminal based on the binding request information, and converting the identity information into an internal number corresponding to the identity information;
acquiring an external number to be bound, carrying out association binding on the internal number and the external number, and sending a registration request corresponding to the external number to an external SIP system;
And determining whether the registration success authority of the internal number in the internal SIP system is opened or not according to the registration result information returned by the external SIP system based on the registration request.
For facilitating understanding of the present invention, please refer to fig. 2, fig. 2 is a schematic block diagram of a SIP registration service system according to an embodiment of the present invention, and the components shown in fig. 2 are not limited to the SIP registration service system, and may include more or fewer components than shown, or may be combined with certain components or different component arrangements.
As shown in fig. 2, the SIP registration service system includes a SIP registration service device and a data storage device. The SIP registration service device comprises an external number management module, an external number SIP registration and cancellation module of an external proxy, an internal number management module, an internal number SIP registration and cancellation module of the internal number received in the pair and an association module between the internal number and the external number.
The data storage device stores static data required when the SIP registration service device starts to operate, and dynamic data generated in the operation process. The SIP registration service device may use a general file system, a database system or a data cache system to store data, where the stored system is in the prior art and will not be described herein.
The SIP registration service device is mainly composed of 5 modules:
(1) An external number management module: external numbers within an external SIP system, which can perform SIP registration, de-registration, SIP calls on the external SIP system, which can include an IMS system of a telecommunications operator, a SIP communication service provider, etc., are added to, deleted from, and/or connected to the SIP registration service device.
(2) The module registers and de-registers the foreign agent external number SIP: the external number can be paged from the external SIP system, requiring the external number SIP to be registered with the external SIP system. The SIP registration service device completes registration and deregistration of the external number to the external SIP system agent through the module.
(3) An internal number management module: the SIP registration service device creates an internal number, and the internal number created by the internal number management module can be registered and de-registered on the SIP registration service device;
(4) A module for registering and deregistering the internal number SIP received in the pair: the internal number is capable of making SIP calls, SIP registration is required on the SIP registration service device, and the module completes registration and deregistration of the received internal number.
(5) An association module between the internal number and the external number: to realize the non-difference call between the internal number and the external number in the SIP call, the internal number and the external number are required to be associated, the internal number is mapped to one external number of a public external number pool by distributing the internal number to each terminal, and the intercommunication of the internal number and the external number call is realized by adopting a forwarding technical scheme. The content that these two numbers need to be associated mainly includes two aspects: 1. binding relation association between the internal number and the external number; 2. the SIP registration-de-registration procedure is associated between the internal number and the external number.
It will be understood by those skilled in the art that the following SIP registration service method is performed by the SIP registration service system or the SIP registration service apparatus.
Referring to fig. 3, the present invention provides a SIP registration service method, which in a first embodiment of the SIP registration service method includes the steps of:
step S100, receiving binding request information of binding internal numbers sent by a client terminal;
the client terminal refers to communication terminal equipment in which a user needs to bind an internal number.
Step S200, based on the binding request information, determining the identity information of the client terminal, and converting the identity information into an internal number corresponding to the identity information;
specifically, as shown in fig. 8, the internal number is created by the SIP registration service apparatus. In one embodiment, the SIP registration service device generates a globally unique internal number corresponding to the client terminal according to the identity information of the client terminal and a preset number generation algorithm, writes the globally unique internal number into the data storage device, and returns the globally unique internal number to the client terminal. In another embodiment, according to the identity information of the client terminal, the internal number attribute mapped by the identity information is determined from a preset information mapping table, and according to the internal number attribute, the internal number corresponding to the internal number attribute is selected from an internal number pool (a set of all internal numbers generated in advance) stored in the data storage device, and returned to the client terminal.
As known to those skilled in the art, since the internal number is used for the client terminal to perform SIP registration and cancellation with the SIP registration service device and subsequent call service, in order to ensure the uniqueness of each client terminal, when the internal number is created, that is, when the client terminal requests to obtain the internal number from the SIP registration service device, the client terminal is required to provide identification information representing uniqueness of its own identity.
The client terminal may include a hardware SIP terminal device and a soft SIP terminal. For the hardware SIP terminal equipment, the hardware SIP terminal equipment can comprise an SIP telephone, an intelligent sound box, an intelligent television, a camera and the like, and the product serial code of the equipment is required to be used as identity information. For a soft SIP terminal of a computer desktop, the MAC (Media Access Control, medium access control) address of the computer is required to be used as identity information, and for OTT (Over The Top) application software on a mobile phone, an account number used for logging in OTT application software is required to be used as identity information.
Step S300, obtaining an external number to be bound, carrying out association binding on the internal number and the external number, and sending a registration request corresponding to the external number to an external SIP system;
It can be understood that the internal numbers are in one-to-one correspondence with the identification information, but one external number can be bound by associating a plurality of internal numbers, and one external number can be bound by associating one internal number.
Specifically, as shown in fig. 9, the external number is created by the external SIP system, and is added to the SIP registration service system, so that the SIP registration service system can proxy and register to the external SIP system. The user or the third party system adds or deletes the external number to the SIP service device through the external HTTP interface provided by the SIP registration service device, and when the SIP service device receives the added or deleted external number, the data is written into the data storage device.
The external SIP system is configured to send a registration request of an external number to the external SIP system, and periodically write the registration result information into the data storage device, and the SIP registration service device periodically queries the data storage device for the registration result information.
Step S400, according to the registration result information returned by the external SIP system based on the registration request, whether the registration success authority of the internal number in the internal SIP system is opened is determined.
Further, the step S400: the step of determining whether the registration success authority of the internal number in the internal SIP system is opened according to the registration result information returned by the external SIP system based on the registration request includes:
step a, if the received registration result information returned by the external SIP system based on the registration request is that the registration is successful, the registration success authority of the internal number in the internal SIP system is open;
if the registration result information of the external number is that the registration is successful, the registration success authority of the internal number in the internal SIP system is set to be open, so that the internal number is allowed to register successfully in the internal SIP system, for example, when the internal number is in a cancellation state in the internal SIP system, the internal number is triggered to register successfully in the internal SIP system, and when the internal number is in a registration success state in the internal SIP system, the internal number is not processed.
And b, if the received registration result information returned by the external SIP system based on the registration request is that the registration fails, the registration success authority of the internal number in the internal SIP system is closed.
If the registration result information of the external number is that the registration fails, the registration success authority of the internal number in the internal SIP system is set to be closed, so that the internal number is not allowed to be successfully registered in the internal SIP system. For example, when the internal number is in the registration success state in the internal SIP system, the internal number is triggered to be logged off in the internal SIP system and logged off successfully, and when the internal number is in the login success state in the internal SIP system, the internal number is not processed. It should be noted that, the external number is periodically registered with the external SIP system, and the registration result information is written into the data storage device, and the SIP registration service device correspondingly periodically queries the data storage device for the registration result information, so as to determine in real time (periodically) whether the internal number opens the registration success authority in the internal SIP system.
The embodiment determines the identity information of the client terminal based on the binding request information by receiving the binding request information of the binding internal number sent by the client terminal, and converts the identity information into the internal number corresponding to the identity information based on the identity information corresponding to the client terminal, thereby creating a globally unique internal number corresponding to the client terminal based on the identity information corresponding to the client terminal, then, by obtaining the external number to be bound, associating and binding the internal number with the external number, and sending a registration request corresponding to the external number to an external SIP system, so that each internal number and external number have an association binding relation, when the external number is added to a SIP registration service system, the SIP registration service system can perform proxy registration on the external SIP system, and further, by determining whether the registration success authority of the internal number and the external number are open based on the registration result information returned by the external SIP system, the internal SIP system generates registration association, and drives the respective SIP number and the external number through shared SIP registration information, if the internal number and the internal SIP registration success registration authority of the external SIP system is not allowed to be successfully registered with the internal SIP system is successfully registered, if the internal SIP registration of the internal SIP system is successfully registered with the external SIP system is successfully registered, the internal SIP registration of the internal SIP system is not allowed, and if the internal SIP registration of the internal SIP registration success of the internal SIP registration system is successfully performed, the capabilities of the SIP registration service system are extended.
Further, referring to fig. 4, based on the first embodiment of the present invention, a second embodiment of the SIP registration service method of the present invention is proposed, and in this embodiment, after the step of performing association binding on the internal number and the external number, the method includes:
step S310, inquiring whether the internal SIP system has the registration record information of the internal number;
and judging whether the internal number is registered for the first time by inquiring whether the internal SIP system has the registration record information of the internal number.
The SIP registration service device should periodically query the data storage device for registration record information of whether the internal SIP system has the internal number.
If the internal SIP system has the registration record information of the internal number, step S400 is executed: determining whether the registration success authority of the internal number in the internal SIP system is opened according to registration result information returned by the external SIP system based on the registration request;
if the internal SIP system has the registration record information of the internal number, the internal number is determined not to be registered for the first time. If the internal number is not the SIP registration initiated to the SIP registration service device for the first time, inquiring the registration result information of the external number related to the internal number on the data storage device, judging whether the external number is successfully registered in the external SIP system according to the registration result information, if the received registration result information returned by the external SIP system based on the registration request is the successful registration, setting the registration success authority of the internal number in the internal SIP system to be open, and if the received registration result information returned by the external SIP system based on the registration request is the registration failure or is cancelled, setting the registration success authority of the internal number in the internal SIP system to be closed.
If the internal SIP system does not have the registration record information of the internal number, step S320 is executed: and sending a registration request corresponding to the external number to an external SIP system.
If the internal SIP system does not have the registration record information of the internal number, the internal number is determined to be registered for the first time. If the internal number is SIP registration initiated to the SIP registration service device for the first time, inquiring the external number bound by the internal number, triggering the external number to register to an external SIP system, and writing the registration result information of the external number into the data storage device.
In this embodiment, by querying whether the internal SIP system has the registration record information of the internal number, if the internal SIP system has the registration record information of the internal number, the step of determining whether the registration success authority of the internal number in the internal SIP system is open according to the registration result information returned by the external SIP system based on the registration request is performed, so as to determine whether the external number is registered in the external SIP system according to the registration result information, if the received registration result information returned by the external SIP system based on the registration request is registration success, the registration success authority of the internal number in the internal SIP system is set to be open, and if the received registration result information returned by the external SIP system based on the registration request is registration failure or logged out, the registration success authority of the internal number in the internal SIP system is set to be closed, thereby realizing the association of registration and logging-out between the internal number and the external number, effectively controlling the registration number of the internal number in the internal SIP system, and reducing the load pressure of the internal SIP system. And further, if the internal SIP system does not have the registration record information of the internal number, the step of sending a registration request corresponding to the external number to the external SIP system is performed, so that when the internal number bound by the external number is registered with the SIP registration service device for the first time, the external number is triggered to register with the external SIP system, and further, the SIP registration process of each SIP is driven by sharing the SIP registration result information of both parties (the internal number and the external number) in each SIP system, that is, when the internal number is judged to initiate SIP registration with the SIP registration service device for the first time, the external number is triggered to register in the external SIP system, so that the external number is successfully registered in the external SIP system, when other communication terminals call the external number through the external SIP system, the internal number bound by the external number is switched to be associated based on the internal SIP system, so as to realize synchronous call response of switching, thereby effectively improving the registration and cancellation of the internal number and the external number, and further expanding the capability of the SIP registration service system.
Further, referring to fig. 5, based on the first embodiment of the present invention, a third embodiment of the SIP registration service method of the present invention is provided, in this embodiment, if the received registration result information returned by the external SIP system based on the registration request is successful in registration, after the step of opening the registration success authority of the internal SIP system, the method includes:
step S500, acquiring registration record information of the internal number in an internal SIP system based on a preset period, and judging whether the registration record information is completely invalid;
if all the registration record information has failed, step S600 is executed: and sending a cancellation request corresponding to the external number to an external SIP system.
Wherein, the preset period-based refers to preset periods every interval. Wherein the expiration of the registration record information may characterize the expiration of the registration record information. It will be appreciated that if the internal number is de-registered with the internal SIP system, it is indicated that the registration record information for the internal SIP system has expired. As described above, one external number may be bound to a plurality of internal number associations, and one external number may be bound to one internal number association. When a plurality of internal numbers are associated and bound with one external number, the logout request corresponding to the external number is sent to the external SIP system only when all the registration record information corresponding to all the internal numbers which are associated and bound with the external number are invalid.
It should be noted that, it is necessary to determine whether all SIP registration information of all internal numbers bound to the external number has expired, and if all SIP registration information has expired, immediately or after (for example, 30 minutes after) logging out to the external SIP system, and delete external account registration result information on the storage device.
According to the embodiment, whether the registration record information of the internal number in the internal SIP system is completely invalid is judged by acquiring the registration record information based on a preset period, if the registration record information is completely invalid, a cancellation request corresponding to the external number is sent to the external SIP system, so that cancellation association is generated between the internal number and the external number, the respective SIP cancellation processes are driven by sharing the SIP cancellation result information of the opposite side, namely, whether all the internal numbers associated with the external number are completely cancelled by the internal SIP system is judged, if all the internal numbers are cancelled, the cancellation request of sending the external number to the external SIP system is triggered, so that the cancellation of the external number is successful, the association cancellation between the internal number and the external number is realized, the registration quantity of the external number to the external SIP system is effectively controlled, the load pressure of the external SIP system is reduced, and the capability of the SIP registration service system is further expanded. In the SIP registration service system, the internal number and the external number drive respective SIP cancellation processes by sharing the SIP cancellation result information of the opposite party.
Further, the step of obtaining the external number to be bound includes:
step c, judging whether the internal number has authentication information;
further, before the step of determining whether the internal number has authentication information, the method further includes:
step v, judging whether the internal number exists or not;
if the internal number exists, executing the step c, namely judging whether the internal number has authentication information or not.
Step d, if the internal number has authentication information, judging whether the internal number is successfully authenticated or not based on the authentication information;
and e, if the authentication of the internal number is successful, executing the step of acquiring the external number to be bound.
Before the SIP registration service device initiates SIP registration of the external number to the external SIP system, the SIP registration service device performs content authentication such as presence and authentication on the internal number.
In the embodiment, before the external number initiates the SIP registration to the external SIP system, the SIP registration service device performs content authentication such as presence and authentication on the internal number, so as to ensure the validity of the internal number.
Further, referring to fig. 6, based on the first embodiment of the present invention described above, a fourth embodiment of the SIP registration service method of the present invention is proposed, and in this embodiment, the step of obtaining the external number to be bound includes:
Step S710, detecting whether the internal number has a specified binding identifier;
and judging whether the internal number designates the external number to be bound or not by detecting whether the internal number has the designated binding identifier or not.
If the internal number has the specified binding identifier, step S720 is executed: and determining the appointed external number corresponding to the appointed binding identification, and taking the appointed external number as the external number to be bound.
If the internal number has the specified binding identifier, determining that the internal number specifies an external number to be bound, and executing: and determining the appointed external number corresponding to the appointed binding identification, and taking the appointed external number as the external number to be bound.
Further, after the step of detecting whether the internal number has the designated binding identifier, the method further includes:
if the internal number does not have the designated binding identifier, step S730 is executed: and selecting a hit external number from a preset public external number group, and taking the hit external number as an external number to be bound.
Specifically, based on a preset load balancing allocation algorithm, selecting a corresponding hit external number from a common external number group, and taking the hit external number as an external number to be bound.
If the internal number does not have the specified binding identifier, determining that the internal number does not specify the external number to be bound, selecting a corresponding external number from a public external number group (public external number pool) through a preset load balancing allocation algorithm, and performing association binding on the selected external number and the internal number.
When the user or the third system requests the internal number to bind the external number from the SIP registration service device, the external number bound by the internal number is not specified, and the SIP registration service device calculates and distributes an external number for the internal number through a preset distribution algorithm. In order to balance the number of the bound internal numbers of each external public number, a preset load balancing allocation algorithm is adopted to allocate the public external numbers, and the load balancing allocation algorithm can be set by a person skilled in the art according to actual needs, and the embodiment is not limited specifically.
In one embodiment, the load balancing allocation algorithm includes a common external number polling allocation method, that is, by allocating an external number from a common external number group in turn in order for internal number binding by using registration requests of internal numbers, without concern for the case of the external number actually being bound internal number.
In another embodiment, the load balancing allocation algorithm includes a public external number polling allocation method, that is, by a random algorithm of the system, external numbers in the public external number group are randomly selected for internal number binding association according to the total number of the public external number group. As can be seen from the probability statistics theory, as the number of allocation times increases, the actual effect is more and more similar to that of the average allocation of each external number, that is, the effect of the polling allocation algorithm.
In yet another embodiment, the load balancing allocation algorithm comprises a common external number weighted random allocation method, i.e. as with the common external number weighted round robin allocation method, the weighted random method is also allocated according to the weight of the external number. Except that it is to randomly assign external numbers according to weights rather than sequentially.
In another embodiment, the load balancing allocation algorithm includes a common external number minimum association number allocation method, that is, an external number of an internal number least associated at the current time is always allocated from a common external number group every time an external number allocation is requested.
Further, the load balancing allocation algorithm includes an internal number hash allocation method, and the step of selecting a corresponding hit external number from the common external number group based on a preset load balancing allocation algorithm includes:
F, obtaining a hash value based on a hash function according to the internal number;
step g, determining the total number of the public external number group;
step h, based on the hash value and the total number of the numbers, performing modulo operation to obtain the number serial number of the public external number group;
and i, selecting an external number corresponding to the number from the public external number group based on the number, and taking the external number as a corresponding hit external number.
The idea of the internal number hash allocation method is that according to the internal number, a hash value is obtained through hash function calculation, the hash value is used for carrying out modulo operation on the total number of the public external number group, and the obtained result is that the serial number of the external number in the public external number group is to be allocated, namely the allocated external number is positioned in the public external number group through the serial number. When the internal number hash allocation method is adopted for allocation, the same internal number is allocated each time when the common external number group is unchanged in size.
According to the embodiment, the external numbers are selected and allocated through the internal number hash allocation method, so that the number of the internal numbers bound with each external number is balanced, and the utilization rate of the external numbers is effectively improved.
Further, the load balancing allocation algorithm further includes a common external number weighted polling allocation method, and the step of selecting a corresponding hit external number from the common external number group based on the preset load balancing allocation algorithm includes:
step j, determining the number weight ratio of each external number based on the number attribute of each external number in the public external number group;
and k, selecting the external number corresponding to the number weight from the common external number group as the corresponding hit external number according to the sequence from the large number weight ratio to the small number weight ratio.
The different external numbers have different weights in the use degree due to different factors such as telecom tariffs, reliability of number calls, importance degree of numbers and the like, for example, the internal numbers bind the numbers with low telecom tariffs and high reliability of number calls as far as possible. The weighted round robin allocation method is well applicable to this scenario. The weighted polling allocation method allocates the external numbers in sequence from high to low according to the weight of the external numbers, thereby effectively improving the utilization rate of the external numbers. The number of the internal numbers bound to each external number is balanced, and the number weight is set by fully utilizing the number attribute of the external number, so that the requirements of clients are more matched, and the robustness of the SIP registration service in the embodiment of the invention is improved.
In addition, referring to fig. 7, an embodiment of the present invention further provides a SIP registration service apparatus, including:
a receiving unit a10, configured to receive binding request information of a binding internal number sent by a client terminal;
an internal number generating unit a20, configured to determine, based on the binding request information, identification information of the client terminal, and convert the identification information into an internal number corresponding to the identification information;
the external number proxy registration unit A30 is used for acquiring an external number to be bound, carrying out association binding on the internal number and the external number, and sending a registration request corresponding to the external number to an external SIP system;
and the authority verification unit A40 is used for determining whether the registration success authority of the internal number in the internal SIP system is opened according to the registration result information returned by the external SIP system based on the registration request.
Alternatively, the authority verification unit a40 is configured to:
if the received registration result information returned by the external SIP system based on the registration request is that the registration is successful, the registration success authority of the internal number in the internal SIP system is opened;
if the received registration result information returned by the external SIP system based on the registration request is that the registration fails, the registration success authority of the internal number in the internal SIP system is closed.
Optionally, the SIP registration service apparatus further includes an external number proxy cancellation unit for:
acquiring registration record information of the internal number in an internal SIP system based on a preset period, and judging whether the registration record information is completely invalid;
and if all the registration record information is invalid, sending a cancellation request corresponding to the external number to an external SIP system.
Optionally, the SIP registration service apparatus further includes a query unit, configured to:
inquiring whether an internal SIP system has registration record information of the internal number;
if the internal SIP system has the registration record information of the internal number, executing the step of determining whether the registration success authority of the internal number in the internal SIP system is opened according to the registration result information returned by the external SIP system based on the registration request;
and if the internal SIP system does not have the registration record information of the internal number, executing the step of sending a registration request corresponding to the external number to the external SIP system.
Optionally, the SIP registration service apparatus further includes an external number creation unit configured to:
Detecting whether the internal number has a specified binding identifier;
if the internal number has the appointed binding identification, determining an appointed external number corresponding to the appointed binding identification, and taking the appointed external number as the external number to be bound.
Optionally, the external number creation unit is configured to:
and if the internal number does not have the appointed binding identification, selecting a hit external number from a preset public external number group, and taking the hit external number as an external number to be bound.
Optionally, the SIP registration service apparatus further includes an authentication unit for:
judging whether the internal number has authentication information or not;
if the internal number has authentication information, judging whether the internal number is successfully authenticated or not based on the authentication information;
and if the internal number authentication is successful, executing the step of acquiring the external number to be bound.
The steps of implementing each functional unit of the SIP registration service device may refer to each embodiment of the SIP registration service method of the present invention, which is not described herein again.
In addition, the present invention also provides a SIP registration service device, which includes: a memory, a processor, and a SIP registration service stored on the memory; the processor is configured to execute the SIP registration service program to implement the steps of the embodiments of the SIP registration service method described above.
The present invention also provides a computer readable storage medium storing one or more programs executable by one or more processors for implementing the steps of the above-described SIP registration service method embodiments.
The specific implementation manner of the computer readable storage medium of the present invention is basically the same as that of each embodiment of the SIP registration service method described above, and will not be repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (8)

1. A method of SIP registration service, the method of SIP registration service comprising the steps of:
Receiving binding request information of binding an internal number sent by a client terminal;
determining the identity information of the client terminal based on the binding request information, and converting the identity information into an internal number corresponding to the identity information;
acquiring an external number to be bound, carrying out association binding on the internal number and the external number, and sending a registration request corresponding to the external number to an external SIP system;
determining whether the registration success authority of the internal number in the internal SIP system is opened according to registration result information returned by the external SIP system based on the registration request;
the step of obtaining the external number to be bound comprises the following steps:
detecting whether the internal number has a specified binding identifier;
if the internal number has the appointed binding identification, determining an appointed external number corresponding to the appointed binding identification, and taking the appointed external number as an external number to be bound;
after the step of detecting whether the internal number has the designated binding identifier, the method further includes:
if the internal number does not have the appointed binding identification, selecting a hit external number from a preset public external number group, and taking the hit external number as an external number to be bound;
The step of selecting the hit external number from the preset public external number group comprises the following steps:
determining the number weight ratio of each external number based on the number attribute of each external number in the public external number group;
and selecting the external number corresponding to the number weight from the common external number group as a corresponding hit external number according to the sequence of the number weight ratio from large to small.
2. The SIP registration service method according to claim 1, wherein the step of determining whether the registration success authority of the internal number in the internal SIP system is opened according to the registration result information returned by the external SIP system based on the registration request includes:
if the received registration result information returned by the external SIP system based on the registration request is that the registration is successful, the registration success authority of the internal number in the internal SIP system is opened;
if the received registration result information returned by the external SIP system based on the registration request is that the registration fails, the registration success authority of the internal number in the internal SIP system is closed.
3. The SIP registration service method according to claim 2, wherein if the received registration result information returned by the external SIP system based on the registration request is that the registration is successful, the internal number includes, after the step of opening a registration success authority of the internal SIP system:
Acquiring registration record information of the internal number in an internal SIP system based on a preset period, and judging whether the registration record information is completely invalid;
and if all the registration record information is invalid, sending a cancellation request corresponding to the external number to an external SIP system.
4. The SIP registration service method of claim 1, wherein the step of associating and binding the internal number with the external number comprises:
inquiring whether an internal SIP system has registration record information of the internal number;
if the internal SIP system has the registration record information of the internal number, executing the step of determining whether the registration success authority of the internal number in the internal SIP system is opened according to the registration result information returned by the external SIP system based on the registration request;
and if the internal SIP system does not have the registration record information of the internal number, executing the step of sending a registration request corresponding to the external number to the external SIP system.
5. The SIP registration service method according to claim 1, wherein the step of acquiring the external number to be bound is preceded by:
Judging whether the internal number has authentication information or not;
if the internal number has authentication information, judging whether the internal number is successfully authenticated or not based on the authentication information;
and if the internal number authentication is successful, executing the step of acquiring the external number to be bound.
6. A SIP registration service apparatus, characterized in that the SIP registration service apparatus comprises:
the receiving unit is used for receiving the binding request information of the binding internal number sent by the client terminal;
the internal number generation unit is used for determining the identity information of the client terminal based on the binding request information and converting the identity information into an internal number corresponding to the identity information;
the external number proxy registration unit is used for acquiring an external number to be bound, carrying out association binding on the internal number and the external number, and sending a registration request corresponding to the external number to an external SIP system;
the authority verification unit is used for determining whether the registration success authority of the internal number in the internal SIP system is opened according to the registration result information returned by the external SIP system based on the registration request;
The SIP registration service apparatus further includes an external number creation unit configured to:
detecting whether the internal number has a specified binding identifier;
if the internal number has the appointed binding identification, determining an appointed external number corresponding to the appointed binding identification, and taking the appointed external number as an external number to be bound;
if the internal number does not have the appointed binding identification, selecting a hit external number from a preset public external number group, and taking the hit external number as an external number to be bound;
wherein, the step of selecting the hit external number from the preset public external number group comprises the following steps:
determining the number weight ratio of each external number based on the number attribute of each external number in the public external number group;
and selecting the external number corresponding to the number weight from the common external number group as a corresponding hit external number according to the sequence of the number weight ratio from large to small.
7. A SIP registrar service apparatus, characterized in that the SIP registrar service apparatus comprises: memory, a processor and a SIP registration service program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the SIP registration service method of any of claims 1 to 5.
8. A computer readable storage medium, having stored thereon a SIP registration service program, which when executed by a processor, implements the steps of the SIP registration service method according to any of claims 1 to 5.
CN202111174138.XA 2021-10-08 2021-10-08 SIP registration service method, device, equipment and computer readable storage medium Active CN114039956B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111174138.XA CN114039956B (en) 2021-10-08 2021-10-08 SIP registration service method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111174138.XA CN114039956B (en) 2021-10-08 2021-10-08 SIP registration service method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114039956A CN114039956A (en) 2022-02-11
CN114039956B true CN114039956B (en) 2023-11-21

Family

ID=80134752

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111174138.XA Active CN114039956B (en) 2021-10-08 2021-10-08 SIP registration service method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114039956B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104539818A (en) * 2014-12-26 2015-04-22 深圳联友科技有限公司 Method for IP phone to achieve multiple device standby and system
CN106686582A (en) * 2016-12-30 2017-05-17 上海禹为通信技术有限公司 Fixed line telephone number mobility achieving method and system
CN109688278A (en) * 2018-08-27 2019-04-26 平安科技(深圳)有限公司 Softphone authentication registration method, apparatus, equipment and computer readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2222106A1 (en) * 2009-02-24 2010-08-25 Research In Motion Limited Method and system for registering a presence user with a presence service
US8601146B2 (en) * 2009-10-21 2013-12-03 Tekelec, Inc. Methods, systems, and computer readable media for session initiation protocol (SIP) identity verification
US8737304B2 (en) * 2011-03-01 2014-05-27 Tekelec, Inc. Methods, systems, and computer readable media for hybrid session based diameter routing
CN112801669A (en) * 2018-10-25 2021-05-14 创新先进技术有限公司 Method, device and equipment for identity authentication, number storage and sending and number binding

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104539818A (en) * 2014-12-26 2015-04-22 深圳联友科技有限公司 Method for IP phone to achieve multiple device standby and system
CN106686582A (en) * 2016-12-30 2017-05-17 上海禹为通信技术有限公司 Fixed line telephone number mobility achieving method and system
CN109688278A (en) * 2018-08-27 2019-04-26 平安科技(深圳)有限公司 Softphone authentication registration method, apparatus, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN114039956A (en) 2022-02-11

Similar Documents

Publication Publication Date Title
US8494520B2 (en) Systems and methods for providing centralized subscriber session state information
EP1695521B1 (en) Application server adressing
US8750909B2 (en) Method, system, and apparatus for processing a service message with a plurality of terminals
CN102273238B (en) Creating a globally unique identifier of a subscriber device
US7778231B2 (en) System and method of communication in an IP multimedia subsystem network
US9197578B2 (en) High-availability remote-authentication dial-in user service
CN102377617A (en) Systems, methods, and apparatus to monitor and authenticate mobile internet activity
US20090094611A1 (en) Method and Apparatus for Load Distribution in Multiprocessor Servers
CN107634934B (en) Visual communication management method and device
US10931723B2 (en) Solution for establishing a communication session
KR20070067927A (en) System for providing share of contents based on packet network in voice comunication based on circuit network
US8949966B2 (en) Method and system for protecting a service access link
KR20190096589A (en) System and method for providing conversational contents
CN105230091A (en) Make a call in a communications system
CN114039956B (en) SIP registration service method, device, equipment and computer readable storage medium
US9143536B2 (en) Determining a location address for shared data
WO2022247497A1 (en) User data system management method, communication device, and storage medium
KR102326625B1 (en) Service providing system, terminal and processing method of service providing system
CA2682063C (en) Network node for providing remote client deactivation
CN106992995A (en) View data shares display methods and system
CN105376727A (en) Data card processing method and device
US11956302B1 (en) Internet protocol version 4-to-version 6 redirect for application function-specific user endpoint identifiers
CA2939988C (en) Ims communication method and system using preconditions
EP1515514A1 (en) System and method for real-time data distribution
CN114493578A (en) User registration method and device, storage medium and server

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