[go: up one dir, main page]

CN111148171B - Call switching method and server - Google Patents

Call switching method and server Download PDF

Info

Publication number
CN111148171B
CN111148171B CN201911398301.3A CN201911398301A CN111148171B CN 111148171 B CN111148171 B CN 111148171B CN 201911398301 A CN201911398301 A CN 201911398301A CN 111148171 B CN111148171 B CN 111148171B
Authority
CN
China
Prior art keywords
mobile phone
server
camera
call
signal strength
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
CN201911398301.3A
Other languages
Chinese (zh)
Other versions
CN111148171A (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 United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201911398301.3A priority Critical patent/CN111148171B/en
Publication of CN111148171A publication Critical patent/CN111148171A/en
Application granted granted Critical
Publication of CN111148171B publication Critical patent/CN111148171B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/0085Hand-off measurements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • H04L67/145Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • H04W36/305Handover due to radio link failure

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本发明实施例提供一种通话切换方法及服务器,涉及通信领域,能够解决摄像头与手机通话质量较差的问题。该方法包括:服务器获取第一信号强度和第二信号强度,第一信号强度为当前周期内摄像头与第一手机之间通话的信号强度;第二信号强度为上一个周期内摄像头与第一手机之间通话的信号强度;若第一信号强度小于第二信号强度,则服务器检测服务器与第一手机之间是否保持心跳连接;若服务器与第一手机之间未保持心跳连接,则服务器向第一手机发送切换请求消息,切换请求消息用于指示第一手机向第二手机发起通话,第二手机为摄像头绑定的手机。本发明方法用于将摄像头与手机通话切换为第一手机与第二手机通话。

Figure 201911398301

Embodiments of the present invention provide a call switching method and a server, which relate to the field of communications and can solve the problem of poor call quality between a camera and a mobile phone. The method includes: the server obtains a first signal strength and a second signal strength, where the first signal strength is the signal strength of the call between the camera and the first mobile phone in the current period; the second signal strength is the camera and the first mobile phone in the previous period. The signal strength of the call between them; if the first signal strength is less than the second signal strength, the server detects whether the heartbeat connection is maintained between the server and the first mobile phone; if the heartbeat connection is not maintained between the server and the first mobile phone, the server A mobile phone sends a handover request message, and the handover request message is used to instruct the first mobile phone to initiate a call to the second mobile phone, and the second mobile phone is a mobile phone bound to the camera. The method of the invention is used for switching the conversation between the camera and the mobile phone to the conversation between the first mobile phone and the second mobile phone.

Figure 201911398301

Description

Call switching method and server
Technical Field
The present invention relates to the field of communications, and in particular, to a call handover method and a server.
Background
The existing household camera has a pickup function, the mobile phone can bind the household camera by scanning a two-dimensional code on the household camera, and the mobile phone is communicated with the household camera through a client application program (APP) on the mobile phone. However, when the network environment is poor, the communication quality between the home camera and the mobile phone is affected, and the user experience is very poor.
Disclosure of Invention
The embodiment of the invention provides a call switching method and a server, which are used for switching a call between a camera and a mobile phone into a call between the mobile phone and the mobile phone in time when the normal call between the camera and the mobile phone cannot be realized, so that the user experience is ensured.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, a call handover method is provided, including: the server acquires a first signal intensity and a second signal intensity, wherein the first signal intensity is the signal intensity of the call between the camera and the first mobile phone in the current period; the second signal intensity is the signal intensity of the communication between the camera and the first mobile phone in the previous period; if the first signal intensity is smaller than the second signal intensity, the server detects whether heartbeat connection is kept between the server and the first mobile phone; if the heartbeat connection between the server and the first mobile phone is not kept, the server sends a switching request message to the first mobile phone, the switching request message is used for indicating the first mobile phone to initiate a call to the second mobile phone, and the second mobile phone is a mobile phone bound with a camera.
Based on the technical scheme, if the first signal strength is smaller than the second signal strength and the server is not in heartbeat connection with the first mobile phone, the server determines that the call quality represented by the first signal strength is very poor, a first user using the camera and a second user using the first mobile phone can not normally call, and at the moment, the server sends a switching message to the first mobile phone. Therefore, the conversation between the first user using the camera and the second user using the first mobile phone is switched to be the conversation between the second mobile phone and the first mobile phone, the first user can realize the conversation with the second user based on the second mobile phone, the problem that the first user using the camera and the second user using the first mobile phone cannot normally converse due to poor current network environment can be solved, and user experience is improved.
In a second aspect, a server is provided, including: a communication module and a processing module; the communication module is used for acquiring a first signal intensity and a second signal intensity, wherein the first signal intensity is the signal intensity of the call between the camera and the first mobile phone in the current period; the second signal intensity is the signal intensity of the communication between the camera and the first mobile phone in the previous period;
the processing module is used for detecting whether the server and the first mobile phone keep heartbeat connection or not if the first signal strength acquired by the communication module is smaller than the second signal strength acquired by the communication module;
the communication module is further configured to send a handover request message to the first mobile phone if the server is not in heartbeat connection with the first mobile phone, where the handover request message is used to instruct the first mobile phone to initiate a call to a second mobile phone, and the second mobile phone is a mobile phone bound to the camera.
In a third aspect, a server is provided that includes a memory, a processor, a bus, and a communication interface; the memory is used for storing computer execution instructions, and the processor is connected with the memory through a bus; when the server is running, the processor executes the computer-executable instructions stored by the memory to cause the server to perform the call handover method as described in the first aspect and any one of the possible implementations of the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, which includes computer-executable instructions that, when executed on a computer, cause the computer to perform the call handover method as described in the first aspect and any one of the possible implementations of the first aspect.
In a fifth aspect, the present invention provides a computer program product containing instructions for causing a computer to perform the call handover method described in the first aspect and any one of the possible implementation manners of the first aspect when the computer program product runs on the computer.
In a sixth aspect, an embodiment of the present invention provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a computer program or instructions to implement the call handover method described in the first aspect and any possible implementation manner of the first aspect.
Drawings
Fig. 1 is an architecture diagram of a communication system according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a call handover method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of another call handover method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a server according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another server 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 only a part of the embodiments of the present invention, and not all of the embodiments. 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.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
It should be noted that, in the embodiments of the present invention, "of", "corresponding" and "corresponding" may be sometimes used in combination, and it should be noted that, when the difference is not emphasized, the intended meaning is consistent.
For the convenience of clearly describing the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, the words "first", "second", and the like are used for distinguishing the same items or similar items with basically the same functions and actions, and those skilled in the art can understand that the words "first", "second", and the like are not limited in number or execution order.
When the existing household camera is in communication with a mobile phone, if the network environment is poor, the communication signal strength can be affected, so that the communication quality between the furniture camera and the mobile phone is poor, and the user experience is very poor.
In order to solve the above problem, embodiments of the present invention provide a call switching method and a server.
As shown in fig. 1, a system architecture used in the technical solution provided by the embodiment of the present invention includes: camera 01, server 02, first handset 03 and second handset 04.
The camera 01 has a pickup function and a video acquisition function, and can transmit acquired data to the server 02. The camera 01 realizes a call with the first mobile phone 03 through the server 02.
And the server 02 is used for connecting the camera 01 and the first mobile phone 03.
The first mobile phone 03 and the second mobile phone 04 can be bound with the camera 01 by scanning the two-dimensional code on the camera 01. Meanwhile, the first mobile phone 03 and the second mobile phone 04 can be connected with the server 02 based on the client APP in the mobile phone.
In the embodiment of the application, the first mobile phone 03 and the second mobile phone 04 are both bound to the camera 01, and the camera 01 communicates with the first mobile phone 03 through the server 02, where the communication may be a voice communication or a video communication.
Based on the system architecture, the embodiment of the invention is applied to a scene that the camera establishes communication with the first mobile phone based on the server, the first user uses the camera, and the second user uses the first mobile phone, so that the first user and the second user can communicate.
Referring to fig. 2, an embodiment of the present invention provides a communication handover method, including the following steps:
s101, the server acquires the first signal intensity and the second signal intensity.
The first signal intensity is the signal intensity of the call between the camera and the first mobile phone in the current period; the second signal strength is the signal strength of the communication between the camera and the first mobile phone in the previous period.
The signal intensity may be an average value of signal intensities in a cycle or a signal intensity at a certain time in a cycle.
S102, the server judges whether the first signal intensity is smaller than the second signal intensity.
In a possible situation, if the server determines that the first signal strength is greater than or equal to the second signal strength, it indicates that the call quality of the call between the first user using the camera and the second user using the first mobile phone is improved. Thus, the server maintains a call between the camera and the first handset.
In another possible situation, if the server determines that the first signal strength is smaller than the second signal strength, it indicates that the call quality of the call between the first user using the camera and the second user using the first mobile phone is degraded, but the server does not determine whether the call between the first user using the camera and the second user using the first mobile phone is not normal. Therefore, the server needs to further determine the call between the first user and the second user, i.e., the server performs step S103.
S103, the server detects whether the server and the first mobile phone keep heartbeat connection or not.
Optionally, the client APP on the first mobile phone establishes a call with the server through a long connection of a Transmission Control Protocol (TCP).
Optionally, the heartbeat connection may be that the client APP periodically sends a piece of heartbeat information to the server through the first mobile phone, so as to ensure a corresponding connection between the client APP on the first mobile phone and the server. For example, the first mobile phone sends a data packet to the server every 30 seconds, and the data packet is used for instructing the server to determine that the client APP on the first mobile phone keeps connected with the server.
As a possible implementation manner, if the server periodically receives the heartbeat information sent by the first mobile phone, it indicates that the server and the first mobile phone maintain the heartbeat connection. If the server fails to periodically receive the heartbeat information sent by the first mobile phone, the server indicates that the heartbeat connection between the server and the first mobile phone is not kept.
It should be noted that, under the condition that the first signal strength is smaller than the second signal strength, when the server determines that the server and the first mobile phone do not maintain the heartbeat connection, the server determines that the call quality represented by the first signal strength is very poor, and the first user and the second user cannot normally call; when the server determines that the server and the first mobile phone keep heartbeat connection, the server determines that the call quality represented by the first signal strength is poor, and the first user and the second user can also carry out normal call.
If the server and the first mobile phone keep heartbeat connection, the server keeps the conversation between the camera and the first mobile phone; if the server and the first mobile phone do not maintain the heartbeat connection, the server executes step S104.
S104, the server sends a switching request message to the first mobile phone.
The switching request message is used for indicating the first mobile phone to initiate a call to the second mobile phone. The handover request information includes at least: a Subscriber Identity Module (SIM) card number of the second handset.
As a possible implementation manner, the server sends a switching request message to the client APP on the first mobile phone, so that after receiving the switching request message, the client APP starts a dialing function of the first mobile phone to initiate a call to the second mobile phone.
Optionally, after the first mobile phone establishes a call connection with the second mobile phone, the first mobile phone may send a handover completion message to the server. The switching completion message is used for indicating that the conversation between the first mobile phone and the second mobile phone is established. Therefore, after the server receives the switching completion message sent by the first mobile phone, the server really establishes a call between the first mobile phone and the second mobile phone, and the server indicates the camera to enter a standby state so as to reduce the power consumption of the camera.
Based on the technical scheme, if the first signal strength is smaller than the second signal strength and the server is not in heartbeat connection with the first mobile phone, the conversation quality represented by the first signal strength is very poor, the first user using the camera and the second user using the first mobile phone can not normally converse, and at the moment, the server sends the switching message to the first mobile phone. Therefore, the conversation between the first user using the camera and the second user using the first mobile phone is switched, the first user uses the second mobile phone to realize the conversation with the second user, the problem of poor conversation quality of the conversation between the camera and the first mobile phone caused by poor current network environment can be solved, and user experience is improved.
As a possible implementation manner, referring to fig. 3, the call handover method provided in the embodiment of the present invention further includes, before step S104, S201 to S203.
S201, the server acquires the position information of the second mobile phone.
The position information may be latitude and longitude coordinates, or may be position coordinates in a coordinate system established by the position of the server.
In one possible implementation manner, the server sends the location request information to the second mobile phone, and the second mobile phone sends the location information of the second mobile phone to the server.
According to a possible implementation mode, the client APP on the second mobile phone sends the periodically read position information of the second mobile phone to the server. For example: and the client APP on the second mobile phone reads the position information of the second mobile phone every 1 hour and sends the position information of the second mobile phone to the server.
S202, the server determines the distance between the second mobile phone and the camera according to the position information of the second mobile phone and the position information of the camera stored in advance.
And the distance between the second mobile phone and the camera is a straight-line distance.
As a possible implementation manner, the server determines the distance between the second mobile phone and the camera according to the longitude and latitude coordinates of the second mobile phone and the longitude and latitude coordinates of the camera.
As another possible implementation manner, the server determines the distance between the second mobile phone and the camera according to the position coordinates of the second mobile phone and the position coordinates of the camera.
S203, the server judges whether the distance between the second mobile phone and the camera is smaller than a preset threshold value.
The preset threshold value can be set according to actual conditions. For example: when the camera is located in the user's home, the preset threshold may be set to the length of the user's home.
It should be noted that the server determines that the distance between the second mobile phone and the camera is to determine whether the first user at the camera position can hear the second mobile phone when the second user initiates a call with the second mobile phone through the first mobile phone. In a possible situation, if the server determines that the distance between the second mobile phone and the camera is greater than or equal to the preset threshold, it indicates that the distance between the second mobile phone and the camera is very long, that is, the second mobile phone is very far away from the first user. If the server executes step S104, the first mobile phone initiates a call to the second mobile phone, but the first user is not near the second mobile phone and cannot answer the second mobile phone, so the server maintains the call between the camera and the first mobile phone.
In another possible situation, if the server determines that the distance between the second mobile phone and the camera is smaller than the preset threshold, it indicates that the second mobile phone is closer to the camera, that is, the second mobile phone is closer to the first user, the server executes step S104, that is, the first mobile phone initiates a call to the second mobile phone, and the first user is near the second mobile phone, and the first user can answer the second mobile phone in time to realize a call with the second user.
Therefore, when the server determines that the distance between the second mobile phone and the camera is greater than or equal to the preset threshold value, the server keeps the conversation between the camera and the first mobile phone; and when the server determines that the distance between the second mobile phone and the camera is smaller than the preset threshold, executing the step S104.
In the embodiment of the present invention, the network device may be divided into functional modules or functional units according to the above method examples, for example, each functional module or functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software functional module or a functional unit. The division of the modules or units in the embodiments of the present invention is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
As shown in fig. 4, an embodiment of the present invention provides a server 10, where the server 10 includes: a communication module 11 and a processing module 12. The communication module 11 is configured to obtain a first signal strength and a second signal strength, where the first signal strength is a signal strength of a call between the camera and the first mobile phone in a current period; the second signal intensity is the signal intensity of the communication between the camera and the first mobile phone in the previous period; the processing module 12 is configured to, if the first signal strength acquired by the communication module 11 is smaller than the second signal strength acquired by the communication module 11, detect whether the server 10 and the first mobile phone maintain heartbeat connection by the processing module 12; the communication module 11 is further configured to, if the server 10 does not maintain heartbeat connection with the first mobile phone, send a handover request message to the first mobile phone by the communication module 11, where the handover request message is used to instruct the first mobile phone to initiate a call to a second mobile phone, and the second mobile phone is a mobile phone with a camera bound.
Optionally, the communication module 11 is further configured to, if the server 10 keeps a heartbeat connection with the first mobile phone, the server 10 keeps a call between the camera and the first mobile phone.
Optionally, the communication module 11 is further configured to obtain location information of the second mobile phone; the processing module 12 is further configured to determine a distance between the second mobile phone and the camera according to the position information of the second mobile phone and the position information of the camera, which are acquired by the communication module 11 and stored in advance; the processing module 12 is further configured to determine whether a distance between the second mobile phone and the camera is smaller than a preset threshold; the communication module 11 sends a handover request message to the first mobile phone, including: if the distance between the second mobile phone and the camera determined by the processing module 12 is smaller than the preset threshold, the communication module 11 sends a switching request message to the first mobile phone.
Optionally, the communication module 11 is further configured to receive a handover completion message sent by the first mobile phone, where the handover completion message is used to indicate that a call has been established between the first mobile phone and the second mobile phone.
Referring to fig. 5, an embodiment of the present invention further provides a server, including a memory 41, a processor 42, a bus 43, and a communication interface 44; the memory 41 is used for storing computer execution instructions, and the processor 42 is connected with the memory 41 through a bus 43; when the server is running, the processor 42 executes the computer-executable instructions stored in the memory 41 to cause the server to perform the call switching method provided in the above-described embodiment.
In particular implementations, processor 42(42-1 and 42-2) may include one or more CPUs, such as CPU0 and CPU1 shown in FIG. 5, for example, as one embodiment. And as an example, the server may include a plurality of processors 42, such as processor 42-1 and processor 42-2 shown in fig. 5. Each of the processors 42 may be a single-Core Processor (CPU) or a multi-Core Processor (CPU). Processor 42 may refer herein to one or more devices, circuits, and/or processing cores that process data (e.g., computer program instructions).
The memory 41 may be, but is not limited to, a read-only memory 41 (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 41 may be self-contained and coupled to the processor 42 via a bus 43. The memory 41 may also be integrated with the processor 42.
In a specific implementation, the memory 41 is used for storing data in the present application and computer-executable instructions corresponding to software programs for executing the present application. The processor 42 may perform various functions of the server by running or executing software programs stored in the memory 41, and by calling data stored in the memory 41.
The communication interface 44 is any device, such as a transceiver, for communicating with other devices or communication networks, such as a control system, a Radio Access Network (RAN), a Wireless Local Area Network (WLAN), and the like. The communication interface 44 may include a receiving unit implementing a receiving function and a transmitting unit implementing a transmitting function.
The bus 43 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an extended ISA (enhanced industry standard architecture) bus, or the like. The bus 43 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a computer execution instruction, and when the computer execution instruction runs on a computer, the computer is enabled to execute the call handover method provided in the foregoing embodiment.
The embodiment of the present invention further provides a computer program product containing instructions, which, when the computer program product runs on a computer, causes the computer to execute the call switching method provided by the foregoing embodiment.
The embodiment of the present invention further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a computer program or an instruction, so as to implement the call switching method provided in the foregoing embodiment.
Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in this invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical function division, and there may be other division ways in actual implementation. For example, various elements or components may be combined or may be integrated into another device, or some features may be omitted, or not implemented. 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 be one physical unit or a plurality of physical units, may be located in one place, or may be distributed to a plurality of different places. 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 invention 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, and can also be realized in a form of a 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 readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A call handover method, the method comprising:
the method comprises the steps that a server obtains first signal intensity and second signal intensity, wherein the first signal intensity is the signal intensity of conversation between a camera and a first mobile phone in a current period; the second signal strength is the signal strength of the communication between the camera and the first mobile phone in the last period;
the camera has a pickup function and a video acquisition function, and can send acquired data to the server;
the camera realizes communication with the first mobile phone through the server;
if the first signal strength is smaller than the second signal strength, the server detects whether the server and the first mobile phone keep heartbeat connection;
if the server and the first mobile phone do not keep heartbeat connection, the server sends a switching request message to the first mobile phone, wherein the switching request message is used for indicating the first mobile phone to initiate a call to a second mobile phone, and the second mobile phone is a mobile phone bound with the camera;
before the server sends a handover request message to the first mobile phone, the method includes:
the server acquires the position information of the second mobile phone;
the server determines the distance between the second mobile phone and the camera according to the position information of the second mobile phone and the position information of the camera stored in advance;
the server judges whether the distance between the second mobile phone and the camera is smaller than a preset threshold value or not;
the server sending a handover request message to the first handset, comprising:
and if the distance between the second mobile phone and the camera is smaller than a preset threshold value, the server sends the switching request message to the first mobile phone.
2. The call handover method according to claim 1, further comprising:
if the server and the first mobile phone keep heartbeat connection, the server keeps the conversation between the camera and the first mobile phone.
3. The call handover method according to any one of claims 1 to 2, further comprising:
and the server receives a switching completion message sent by the first mobile phone, wherein the switching completion message is used for indicating that the conversation between the first mobile phone and the second mobile phone is established.
4. A server, comprising: a communication module and a processing module;
the communication module is used for acquiring a first signal intensity and a second signal intensity, wherein the first signal intensity is the signal intensity of the call between the camera and the first mobile phone in the current period; the second signal strength is the signal strength of the communication between the camera and the first mobile phone in the last period;
the camera has a pickup function and a video acquisition function, and can send acquired data to the server;
the camera realizes communication with the first mobile phone through the server;
the processing module is configured to detect whether the server and the first mobile phone maintain a heartbeat connection if the first signal strength acquired by the communication module is smaller than the second signal strength acquired by the communication module;
the communication module is further configured to send a handover request message to the first mobile phone if the server does not maintain a heartbeat connection with the first mobile phone, where the handover request message is used to instruct the first mobile phone to initiate a call to a second mobile phone, and the second mobile phone is a mobile phone bound to the camera;
the communication module is further used for acquiring the position information of the second mobile phone;
the processing module is further configured to determine a distance between the second mobile phone and the camera according to the position information of the second mobile phone acquired by the communication module and the position information of the camera stored in advance;
the processing module is further configured to determine whether a distance between the second mobile phone and the camera is smaller than a preset threshold;
the communication module sends a handover request message to the first mobile phone, including:
and if the distance between the second mobile phone and the camera determined by the processing module is smaller than a preset threshold value, the communication module sends the switching request message to the first mobile phone.
5. The server of claim 4, wherein the communication module is further configured to:
if the server and the first mobile phone keep heartbeat connection, the server keeps the conversation between the camera and the first mobile phone.
6. The server according to any one of claims 4 to 5,
the communication module is further configured to receive a handover completion message sent by the first mobile phone, where the handover completion message is used to indicate that a call has been established between the first mobile phone and the second mobile phone.
7. A server comprising a memory, a processor, a bus, and a communication interface; the memory is used for storing computer execution instructions, and the processor is connected with the memory through the bus; when the server is running, the processor executes the computer-executable instructions stored by the memory to cause the server to perform the call handover method of any one of claims 1-3.
8. A computer-readable storage medium storing computer-executable instructions that, when executed on a computer, cause the computer to perform the call handover method of any one of claims 1-3.
CN201911398301.3A 2019-12-30 2019-12-30 Call switching method and server Active CN111148171B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911398301.3A CN111148171B (en) 2019-12-30 2019-12-30 Call switching method and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911398301.3A CN111148171B (en) 2019-12-30 2019-12-30 Call switching method and server

Publications (2)

Publication Number Publication Date
CN111148171A CN111148171A (en) 2020-05-12
CN111148171B true CN111148171B (en) 2022-03-15

Family

ID=70522017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911398301.3A Active CN111148171B (en) 2019-12-30 2019-12-30 Call switching method and server

Country Status (1)

Country Link
CN (1) CN111148171B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113242399B (en) * 2021-06-08 2023-11-10 Oppo广东移动通信有限公司 Call switching method, device, terminal and computer readable storage medium
CN114828122B (en) * 2022-04-26 2024-11-22 维沃移动通信有限公司 Call switching method, device and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404538A (en) * 2010-09-07 2012-04-04 瞿初 Mobile phone video visual call security system based on 3G
CN103139303A (en) * 2013-02-07 2013-06-05 网易(杭州)网络有限公司 Method, device and system used for maintaining connected heartbeat
CN104168448A (en) * 2014-07-09 2014-11-26 上海优思通信科技有限公司 Monitor camera system
CN105872437A (en) * 2015-12-15 2016-08-17 乐视致新电子科技(天津)有限公司 Video call control method, video call control device and terminal
CN108616915A (en) * 2018-04-23 2018-10-02 Oppo广东移动通信有限公司 Call mode switching method and device, storage medium and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1622677A (en) * 2003-11-27 2005-06-01 皇家飞利浦电子股份有限公司 A method for supporting point-to-point communication switch in wireless communication network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404538A (en) * 2010-09-07 2012-04-04 瞿初 Mobile phone video visual call security system based on 3G
CN103139303A (en) * 2013-02-07 2013-06-05 网易(杭州)网络有限公司 Method, device and system used for maintaining connected heartbeat
CN104168448A (en) * 2014-07-09 2014-11-26 上海优思通信科技有限公司 Monitor camera system
CN105872437A (en) * 2015-12-15 2016-08-17 乐视致新电子科技(天津)有限公司 Video call control method, video call control device and terminal
CN108616915A (en) * 2018-04-23 2018-10-02 Oppo广东移动通信有限公司 Call mode switching method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN111148171A (en) 2020-05-12

Similar Documents

Publication Publication Date Title
JP7412841B2 (en) Data processing methods and devices, electronic equipment, terminal equipment and computer programs
CN109315017A (en) A kind of communication means that realizing dual-card dual-standby dual-pass and terminal
CN104902524A (en) Method for terminal to automatically switch data link and terminal
EP3577952A1 (en) Method and system for selection of an access and mobility management function in an access network environment
WO2018157732A1 (en) Data transmission method and apparatus
ES3016737T3 (en) Service handover method and apparatus
CN111148171B (en) Call switching method and server
CN107734592B (en) core network selection method, access network entity, UE and system
WO2022116696A1 (en) Method and apparatus for establishing communication connection
TWI640214B (en) Network access method, related equipment and system
CN109275197B (en) Communication connection establishing method, base station, terminal and storage medium
CN111586716B (en) Network slice deployment method and device
CN109874158B (en) Network switching method and device
CN110519712B (en) Information processing method and device, network element and storage medium
WO2022089313A1 (en) Communication processing method and apparatus, storage medium, chip and related device
CN107431524A (en) A kind of antenna allocation method and terminal
CN103781138B (en) Method, apparatus and system for connecting WiMo sending terminal to WLAN
CN106162775B (en) A method and device for accessing a wireless network
CN107534853A (en) A kind of method and apparatus for starting relay function
US8451993B2 (en) Dial-up connection method and device of mobile data terminal
CN104010353B (en) A kind of information processing method and electronic equipment
CN111756834B (en) Code scanning delay processing method and device
CN111885583B (en) Network sharing method and device
CN108696547A (en) Document transmission method, apparatus and system
CN114374471A (en) Uplink data sending method and related product

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