CN107426194B - Call connection method, device, server, electronic equipment and storage medium - Google Patents

Call connection method, device, server, electronic equipment and storage medium Download PDF

Info

Publication number
CN107426194B
CN107426194B CN201710526345.4A CN201710526345A CN107426194B CN 107426194 B CN107426194 B CN 107426194B CN 201710526345 A CN201710526345 A CN 201710526345A CN 107426194 B CN107426194 B CN 107426194B
Authority
CN
China
Prior art keywords
virtual
call
server
electronic equipment
telephone number
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.)
Expired - Fee Related
Application number
CN201710526345.4A
Other languages
Chinese (zh)
Other versions
CN107426194A (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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201710526345.4A priority Critical patent/CN107426194B/en
Publication of CN107426194A publication Critical patent/CN107426194A/en
Application granted granted Critical
Publication of CN107426194B publication Critical patent/CN107426194B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/1101Session protocols
    • H04L65/1104Session initiation protocol [SIP]
    • 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
    • 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
    • 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

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 embodiment of the invention provides a call connection method, a call connection device, a server, electronic equipment and a storage medium, which are used for solving the problem that a large amount of performance is consumed because the electronic equipment is always connected with a virtual operator after program initialization and SIP service registration are successful. Wherein, the method comprises the following steps: the method comprises the steps that a server receives a call request aiming at a virtual telephone number sent by a virtual operator; the server sends an incoming call notification to the electronic equipment when the call request is allowed; the server receives a registration success notification sent by the electronic device; and the server calls a call interface of the virtual operator to send a call invitation instruction to the electronic equipment. By implementing the embodiment of the invention, the performance consumption of the electronic equipment can be reduced.

Description

Call connection method, device, server, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of communication, in particular to a call connection method, a call connection device, a server, electronic equipment and a storage medium.
Background
The electronic device applies for a Virtual phone number through a Virtual Network Operator (VNO) on the Network, and establishes a communication connection with the VNO using the Virtual phone number through a Session Initiation Protocol (SIP).
In the prior art, when initializing a call application program of a VNO, an electronic device performs SIP registration with the VNO, and maintains connection with the VNO all the time after successful registration; when a third party dials the virtual phone number of the electronic equipment, the VNO sends a notification of the call request to a server of the electronic equipment; after receiving the notification of the call request, the server judges whether to authorize the call request, and if so, the server calls back the call interface of the virtual operator; and finally, the VNO starts to initiate a call invitation command to the electronic equipment, and the electronic equipment displays an incoming call interface. Since the electronic device maintains a connection with the virtual operator all the time after the program is initialized and the SIP service is successfully registered, a lot of performance is consumed.
Disclosure of Invention
The embodiment of the invention provides a call connection method, a call connection device, a server, electronic equipment and a storage medium, which are used for solving the problem that a large amount of performance is consumed because the electronic equipment is always connected with a virtual operator after program initialization and SIP service registration are successful.
A first aspect of an embodiment of the present invention provides a call connection method, including:
the method comprises the steps that a server receives a call request aiming at a virtual telephone number sent by a virtual operator, wherein the virtual telephone number is a telephone number distributed by the virtual operator for electronic equipment;
the server sends an incoming call notification to the electronic equipment when the call request is allowed, wherein the incoming call notification is used for notifying the electronic equipment to receive the call request;
the server receives a registration success notification sent by the electronic device, wherein the registration success notification is used for notifying the server that SIP registration of the electronic device to the virtual operator for the virtual telephone number is successful;
and the server calls a call interface of the virtual operator to send a call invitation instruction to the electronic equipment, wherein the call invitation instruction is used for indicating the electronic equipment to receive the call of the incoming call number of the call request.
With reference to the first aspect of the embodiment of the present invention, in a first possible implementation manner of the first aspect of the embodiment of the present invention, the method further includes:
the server verifies the incoming call number;
and when the incoming call number passes the verification, the server allows the call request.
With reference to the first possible implementation manner of the first aspect of the embodiment of the present invention, in a second possible implementation manner of the first aspect of the embodiment of the present invention, the verifying, by the server, the incoming call number includes:
and when the server cannot search the telephone number matched with the incoming call number in a preset harassment number library, confirming that the number verification of the call request is passed.
A second aspect of the embodiments of the present invention provides another call connection method, including:
the method comprises the steps that an electronic device receives an incoming call notification sent by a server, wherein the incoming call notification is used for notifying the electronic device to receive a call request aiming at a virtual telephone number, and the virtual telephone number is a telephone number distributed to the electronic device by a virtual operator;
the electronic equipment performs SIP registration with the virtual operator aiming at the virtual telephone number;
when the SIP registration is successful, the electronic equipment sends a registration success notification to the server, wherein the registration success notification is used for notifying the server that the SIP registration is successful;
and the electronic equipment receives a call invitation instruction sent by the server calling the call interface of the virtual operator, wherein the call invitation instruction is used for indicating the electronic equipment to receive the call of the incoming call number of the call request.
With reference to the second aspect of the present embodiment, in a first possible implementation manner of the second aspect of the present embodiment, before the electronic device performs SIP registration with the virtual carrier for the virtual phone number, the method further includes:
the electronic equipment acquires a gateway identifier of the virtual operator;
and when the gateway identification is matched with a preset gateway identification, the electronic equipment executes the step of performing SIP registration on the virtual telephone number to the virtual operator.
With reference to the second aspect of the present invention or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect of the present invention, after the electronic device receives a call invitation instruction sent by the server invoking a call interface of the virtual operator, the method further includes:
the electronic equipment searches number information corresponding to the incoming call number, and displays the incoming call number and the number information on a display interface of the electronic equipment, wherein the number information comprises at least one of contact information, number category, attribution and operator;
and when the electronic equipment detects that the call between the incoming call number and the virtual telephone number is finished, logging off the SIP registration.
A third aspect of an embodiment of the present invention provides a call connection device, including:
the device comprises a first receiving unit, a second receiving unit and a third receiving unit, wherein the first receiving unit is used for receiving a call request aiming at a virtual telephone number sent by a virtual operator, and the virtual telephone number is a telephone number distributed by the virtual operator for electronic equipment;
a sending unit, configured to send an incoming call notification to the electronic device when the call request is allowed, where the incoming call notification is used to notify the electronic device to receive the call request;
a second receiving unit, configured to receive a registration success notification sent by the electronic device, where the registration success notification notifies the server that SIP registration of the electronic device to the virtual carrier for the virtual phone number is successful;
and the calling unit is used for calling a communication interface of the virtual operator to send a communication invitation instruction to the electronic equipment, wherein the communication invitation instruction is used for indicating the electronic equipment to receive the calling of the incoming call number of the communication request.
A fourth aspect of the embodiments of the present invention provides another call connection apparatus, including:
a first receiving unit, configured to receive an incoming call notification sent by a server, where the incoming call notification is used to notify an electronic device to receive a call request for a virtual phone number, and the virtual phone number is a phone number allocated to the electronic device by a virtual operator;
a registration unit configured to perform SIP registration with the virtual operator for the virtual phone number;
a sending unit, configured to send a registration success notification to the server when the SIP registration is successful, where the registration success notification is used to notify the server that the SIP registration is successful;
and the calling unit is used for receiving a call invitation instruction sent by the server calling the call interface of the virtual operator, wherein the call invitation instruction is used for indicating the electronic equipment to receive the call of the incoming call number of the call request.
A fifth aspect of an embodiment of the present invention provides a server, including: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the server; the memory is used for storing executable program codes; the processor reads the executable program code stored in the memory to run a program corresponding to the executable program code, so as to execute a call connection method provided by the first aspect of the embodiments of the present invention.
A sixth aspect of the present embodiment provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a call connection method provided in the first aspect of the present embodiment.
A seventh aspect of the embodiments of the present invention provides an application program, where the application program is configured to execute, when running, the call connection method provided in the first aspect of the embodiments of the present invention.
An eighth aspect of the embodiments of the present invention provides an electronic device, including: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute a call connection method provided by the second aspect of the embodiment of the present invention.
A ninth aspect of the embodiments of the present invention provides a storage medium, where the storage medium is used to store an application program, and the application program is used to execute, when running, a call connection method provided in the second aspect of the embodiments of the present invention.
A tenth aspect of the embodiment of the present invention provides an application program, where the application program is configured to execute the call connection method provided in the second aspect of the embodiment of the present invention when running.
In the embodiment of the invention, a call request aiming at a virtual telephone number sent by a virtual operator is received, when the call request is allowed, an incoming call notice is sent to the electronic equipment, a registration success notice sent by the electronic equipment is received, and a call interface of the virtual operator is called to the electronic equipment. The successful registration notification is used for indicating that the electronic equipment performs SIP registration for the incoming call notification and the registration is successful, and then indicating that the virtual operator establishes connection with the electronic equipment, and the virtual telephone number is a telephone number allocated by the virtual operator for the electronic equipment, that is, when a call request is made for the virtual telephone number of the electronic equipment and the server allows the call request, the electronic equipment performs SIP registration instead of performing SIP registration after the virtual telephone number is enabled, and the connection with the virtual operator is maintained, so that the performance consumption of the electronic equipment is saved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a call connection method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating another call connection method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a call connection device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another call connection device provided in the embodiment of the present invention;
fig. 5 is a timing diagram of a call connection system according to an embodiment of the present invention;
FIG. 6 is a block diagram of a server provided by an embodiment of the present invention;
fig. 7 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and "third," etc. in the description and claims of the invention and the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic device described in the embodiment of the present invention may include a smart phone (such as an Android phone), a tablet computer, a palmtop computer, a notebook computer, a Mobile Internet device (MID, Mobile Internet Devices), a wearable device, and the like, and the electronic device is merely an example, and is not exhaustive and includes, but is not limited to, an electronic device.
The embodiment of the invention provides a call connection method, a call connection device, a server and electronic equipment, which are used for solving the problem that a large amount of performance is consumed because the electronic equipment is always connected with a virtual operator after a program is initialized and SIP service registration is successful. The following are detailed below.
Referring to fig. 1, fig. 1 is a flowchart illustrating a call connection method according to an embodiment of the present invention. As shown in fig. 1, the method may include the following steps.
Step S101, the server receives a call request for a virtual phone number sent by a virtual operator.
A virtual operator refers to a partner that possesses one or more capabilities (such as technical capabilities, equipment provisioning capabilities, market capabilities, etc.) and forms a cooperative relationship with a telecommunications operator on a certain service or services.
Session initiation protocol a text-based application-layer control protocol for creating, modifying and releasing sessions of one or more participants.
In the embodiment of the invention, the electronic equipment applies for a virtual telephone number through a virtual operator on the network and establishes communication connection with the virtual operator by using the virtual telephone number through a session initiation protocol. That is, the virtual phone number is a phone number allocated by the virtual operator to the electronic device, and when the electronic device performs SIP registration on the virtual phone number and the virtual operator, the electronic device can use the virtual phone number to make a call, receive a call, send or receive a message, and the like. The virtual operator is connected with the server of the electronic equipment, and after receiving the call request aiming at the virtual telephone number, the virtual operator sends the call request to the server of the electronic equipment.
Step S102, when the call request is allowed, the server sends an incoming call notification to the electronic equipment.
And the server can allow the call request to send the incoming call notification to the electronic equipment under the condition that the communication condition allows. The incoming call notification is used for notifying the electronic equipment to receive a call request.
Optionally, the server verifies the incoming call number of the call request; and when the incoming call number passes the verification, allowing the call request.
That is to say, the server verifies the incoming call number of the call request, and if and only if the verification is passed, the server sends an incoming call notification to the electronic equipment to screen the incoming call number or the current communication condition of the call request, so that the situations of answering a harassing call and communication failure are avoided.
Wherein, the server verifies the incoming call number, including: and when the server cannot search the telephone number matched with the incoming call number in the preset harassment number library, confirming that the number verification of the call request is passed. The embodiment of the present invention does not limit the execution condition for the call request to be allowed.
The preset harassment number library may be a harassment telephone number stored in the server, or may also be a telephone number corresponding to a blacklist set on the electronic device, and the telephone number in the preset harassment number library may also include a telephone number associated therewith, for example, another virtual telephone number, another number of a holder corresponding to a Subscriber Identity Module (SIM) number, and the like. That is to say, if the incoming call number is not a telephone number in the preset harassment number library, the incoming call number is verified, an incoming call notification is sent to the electronic equipment, the incoming call number is screened, and the anti-harassment capability is improved.
Step S103, the server receives the registration success notification sent by the electronic device.
In the embodiment of the present invention, the registration success notification is used to notify the server that SIP registration of the electronic device to the virtual operator for the virtual phone number is successful. Namely, the electronic equipment performs SIP registration for the incoming call notification, and after the registration is successful, the registration success notification is sent to the server, so that the connection between the virtual operator and the electronic equipment can be established.
Optionally, the electronic device obtains a gateway identifier of the virtual operator; and when the gateway identification is matched with the preset gateway identification, the electronic equipment executes the step of performing SIP registration to the virtual operator aiming at the virtual telephone number.
That is, when the preset gateway identifier of the virtual phone number matches the gateway identifier of the virtual operator, it indicates that the virtual phone number is the phone number applied on the virtual operator, and the SIP registration can be completed, and the connection with the illegal virtual operator is prevented by verification, thereby improving the security of the call.
And step S104, the server calls a call interface of the virtual operator to send a call invitation instruction to the electronic equipment.
The call ring interface is an interface for special calling, and the call Invite instruction SIP Invite is used for instructing the electronic device to receive a call of an incoming call number of a call request.
For example, assuming that the application 1 is a call application of a virtual carrier, the user installs the application 1 on the electronic device and registers a virtual phone number of 12345678900. When detecting that the telephone number is 12345678911 dialing 12345678900 in virtual operation, sending a call request to a server of the electronic device, and finding that 12345678911 is a non-harassing number by searching an address list, the server sends an incoming call notification to the electronic device, so that the electronic device performs SIP registration according to the incoming call notification, sends a registration success notification to the server after the registration is completed, and calls a ring interface of a virtual operator to send an SIP Invite instruction to the electronic device, namely, the electronic device displays 12345678900 incoming calls.
In the call connection method described in fig. 1, since the virtual phone number is a phone number allocated by the virtual operator to the electronic device, that is, when a call request is made to the virtual phone number of the electronic device and the server allows the call request, the electronic device performs SIP registration instead of performing SIP registration after the virtual phone number is enabled, and maintains connection with the virtual operator, thereby saving performance consumption of the electronic device.
Referring to fig. 2, fig. 2 is a flowchart illustrating another call connection method according to an embodiment of the present invention. As shown in fig. 2, the method may include the following steps.
Step S201, the electronic device receives an incoming call notification sent by the server.
In the embodiment of the invention, the incoming call notification is used for notifying the electronic equipment to receive the call request, and the virtual telephone number is a telephone number distributed to the electronic equipment by a virtual operator.
Step S202, the electronic equipment registers SIP with a virtual operator aiming at the virtual telephone number.
Optionally, acquiring a gateway identifier of a virtual operator; and when the gateway identification is matched with the preset gateway identification, executing the step of performing SIP registration for the incoming call notification.
That is, when the preset gateway identifier of the virtual phone number matches the gateway identifier of the virtual operator, it indicates that the virtual phone number is the phone number applied on the virtual operator, and the SIP registration can be completed, and the connection with the illegal virtual operator is prevented by verification, thereby improving the security of the call.
Step S203, when the SIP registration is successful, the electronic equipment sends a registration success notice to the server.
In the embodiment of the present invention, the registration success notification is used to indicate that the terminal performs SIP registration for the incoming call notification and the registration is successful. Namely, the terminal performs SIP registration for the incoming call notification, and after the registration is successful, the registration success notification is sent to the server, so that the connection between the virtual operator and the terminal can be established.
Step S204, the electronic equipment receives a call invitation instruction sent by the server calling the call interface of the virtual operator.
Optionally, after the electronic device receives a call invitation instruction sent by the server calling the call interface of the virtual operator, the method further includes: the electronic equipment searches number information corresponding to the incoming call number, and displays the incoming call number and the number information on a display interface of the electronic equipment, wherein the number information comprises at least one of contact information, number types, attributions and operators; and when the electronic equipment detects that the call between the incoming call number and the virtual telephone number is ended, the SIP registration is cancelled.
That is to say, the electronic equipment searches the number information corresponding to the incoming call number, displays the number information and displays an interface, and improves the convenience of operation. And because the electronic equipment carries out SIP registration aiming at the incoming call number and the virtual telephone number in the incoming call notification, namely the SIP registration is ended after the call connection is ended, the performance consumption of the electronic equipment is saved.
In the call connection method described in fig. 2, since the virtual phone number is a phone number allocated by the virtual operator to the electronic device, that is, when a call request is made to the virtual phone number of the electronic device and the server allows the call request, the electronic device performs SIP registration instead of performing SIP registration after the virtual phone number is enabled, and maintains connection with the virtual operator, thereby saving performance consumption of the electronic device.
Referring to fig. 3, fig. 3 is a structural diagram of a call connection device according to an embodiment of the present invention. As shown in fig. 3, the apparatus 300 may include:
the first receiving unit 101 is configured to receive a call request sent by a virtual operator for a virtual phone number, where the virtual phone number is a phone number allocated by the virtual operator for an electronic device.
A sending unit 102, configured to send an incoming call notification to the electronic device when the call request is allowed, where the incoming call notification is used to notify the electronic device to receive the call request.
A second receiving unit 103, configured to receive a registration success notification sent by the electronic device, where the registration success notification server notifies the electronic device that SIP registration performed with respect to the virtual phone number with respect to the virtual carrier is successful.
The calling unit 104 is configured to invoke a call interface of the virtual operator to send a call invitation instruction to the electronic device, where the call invitation instruction is used to instruct the electronic device to receive a call of an incoming call number of the call request.
Optionally, the apparatus 300 further comprises:
a verification unit 105 for verifying the incoming call number by the server; when the incoming call number is verified, the server allows the call request.
Optionally, the verification unit 105 is specifically configured to, when the server does not find a phone number matching the incoming call number in the preset harassment number library, determine that the number verification of the call request is passed.
In the call connection apparatus described in fig. 3, since the virtual phone number is a phone number allocated by the virtual operator to the electronic device, that is, when a call request is made to the virtual phone number of the electronic device and the server allows the call request, the electronic device performs SIP registration instead of performing SIP registration after the virtual phone number is enabled and maintains a connection with the virtual operator, thereby saving the performance consumption of the electronic device.
Referring to fig. 4, fig. 4 is a structural diagram of another call connection device according to an embodiment of the present invention. As shown in fig. 4, the apparatus 400 may include:
a first receiving unit 201, configured to receive, by the electronic device, an incoming call notification sent by the server, where the incoming call notification is used to notify the electronic device to receive a call request for a virtual phone number, where the virtual phone number is a phone number allocated to the electronic device by a virtual operator.
A registering unit 202, configured to perform SIP registration on the virtual phone number with a virtual operator by the electronic device.
A sending unit 203, configured to send a registration success notification to the server when the SIP registration is successful, where the registration success notification is used to notify the server that the SIP registration is successful.
The calling unit 204 is configured to receive a call invitation instruction sent by the server calling the call interface of the virtual operator, where the call invitation instruction is used to instruct the electronic device to receive a call of an incoming call number of the call request.
As an alternative embodiment, the apparatus 400 further comprises:
an obtaining unit 205, configured to obtain a gateway identifier of a virtual operator; when the gateway identifier matches the preset gateway identifier, the registration unit 202 is invoked.
As an alternative embodiment, the apparatus 400 further comprises:
the searching unit 206 is configured to search number information corresponding to the incoming call number, where the number information includes at least one of contact information, number category, home location, and operator;
the display unit 207 is configured to display the incoming call number and the number information on a display interface of the electronic device.
An end registration unit 208, configured to log out the SIP registration when the electronic device detects that the call between the incoming call number and the virtual phone number is ended.
In the call connection described in fig. 4, since the virtual phone number is a phone number allocated by the virtual operator to the electronic device, that is, when a call request is made to the virtual phone number of the electronic device and the server allows the call request, the electronic device performs SIP registration instead of performing SIP registration after the virtual phone number is enabled and maintains the connection with the virtual operator, the performance consumption of the electronic device is reduced.
Referring to fig. 5, fig. 5 is a timing diagram of a call connection system according to an embodiment of the present invention. As shown in fig. 5, the system may include: virtual operator, server and electronic equipment, wherein:
step S301: the server receives a call request for a virtual phone number sent by a virtual operator.
In the embodiment of the invention, the electronic equipment applies for a virtual telephone number through a virtual operator on the network and establishes communication connection with the virtual operator by using the virtual telephone number through a session initiation protocol. That is, the virtual phone number is a phone number allocated by the virtual operator to the electronic device, and when the electronic device performs SIP registration on the virtual phone number and the virtual operator, the electronic device can use the virtual phone number to make a call, receive a call, send or receive a message, and the like. The virtual operator is connected with the server of the electronic equipment, and after receiving the call request aiming at the virtual telephone number, the virtual operator sends the call request to the server of the electronic equipment.
Step S302: and the server sends an incoming call notification to the electronic equipment when the call request is allowed.
And the server can allow the call request to send the incoming call notification to the electronic equipment under the condition that the communication condition allows. The incoming call notification is used for notifying the electronic equipment to receive a call request aiming at the virtual telephone number.
Optionally, the server verifies the incoming call number of the call request; and when the incoming call number of the call request passes the verification, allowing the call request. And screening the incoming call number or the current communication condition of the call request so as to avoid the situations of crank call answering and communication failure.
Wherein, the verification of the incoming call number of the call request comprises: acquiring the incoming call number of the call request; and when the telephone number matched with the incoming call number cannot be searched in the preset harassment number library, confirming that the number verification of the call request is passed, and screening the incoming call number to improve the anti-harassment capability. The embodiment of the present invention does not limit the execution condition for the call request to be allowed.
Step S303: the electronic device performs SIP registration with the virtual carrier for the virtual phone number.
Optionally, acquiring a gateway identifier of a virtual operator; and when the gateway identification is matched with the preset gateway identification, executing the step of performing SIP registration for the incoming call notification. And illegal virtual operators are prevented from being connected through verification, so that the safety of conversation is improved.
Step S304: the electronic equipment receives a call invitation instruction sent by the server calling the call interface of the virtual operator.
In the embodiment of the present invention, the registration success notification is used to indicate that the electronic device performs SIP registration for the incoming call notification and the registration is successful. Namely, the electronic equipment performs SIP registration for the incoming call notification, and after the registration is successful, the registration success notification is sent to the server, so that the connection between the virtual operator and the electronic equipment can be established.
Step S305: and the server calls a call interface of the virtual operator to send a call invitation instruction to the electronic equipment.
Optionally, a call ring interface of the virtual operator is called to send a call Invite SIP Invite command to the electronic device.
In the call connection system described in fig. 5, since the virtual phone number is a phone number allocated by the virtual operator to the electronic device, that is, when a call request is made to the virtual phone number of the electronic device and the server allows the call request, the electronic device performs SIP registration instead of performing SIP registration after the virtual phone number is enabled and maintains connection with the virtual operator, performance consumption of the electronic device is reduced.
Referring to fig. 6, fig. 6 is a server according to an embodiment of the present invention. As shown in fig. 6, the server may include a housing 110, a processor 120, a memory 130, a circuit board 140, and a power circuit 150, wherein the circuit board 140 is disposed inside a space enclosed by the housing, and the processor 120 and the memory 130 are disposed on the circuit board 140; a power supply circuit 150 for supplying power to each circuit or device of the server; memory 130 is used to store executable program code; the processor 120 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 130 for performing the steps of:
receiving a call request aiming at a virtual telephone number sent by a virtual operator, wherein the virtual telephone number is a telephone number distributed by the virtual operator for the electronic equipment;
when the call request is allowed, sending an incoming call notification to the electronic equipment, wherein the incoming call notification is used for notifying the electronic equipment to receive the call request;
receiving a registration success notification sent by the electronic device, the registration success notification being used to notify the server that SIP registration of the electronic device to the virtual operator for the virtual phone number is successful;
and calling a call interface of the virtual operator to send a call invitation instruction to the electronic equipment, wherein the call invitation instruction is used for indicating the electronic equipment to receive the call of the incoming call number of the call request.
As an alternative embodiment, the processor 120 is further configured to perform the following operations:
verifying the incoming call number;
and when the incoming call number passes the verification, allowing the call request.
As an alternative embodiment, in terms of verifying the incoming call number, the processor 120 is specifically configured to perform the following operations:
and when the telephone number matched with the incoming call number cannot be searched in the preset harassment number library, confirming that the number verification of the call request is passed.
In the server described in fig. 6, since the virtual phone number is a phone number allocated by the virtual operator to the electronic device, that is, when a call request is made to the virtual phone number of the electronic device and the server allows the call request, the electronic device performs SIP registration instead of performing SIP registration after the virtual phone number is enabled and maintains a connection with the virtual operator, thereby saving the performance consumption of the electronic device.
In one embodiment, a non-transitory computer-readable storage medium is provided on which a computer program is stored, wherein the computer program, when executed by a processor, implements an embodiment-call connection method.
In one embodiment, an application program is provided, which is configured to execute the call connection method of the first embodiment when the application program is executed.
Referring to fig. 7, fig. 7 is an electronic device according to an embodiment of the invention. The call connection method is suitable for electronic equipment such as mobile phones and tablet computers. As shown in fig. 7, the electronic device may include a housing 310, a processor 320, a memory 330, a circuit board 340, and a power circuit 350, wherein the circuit board 340 is disposed inside a space surrounded by the housing, and the processor 320 and the memory 330 are disposed on the circuit board 340; a power supply circuit 350 for supplying power to each circuit or device of the electronic apparatus; memory 330 is used to store executable program code; the processor 320 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 330, for performing the steps of:
receiving an incoming call notification sent by a server, wherein the incoming call notification is used for notifying the electronic equipment to receive a call request aiming at a virtual telephone number, and the virtual telephone number is a telephone number distributed to the electronic equipment by a virtual operator;
performing SIP registration to a virtual operator aiming at the virtual telephone number;
when the SIP registration is successful, sending a registration success notification to the server, wherein the registration success notification is used for notifying the server that the SIP registration is successful;
and the receiving server calls a call invitation instruction sent by a call interface of the virtual operator, wherein the call invitation instruction is used for indicating the electronic equipment to receive the call of the incoming call number of the call request.
As an alternative embodiment, before SIP registering with the virtual operator for the virtual phone number, the processor 320 is further configured to:
acquiring a gateway identifier of a virtual operator;
and when the gateway identification is matched with the preset gateway identification, executing the step of performing SIP registration to the virtual operator aiming at the virtual telephone number.
As an alternative embodiment, after receiving the call invitation instruction sent by the server calling the call interface of the virtual carrier, the processor 320 is further configured to:
searching number information corresponding to the incoming call number, and displaying the incoming call number and the number information on a display interface, wherein the number information comprises at least one of contact information, number types, attributions and operators;
and when the call between the incoming call number and the virtual telephone number is detected to be finished, the SIP registration is cancelled.
In the electronic device described in fig. 7, since the virtual phone number is a phone number allocated by the virtual operator to the electronic device, that is, when a call request is made to the virtual phone number of the electronic device and the server allows the call request, the electronic device performs SIP registration instead of performing SIP registration after the virtual phone number is enabled and maintains a connection with the virtual operator, thereby saving the performance consumption of the electronic device.
In one embodiment, a non-transitory computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the call connection method of the second embodiment.
In one embodiment, an application program is provided, which is configured to execute the call connection method of the second embodiment when running.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, a module or a unit may be divided into only one logical function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware or a form of software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A call connection method is characterized by comprising the following steps:
the method comprises the steps that a server receives a call request aiming at a virtual telephone number sent by a virtual operator, wherein the virtual telephone number is a telephone number distributed by the virtual operator for electronic equipment;
the server searches a telephone number matched with the virtual telephone number in a preset harassment number library, verifies the current communication condition, and allows the call request when the preset harassment number library does not include the virtual telephone number and other numbers of a holder corresponding to the virtual telephone number and the verification of the current communication condition is passed;
the server sends an incoming call notification to the electronic equipment when the call request is allowed, wherein the incoming call notification is used for notifying the electronic equipment to receive the call request;
the server receives a registration success notification sent by the electronic device, wherein the registration success notification is used for notifying the server that SIP registration of the electronic device to the virtual operator for the virtual telephone number is successful;
and the server calls a call interface of the virtual operator to send a call invitation instruction to the electronic equipment, wherein the call invitation instruction is used for indicating the electronic equipment to receive the call of the incoming call number of the call request.
2. A call connection method is characterized by comprising the following steps:
the method comprises the steps that an electronic device receives an incoming call notification sent by a server, wherein the incoming call notification is used for notifying the electronic device to receive a call request aiming at a virtual telephone number, and the virtual telephone number is a telephone number distributed to the electronic device by a virtual operator; the incoming call notification is sent to the electronic equipment by the server after the server searches a telephone number matched with the virtual telephone number in a preset harassment number library, verifies the current communication condition, and allows the call request to be sent to the electronic equipment when the preset harassment number library does not include the virtual telephone number and other numbers of the holder corresponding to the virtual telephone number and the verification of the current communication condition is passed;
the electronic equipment performs SIP registration with the virtual operator aiming at the virtual telephone number;
when the SIP registration is successful, the electronic equipment sends a registration success notification to the server, wherein the registration success notification is used for notifying the server that the SIP registration is successful;
and the electronic equipment receives a call invitation instruction sent by the server calling the call interface of the virtual operator, wherein the call invitation instruction is used for indicating the electronic equipment to receive the call of the incoming call number of the call request.
3. The method of claim 2, wherein prior to the electronic device SIP registering with the virtual carrier for the virtual phone number, the method further comprises:
the electronic equipment acquires a gateway identifier of the virtual operator;
and when the gateway identification is matched with a preset gateway identification, the electronic equipment executes the step of performing SIP registration on the virtual telephone number to the virtual operator.
4. The method according to claim 2 or 3, wherein after the electronic device receives a call invitation instruction sent by the server calling the call interface of the virtual operator, the method further comprises:
the electronic equipment searches number information corresponding to the incoming call number, and displays the incoming call number and the number information on a display interface of the electronic equipment, wherein the number information comprises at least one of contact information, number category, attribution and operator.
5. A call connection device, comprising:
a first receiving unit, configured to receive, by a server, a call request for a virtual phone number sent by a virtual operator, where the virtual phone number is a phone number allocated by the virtual operator for an electronic device;
the verification unit is used for searching a telephone number matched with the virtual telephone number in a preset harassment number library by the server, verifying the current communication condition, and allowing the call request by the server when the preset harassment number library does not include the virtual telephone number and other numbers of the holder corresponding to the virtual telephone number and the verification of the current communication condition is passed;
a sending unit, configured to send an incoming call notification to the electronic device when the call request is allowed, where the incoming call notification is used to notify the electronic device to receive the call request;
a second receiving unit, configured to receive a registration success notification sent by the electronic device, where the registration success notification notifies the server that SIP registration of the electronic device to the virtual carrier for the virtual phone number is successful;
and the calling unit is used for calling a communication interface of the virtual operator to send a communication invitation instruction to the electronic equipment, wherein the communication invitation instruction is used for indicating the electronic equipment to receive the calling of the incoming call number of the communication request.
6. A call connection device, comprising:
a first receiving unit, configured to receive an incoming call notification sent by a server, where the incoming call notification is used to notify an electronic device to receive a call request for a virtual phone number, and the virtual phone number is a phone number allocated to the electronic device by a virtual operator; the incoming call notification is sent to the electronic equipment by the server after the server searches a telephone number matched with the virtual telephone number in a preset harassment number library, verifies the current communication condition, and allows the call request to be sent to the electronic equipment when the preset harassment number library does not include the virtual telephone number and other numbers of the holder corresponding to the virtual telephone number and the verification of the current communication condition is passed;
a registration unit configured to perform SIP registration with the virtual operator for the virtual phone number;
a sending unit, configured to send a registration success notification to the server when the SIP registration is successful, where the registration success notification is used to notify the server that the SIP registration is successful;
and the calling unit is used for receiving a call invitation instruction sent by the server calling the call interface of the virtual operator, wherein the call invitation instruction is used for indicating the electronic equipment to receive the call of the incoming call number of the call request.
7. A server, comprising: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the server; the memory is used for storing executable program codes; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the method as claimed in claim 1.
8. An electronic device, comprising: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the method according to any one of claims 2 to 4.
9. A non-transitory computer-readable storage medium, having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the method of any of claim 1.
10. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the method of any of claims 2-4.
CN201710526345.4A 2017-06-30 2017-06-30 Call connection method, device, server, electronic equipment and storage medium Expired - Fee Related CN107426194B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710526345.4A CN107426194B (en) 2017-06-30 2017-06-30 Call connection method, device, server, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710526345.4A CN107426194B (en) 2017-06-30 2017-06-30 Call connection method, device, server, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107426194A CN107426194A (en) 2017-12-01
CN107426194B true CN107426194B (en) 2021-07-20

Family

ID=60427695

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710526345.4A Expired - Fee Related CN107426194B (en) 2017-06-30 2017-06-30 Call connection method, device, server, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107426194B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108566497B (en) * 2017-12-08 2021-07-02 五八有限公司 Online service telephone monitoring method, server and computer storage medium
CN108391017B (en) * 2018-01-19 2021-07-20 五八有限公司 Statistical method, device, equipment and system of call information based on virtual telephone
CN111131633B (en) * 2019-12-18 2021-10-22 华为技术有限公司 Application method of virtual number, communication method and related device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572741A (en) * 2012-02-20 2012-07-11 李继泽 Control method for displaying caller information in mobile communication system
CN106470194A (en) * 2015-08-20 2017-03-01 中兴通讯股份有限公司 Networking telephone connection processing method and device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1457186A (en) * 2002-05-10 2003-11-19 北京艾尼通科技有限公司 Unified user number realizing method combining telecommunication net and IP speech
EP2020159A2 (en) * 2006-05-01 2009-02-04 Qualcomm Incorporated Profile modification for roaming in a communications environment
CN102624995B (en) * 2011-01-27 2016-01-13 中国电信股份有限公司 Be applicable to virtual-number application process, the Apparatus and system of the Internet
CN105338199A (en) * 2014-08-13 2016-02-17 广东世纪网通信设备有限公司 Virtual mobile phone number allocation method and system
CN104852932B (en) * 2015-06-12 2019-01-18 广东天波信息技术股份有限公司 The passive SIP method of calling of Unified Communication and system
US20170201627A1 (en) * 2015-12-09 2017-07-13 Japan Communications Inc. Methods and systems for phone service with personal switch box
CN105429770A (en) * 2015-12-17 2016-03-23 合肥寰景信息技术有限公司 Network community directional voice communication method
CN105554737B (en) * 2015-12-31 2019-03-22 宇龙计算机通信科技(深圳)有限公司 A kind of voice communication implementation method and server
CN105681299A (en) * 2016-01-14 2016-06-15 掌赢信息科技(上海)有限公司 Method and system for building temporary call and server

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572741A (en) * 2012-02-20 2012-07-11 李继泽 Control method for displaying caller information in mobile communication system
CN106470194A (en) * 2015-08-20 2017-03-01 中兴通讯股份有限公司 Networking telephone connection processing method and device

Also Published As

Publication number Publication date
CN107426194A (en) 2017-12-01

Similar Documents

Publication Publication Date Title
EP3716656A1 (en) Profile generation method, profile acquisition method, and related device and storage medium
CN102970362B (en) The method of a kind of high in the clouds data sharing and device
CN104270732B (en) Configuration method and device for call forwarding
US9295029B2 (en) System and method for detecting mutually supported capabilities between mobile devices
US20140329500A1 (en) Anti-Theft Protection Method And Device For Cellular Phone
CN106911661B (en) Short message verification method, device, client, server and system
CN107018504B (en) Communication method, blacklist configuration method and device
WO2016000636A1 (en) Communications processing method and system
CN108810123B (en) Method and apparatus for provisioning mobile cellular network services
CN107426194B (en) Call connection method, device, server, electronic equipment and storage medium
CN107333013B (en) Session establishing method, device, electronic equipment and storage medium
CN109697359A (en) A kind of message prompt method, device, storage medium and electronic equipment
US20090082005A1 (en) Methods and devices for coordinating a single telephone number
KR20130048887A (en) System for calling emergency using earphone jack button of smart phone and method therefor
CN105721511A (en) Identity verifying method of mobile terminal
CN114401492A (en) Incoming call information notification method, incoming call information notification device, call notification server, and storage medium
CN110730446A (en) Login method, terminal and computer storage medium
CN111246451A (en) Function setting method and device of SIM card, storage medium and terminal
CN108241515B (en) Application shortcut establishing method and terminal
CN104348948B (en) Information processing method and electronic equipment
CN104506741A (en) Promoting method, equipment and system
CN108174378B (en) Number identification method, device, terminal and storage medium
WO2017206244A1 (en) Method and device for accepting call
US9307193B2 (en) Communication method and electronic device
CN105873026A (en) Method for activating eSIM (Embedded Subscriber Identity Module), mobile terminal and server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210720