Number card switching method, device and equipment based on cloud mobile phone, medium and product
By working together with the cloud phone server and the work number server, the switching of cloud phone numbers is automated, solving the problems of manual operation and communication interruption in the existing technology, and ensuring the stability and continuity of communication.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-22
- Publication Date
- 2026-04-03
AI Technical Summary
Existing cloud-based mobile SIM card switching methods rely on manual user operation, have low automation, and communication is interrupted during the switching process, affecting user experience.
By working together with cloud phone servers and work number servers, the SIM card switching process is automated, and by controlling service usage and time, uninterrupted communication is ensured.
It improves the automation of SIM card switching, ensures communication stability and continuity during the switching process, and provides a more stable and reliable communication experience.
Smart Images

Figure CN121792995A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication service technology, and in particular to a method, apparatus, device, medium and product for switching SIM cards based on cloud phones. Background Technology
[0002] In the existing method of switching between internal and external SIM cards for work numbers, users need to enter the settings of their work number, select "Switch between internal and external SIM cards," and then the system will prompt the user to confirm the currently used SIM card. After the user confirms, the system will automatically disconnect the current SIM card from the network and reconnect using the other target SIM card selected by the user, and perform network configuration. After these operations are completed, the system will send a successful switch notification to the user, and the user can then use the new SIM card number for communication.
[0003] However, the above method has obvious shortcomings. On the one hand, the entire switching process relies heavily on the user's manual operation. From entering the settings options to confirming the active card number and then selecting the target card number, all of these require the user to complete actively, resulting in a low degree of automation. On the other hand, during the switching operation, the communication of the current card number will be temporarily interrupted, which may interfere with the user's ongoing communication activities and affect the user's communication experience. Summary of the Invention
[0004] This invention provides a method for switching SIM cards based on cloud phones, which automates the SIM card switching process, improves switching efficiency, and ensures uninterrupted communication during the switching process, providing users with a more stable and reliable communication experience.
[0005] In a first aspect, embodiments of the present invention provide a method for switching SIM cards based on a cloud phone, applied to a work number server, comprising: In response to the internal / external SIM card switching instruction sent by the cloud phone server, a processing completion signal is returned to the cloud phone server so that the cloud phone server generates a target SIM card activation instruction; wherein, the internal / external SIM card switching instruction is sent by the cloud phone server after detecting that the terminal has triggered the internal / external SIM card switching logic; The target SIM card virtual container is launched based on the target SIM card launch command; The system receives the service usage level of the currently used SIM card calculated by the cloud phone server, and switches the current SIM card virtual container to the target SIM card virtual container based on the service usage level.
[0006] Furthermore, the circumstances that trigger the internal / external SIM card switching logic include, but are not limited to, changes in the network environment used by the terminal, the current time being at a preset switching point between working and non-working hours, the current SIM card's charges reaching the usage limit, and connection to a specific customer who requires internal / external SIM card switching.
[0007] Furthermore, the instruction parameters in the internal / external SIM card switching instruction include the temporary session identifier information between the current terminal and the cloud mobile phone server, the SIM card number information of the currently used SIM card, and the SIM card type of the currently used SIM card; wherein, the SIM card type includes internal SIM card and external SIM card.
[0008] Furthermore, the step of returning a processing completion signal to the cloud phone server, so that the cloud phone server generates a target SIM card activation command, includes: The maximum coexistence time of the dual-SIM virtual service is calculated based on the internal / external SIM card switching instruction; wherein, the maximum coexistence time of the dual-SIM virtual service represents the maximum time that the internal SIM card virtual container and the external SIM card virtual container can be online simultaneously during the internal / external SIM card switching process; The maximum coexistence time of the dual-SIM virtual service is sent as a processing completion signal to the cloud phone server, so that the cloud phone server generates a target SIM card activation command.
[0009] Furthermore, the calculation process for the maximum coexistence time of the dual-SIM card virtual service includes: Obtain the target number card's continuous online time, the pre-set daily working hours, the operating energy consumption of the work number virtual container, and the current user's security level; The maximum coexistence time of the dual-SIM card virtual service is calculated based on the target SIM card's continuous online duration, the daily prescribed working hours, the operating energy consumption, and the security level.
[0010] Furthermore, the step of launching the target SIM card virtual container based on the target SIM card launch command includes: Receive and parse the target SIM card activation command, which includes the SIM card number information of the currently used SIM card and the SIM card type of the target SIM card; Obtain the target SIM card number information based on the SIM card number information of the currently used SIM card; The target card virtual container is activated based on the target card number information.
[0011] Furthermore, when the service usage level exceeds a preset usage level threshold, the step of switching the current SIM card virtual container to the target SIM card virtual container based on the service usage level includes: Send a container combination instruction to the current SIM card virtual container and the target SIM card virtual container, so that the current SIM card virtual container and the target SIM card virtual container form a dual container group; Upon receiving the notification that the dual-container group has been completed from the current SIM card virtual container and the target SIM card virtual container, the service request of the currently used SIM card is obtained and forwarded to the target SIM card virtual container.
[0012] Furthermore, the method also includes: After receiving the notification that the dual container group has been assembled, the dual container group is registered to the dynamic route, and the registration success notification is received from the dynamic route.
[0013] Furthermore, when the service usage level is less than a preset usage level threshold, the step of switching the current SIM card virtual container to the target SIM card virtual container based on the service usage level includes: In response to the container replacement command sent by the cloud phone server, the target SIM card virtual container is registered in the dynamic route, and the current SIM card virtual container is switched to the target SIM card virtual container.
[0014] Furthermore, the method also includes: When it is detected that the current time has reached the maximum coexistence time of the dual SIM card virtual service, and the current SIM card virtual container has not yet been switched to the target SIM card virtual container, an active switching command is generated; The active switching command is sent to the cloud phone server. Furthermore, the method also includes: After the target SIM card virtual container is successfully switched, a switch success notification will be sent to the terminal so that the terminal can display the switch result.
[0015] Secondly, embodiments of the present invention provide a SIM card switching method based on a cloud phone, applied to a cloud phone server, comprising: When the terminal detects that it has triggered the internal / external SIM card switching logic, it sends an internal / external SIM card switching command to the working number server. In response to the completion signal of the processing of the internal / external SIM card switching instruction by the working number server, a target SIM card startup instruction is generated so that the working number server starts the target SIM card virtual container based on the target SIM card startup instruction; Calculate the service usage level of the currently used SIM card, and control the working number server to switch the current SIM card virtual container to the target SIM card virtual container based on the service usage level.
[0016] Furthermore, the circumstances that trigger the internal / external SIM card switching logic include, but are not limited to, changes in the network environment used by the terminal, the current time being at a preset switching point between working and non-working hours, the current SIM card's charges reaching the usage limit, and connection to a specific customer who requires internal / external SIM card switching.
[0017] Furthermore, the instruction parameters in the internal / external SIM card switching instruction include the temporary session identifier information between the current terminal and the cloud phone server, the SIM card number information of the currently used SIM card, and the SIM card type of the currently used SIM card; wherein, the SIM card type includes internal SIM card and external SIM card.
[0018] Furthermore, the step of generating a target SIM card activation command in response to the completion signal of the working number server's processing of the internal / external SIM card switching instruction includes: The system receives a processing completion signal sent by the working number server. The processing completion signal is the maximum coexistence time of the dual-SIM card virtual service calculated by the working number server based on the internal and external SIM card switching instruction. The maximum coexistence time of the dual-SIM card virtual service represents the maximum time that the internal SIM card virtual container and the external SIM card virtual container can be online at the same time during the internal and external SIM card switching process. The maximum resource release waiting time is calculated based on the maximum coexistence time of the dual SIM card virtual service; wherein, the maximum resource release waiting time represents the maximum time that the current SIM card virtual container can survive after the internal and external SIM card switching is completed; Broadcast the maximum coexistence time of the dual-SIM virtual service and the maximum resource release waiting time to the dynamic route; After the dynamic route is successfully received, a target number card startup command is generated.
[0019] Furthermore, the instruction parameters in the target SIM card activation command include the card number information of the currently used SIM card and the SIM card type of the target SIM card; wherein, the SIM card type includes internal SIM cards and external SIM cards.
[0020] Furthermore, the calculation of the service usage level of the currently used SIM card includes: Retrieve the call frequency of the currently used SIM card and the validity of the session connection from the current SIM card virtual container; Calculate the service usage level of the currently used SIM card based on the call frequency and the link validity.
[0021] Furthermore, after the control server switches the current SIM card virtual container to the target SIM card virtual container based on the service usage level, it also includes: A handover completion command is sent to the dynamic route so that the dynamic route releases resources from the virtual container of the SIM card before the handover based on the handover completion command.
[0022] Furthermore, the method also includes: In response to the active switching instruction sent by the working number server, the active switching instruction is forwarded to the service currently running in the terminal, so that the service currently running actively completes the SIM card switching based on the active switching instruction; wherein, the active switching instruction is generated when the working number server detects that the current time has reached the maximum coexistence time of the dual SIM card virtual service, and the current SIM card virtual container has not yet switched to the target SIM card virtual container.
[0023] Thirdly, embodiments of the present invention provide a SIM card switching device based on a cloud phone, applied to a work number server, comprising: The target SIM card activation command sending module is used to respond to the internal / external SIM card switching command sent by the cloud phone server and return a processing completion signal to the cloud phone server so that the cloud phone server generates the target SIM card activation command; wherein, the internal / external SIM card switching command is sent by the cloud phone server after detecting that the terminal triggers the internal / external SIM card switching logic; The target SIM card virtual container startup module is used to start the target SIM card virtual container based on the target SIM card startup command. The target SIM card virtual container switching module is used to receive the service usage level of the currently used SIM card calculated by the cloud mobile phone server, and switch the current SIM card virtual container to the target SIM card virtual container based on the service usage level.
[0024] Furthermore, the target SIM card activation command sending module includes: The first-time calculation submodule is used to calculate the maximum coexistence time of the dual-SIM virtual service based on the internal and external SIM card switching instruction; wherein, the maximum coexistence time of the dual-SIM virtual service represents the maximum time that the internal SIM card virtual container and the external SIM card virtual container can be online at the same time during the internal and external SIM card switching process; The first-time sending submodule is used to send the maximum coexistence time of the dual-SIM virtual service as a processing completion signal to the cloud phone server, so that the cloud phone server can generate a target SIM card startup command.
[0025] Furthermore, the target SIM card virtual container startup module includes: The target SIM card startup instruction parsing submodule is used to receive and parse the target SIM card startup instruction, which includes the card number information of the currently used SIM card and the SIM card type of the target SIM card. The target SIM card number information acquisition submodule is used to acquire the target SIM card number information based on the SIM card number information of the currently used SIM card; The target SIM card virtual container startup submodule is used to start the target SIM card virtual container according to the card number information of the target SIM card.
[0026] Fourthly, embodiments of the present invention provide a SIM card switching device based on a cloud phone, applied to a cloud phone server, comprising: The internal / external SIM card switching instruction sending module is used to send an internal / external SIM card switching instruction to the working number server when the terminal triggers the internal / external SIM card switching logic. The internal / external SIM card switching instruction response module is used to respond to the processing completion signal of the internal / external SIM card switching instruction from the working number server, generate a target SIM card startup instruction, so that the working number server starts the target SIM card virtual container based on the target SIM card startup instruction; The current SIM card service usage calculation module is used to calculate the service usage of the currently used SIM card and control the working number server to switch the current SIM card virtual container to the target SIM card virtual container based on the service usage.
[0027] Furthermore, the internal / external SIM card switching command response module includes: The first-time receiving submodule is used to receive the processing completion signal sent by the working number server. The processing completion signal is the maximum coexistence time of the dual-number card virtual service calculated by the working number server based on the internal and external number card switching instruction. The maximum coexistence time of the dual-number card virtual service represents the maximum time that the internal number card virtual container and the external number card virtual container can be online at the same time during the internal and external number card switching process. The second time calculation submodule is used to calculate the maximum resource release waiting time based on the maximum coexistence time of the dual SIM card virtual service; wherein, the maximum resource release waiting time represents the maximum time that the current SIM card virtual container can survive after the internal and external SIM card switching is completed; The broadcast submodule is used to broadcast the maximum coexistence time of the dual-SIM card virtual service and the maximum resource release waiting time to the dynamic route; The target number card startup command generation submodule is used to generate the target number card startup command after the dynamic route is successfully received.
[0028] Furthermore, the device also includes a resource release module, used to send a handover completion command to the dynamic router, so that the dynamic router releases resources of the virtual container of the SIM card before the handover based on the handover completion command.
[0029] Fifthly, embodiments of the present invention provide an electronic device, comprising: Memory, used to store computer programs; A processor for executing the computer program; When the processor executes the computer program, it implements the SIM card switching method based on cloud mobile phones as described in any one of the first or second aspects above.
[0030] Sixthly, embodiments of the present invention provide a computer-readable storage medium storing a computer program that, when executed, implements the SIM card switching method based on a cloud phone as described in any of the first or second aspects above.
[0031] In a seventh aspect, embodiments of the present invention provide a computer program product, including computer instructions, which, when executed by a processor, implement the SIM card switching method based on a cloud phone as described in any of the first or second aspects above.
[0032] Compared with existing technologies, the SIM card switching method based on a cloud phone provided in this invention has the following advantages: In response to a SIM card switching command sent by a cloud phone server, a processing completion signal is returned to the cloud phone server, enabling the cloud phone server to generate a target SIM card activation command; wherein, the SIM card switching command is sent by the cloud phone server after detecting that the terminal has triggered the SIM card switching logic; a target SIM card virtual container is activated based on the target SIM card activation command; the service usage level of the currently used SIM card is received from the cloud phone server, and the current SIM card virtual container is switched to the target SIM card virtual container based on the service usage level. This invention automates the SIM card switching process, improves switching efficiency, and ensures uninterrupted communication during the switching process, providing users with a more stable and reliable communication experience. Attached Figure Description
[0033] To more clearly illustrate the technical features of the embodiments of the present invention, the drawings used in the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0034] Figure 1 This is a schematic diagram of the first process of a SIM card switching method based on a cloud phone provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of the second process of a SIM card switching method based on a cloud phone provided in an embodiment of the present invention; Figure 3 This is a first structural schematic diagram of a SIM card switching device based on a cloud phone provided in an embodiment of the present invention; Figure 4 This is a second structural schematic diagram of a SIM card switching device based on a cloud phone provided in an embodiment of the present invention; Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0035] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0036] It should be noted that although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first," "second," etc., in the specification, claims, and the aforementioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0037] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein is for the purpose of describing embodiments of the invention only and is not intended to limit the invention.
[0038] In existing technologies, when switching between the internal and external SIM cards of a cloud phone, users need to enter the SIM card settings and manually switch the SIM card. The system will prompt the user to confirm the currently used SIM card number. After confirmation, the system will automatically disconnect the network of the currently used SIM card number, allowing the user to select another target SIM card number to switch to, and then reconnect to the selected target SIM card number for network configuration. Once completed, the system will send a notification to the user that the SIM card switch was successful, and the user can start using the newly selected SIM card number for communication. It is evident that the existing SIM card switching method relies on manual operation by the user, has a low degree of automation, and during the switching operation, communication of the currently used SIM card number will be temporarily interrupted, severely affecting the user's communication experience.
[0039] To address the aforementioned issues, this invention discloses a SIM card switching method based on a cloud phone. When using a cloud phone, the user first opens the cloud phone application on the terminal and then launches the work number application within the cloud phone. When the user's work number supports both internal and external SIM cards, the cloud phone server provides a virtual phone container instance and allocates an internal SIM card virtual container and an external SIM card virtual container to this virtual phone container through the work number server. Based on user data, the corresponding virtual container is selected to provide services according to the account SIM card chosen during login. When the work number does not support both internal and external SIM cards, the virtual phone container is allocated according to the existing single-number method. This embodiment of the invention is applicable to the scenario where "the user's work number supports both internal and external SIM cards."
[0040] Among them, cloud phone servers are cloud servers specifically designed for cloud phone services. They can be used to store and process users' cloud phone data and applications, providing low-latency and highly available cloud operation support for real-time communication services in dual-SIM switching scenarios.
[0041] Among them, the work number server is the core management server for work numbers. It can realize the dynamic allocation of virtual containers for internal and external number cards, intelligent calculation of switching parameters, parallel collaboration of dual containers, and route registration management.
[0042] The internal number card virtual container is a virtual container that carries the functions of the internal number card. It is responsible for the network connection, data transmission, and communication protocol processing of the internal number card, and provides services only in the enterprise's secure network environment.
[0043] Among them, the nickname card virtual container is a virtual container that carries the functions of the nickname card. It is responsible for the network connection, data transmission, and communication protocol processing of the nickname card, and provides services in non-enterprise secure network environments.
[0044] In a first aspect, embodiments of the present invention provide a method for switching SIM cards based on a cloud phone, applied to a work number server, see [link to relevant documentation]. Figure 1 This is a flowchart illustrating an embodiment of a cloud-based method for switching between internal and external SIM cards provided by the present invention.
[0045] like Figure 1 As shown, the method includes the following steps: S101: In response to the internal / external SIM card switching instruction sent by the cloud phone server, return a processing completion signal to the cloud phone server so that the cloud phone server generates a target SIM card activation instruction; wherein, the internal / external SIM card switching instruction is sent by the cloud phone server after detecting that the terminal has triggered the internal / external SIM card switching logic; Specifically, when the cloud phone server detects that the terminal has triggered the internal / external SIM card switching logic, it can send an internal / external SIM card switching instruction to the working number server. After receiving the internal / external SIM card switching instruction, the working number server returns a processing completion signal to the cloud phone server. Then, the cloud phone server generates a target SIM card activation instruction.
[0046] S102: Start the target SIM card virtual container based on the target SIM card startup command; Specifically, after receiving the target SIM card startup command from the cloud phone server, the working number server starts the virtual container corresponding to the target SIM card based on the target SIM card startup command.
[0047] S103: Receive the service usage level of the currently used SIM card calculated by the cloud mobile phone server, and switch the current SIM card virtual container to the target SIM card virtual container based on the service usage level.
[0048] Specifically, the cloud phone server calculates the service usage level of the currently used SIM card, and the working number server switches the current SIM card virtual container to the target SIM card virtual container based on the service usage level to achieve SIM card switching.
[0049] In summary, this invention achieves efficient and intelligent switching between internal and external SIM cards through close collaboration between cloud phone servers and work number servers. The entire process is highly automated, avoiding the tedious manual operation for users. At the same time, the switching is based on the precise service usage level, ensuring the rationality and stability of the switching, and providing users with a smoother and more reliable communication experience.
[0050] In one optional implementation, the circumstances that trigger the internal / external SIM card switching logic include, but are not limited to, changes in the network environment used by the terminal, the current time being at a preset switching point between working and non-working hours, the current SIM card's charges reaching the usage limit, and connection to a specific customer who requires internal / external SIM card switching.
[0051] Specifically, the scenarios that trigger the switching logic between internal and external SIM cards cover multiple dimensions of enterprise needs, including but not limited to the following: 1. Changes in the network environment used by the terminal: By monitoring the network access attributes of the terminal in real time, a switch is triggered when it is determined to be disconnected from or connected to the enterprise's secure network boundary. 2. Current time at the preset work and non-work time switching point: Based on the time rules configured by the enterprise, the switching is automatically triggered at the critical moment between the preset work and non-work time. 3. The current SIM card usage fee has reached the limit: By tracking the communication fees of the current SIM card in real time, a switch is triggered when the accumulated fee reaches the enterprise's preset fee control threshold; 4. Connecting with specific customers who require switching between internal and external SIM cards: When initiating or receiving a communication request, the system identifies the identity of the communication peer and determines that it is a specific customer with SIM card switching requirements preset by the enterprise, thereby triggering the switch.
[0052] By defining multi-dimensional and scalable trigger conditions for switching between internal and external SIM cards, this invention can better meet the needs of special business scenarios and ensure stable and efficient communication.
[0053] In one optional implementation, the instruction parameters in the internal / external SIM card switching instruction include the temporary session identifier information between the current terminal and the cloud mobile phone server, the SIM card number information of the currently used SIM card, and the SIM card type of the currently used SIM card; wherein, the SIM card type includes internal SIM card and external SIM card.
[0054] Specifically, the internal / external SIM card switching instruction is the core data carrier that initiates a switching request from the cloud phone server to the working number server, and can be represented as: ; in, This is a command to switch between internal and external SIM cards. The ID is the temporary session identifier between the current terminal and the cloud phone server. This is the card number information of the currently used SIM card. This indicates the type of SIM card currently in use. The possible values are 1 or 2, where 1 represents an internal SIM card and 2 represents an external SIM card.
[0055] The embodiments of the present invention clarify the instruction parameters in the internal / external SIM card switching instruction, effectively improving the reliability and stability of SIM card switching.
[0056] In one optional implementation, the step of returning a processing completion signal to the cloud phone server to enable the cloud phone server to generate a target SIM card activation command includes: The maximum coexistence time of the dual-SIM virtual service is calculated based on the internal / external SIM card switching instruction; wherein, the maximum coexistence time of the dual-SIM virtual service represents the maximum time that the internal SIM card virtual container and the external SIM card virtual container can be online simultaneously during the internal / external SIM card switching process; The maximum coexistence time of the dual-SIM virtual service is sent as a processing completion signal to the cloud phone server, so that the cloud phone server generates a target SIM card activation command.
[0057] Specifically, after receiving the internal / external SIM card switching instruction sent by the cloud phone server, the working number server calculates the maximum coexistence time of the dual SIM card virtual service. This time represents the maximum time that the internal SIM card virtual container and the external SIM card virtual container can be online at the same time during the internal / external SIM card switching process. By calculating the maximum coexistence time of the dual SIM card virtual service, the overlap time of the dual SIM cards being online at the same time can be effectively controlled.
[0058] After the working number server completes the calculation of the maximum coexistence time of the dual-SIM card virtual service, it sends the maximum coexistence time of the dual-SIM card virtual service to the cloud phone server, so that the cloud phone server generates the target SIM card startup command.
[0059] The maximum coexistence time calculated in this embodiment clarifies the duration for which virtual containers for internal and external SIM cards can be online simultaneously during the switching process. This provides a precise time control basis for the switching process, ensuring the continuity of communication services during the switching period and avoiding communication interruption due to premature disconnection of the current SIM card. It also prevents resource waste caused by prolonged online dual containers.
[0060] In one optional implementation, the calculation process for the maximum coexistence time of the dual-SIM virtual service includes: Obtain the target number card's continuous online time, the pre-set daily working hours, the operating energy consumption of the work number virtual container, and the current user's security level; The maximum coexistence time of the dual-SIM card virtual service is calculated based on the target SIM card's continuous online duration, the daily prescribed working hours, the operating energy consumption, and the security level.
[0061] Specifically, the formula for calculating the maximum coexistence time of dual-SIM virtual services is as follows: ; in, The maximum coexistence time for virtual services with two SIM cards. The continuous online duration of the target terminal card recorded by the working number server. For the pre-set daily working hours, The energy consumption of the working virtual container. The security level set for the current users of the enterprise.
[0062] This embodiment comprehensively considers multiple factors, including the target SIM card's continuous online time, daily working hours, the energy consumption of the working SIM card's virtual container, and the current user's security level, to make the calculated maximum coexistence time more accurate and reasonable.
[0063] In one optional implementation, launching the target SIM card virtual container based on the target SIM card launch command includes: Receive and parse the target SIM card activation command, which includes the SIM card number information of the currently used SIM card and the SIM card type of the target SIM card; Obtain the target SIM card number information based on the SIM card number information of the currently used SIM card; The target card virtual container is activated based on the target card number information.
[0064] Specifically, the working number server receives the target SIM card activation command sent by the cloud phone server. ,in, This is the card number information of the currently used SIM card. Given the target SIM card's SIM card type, the working SIM card server parses out the current SIM card's NC from it, and obtains the corresponding target SIM card's SIM card number information accordingly. Based on the target SIM card's SIM card number information, it starts the target SIM card's virtual container, forming a dual-SIM parallel operation and multi-interactive state where internal and external SIM cards are online simultaneously.
[0065] This embodiment receives and parses the target SIM card startup command, obtains the target SIM card number information, and starts the corresponding virtual container. The dual-SIM parallel operation mode ensures the continuity of communication during the switching process, avoids communication interruption due to switching, and greatly improves the stability and smoothness of communication for users in cloud phone usage scenarios.
[0066] In one optional implementation, when the service usage level exceeds a preset usage level threshold, switching the current SIM card virtual container to the target SIM card virtual container based on the service usage level includes: Send a container combination instruction to the current SIM card virtual container and the target SIM card virtual container, so that the current SIM card virtual container and the target SIM card virtual container form a dual container group; Upon receiving the notification that the dual-container group has been completed from the current SIM card virtual container and the target SIM card virtual container, the service request of the currently used SIM card is obtained and forwarded to the target SIM card virtual container.
[0067] Specifically, when the service usage exceeds the preset usage threshold, for example, the usage threshold can be set to 0. That is, when the service usage is greater than 0, it means that the current SIM card virtual container is in use. To avoid disconnection during the handover process, the working number server sends a container combination instruction to the current SIM card virtual container and the target SIM card virtual container, requiring the inner SIM card virtual container to combine with the outer SIM card virtual container to form a dual container group.
[0068] The internal and external virtual card containers send a combination request to the virtual card container based on the virtual card container information in the container combination instruction. After the target virtual container receives the combination request and the identity is verified, the two establish a perception communication connection. At this time, the dual container group is formed. Both can obtain the other's opening and closing status and the interaction status with the cloud server and the work number server in real time through the perception communication connection. Subsequently, the dual container group sends a dual container group formation completion notification to the work number server.
[0069] After receiving the notification that the dual-container group has been set up, the working number server obtains the service request of the currently used number card, determines the target number card to be switched to, and forwards the service request to the virtual container of the target number card.
[0070] This embodiment achieves uninterrupted service continuity during the switching process by setting up a dual container group, avoiding service interruptions caused by direct switching and ensuring communication continuity.
[0071] In one optional implementation, the method further includes: After receiving the notification that the dual container group has been assembled, the dual container group is registered to the dynamic route, and the registration success notification is received from the dynamic route.
[0072] Specifically, after receiving the notification that the dual-container group has been completed, the working number server registers with the dynamic route. After receiving the registration information, the dynamic route uses the dual-container group to replace the original virtual container registered with the SIM card, completing the synchronous registration of the dual virtual containers of the internal and external SIM cards and keeping the dual SIM card virtual containers online.
[0073] This embodiment uses a dynamic routing synchronous registration mechanism to ensure accurate identification and effective management of the dual-SIM card virtual container in the network environment, enabling seamless connection and collaborative work between internal and external SIM cards at the network level, and ensuring the continuity and stability of communication services during the handover process.
[0074] In one optional implementation, when the service usage level is less than a preset usage level threshold, switching the current SIM card virtual container to the target SIM card virtual container based on the service usage level includes: In response to the container replacement command sent by the cloud phone server, the target SIM card virtual container is registered in the dynamic route, and the current SIM card virtual container is switched to the target SIM card virtual container.
[0075] Specifically, when the service usage is less than the preset usage threshold, for example, the usage threshold can be set to 0. That is, when the service usage is less than 0, it means that the current SIM card virtual container is not in use and the SIM card can be switched directly. In response to the container replacement instruction sent by the cloud phone server, the target SIM card virtual container is registered to the dynamic route. After receiving the registration information, the dynamic route uses the target SIM card virtual container to replace the original SIM card virtual container to complete the switch of the target SIM card.
[0076] Since the current SIM card is not currently in use, direct replacement in this embodiment can minimize the impact of switching on communication services, achieving seamless switching and providing users with a smoother and more stable communication experience in cloud phone usage scenarios.
[0077] In one optional implementation, the method further includes: When it is detected that the current time has reached the maximum coexistence time of the dual SIM card virtual service, and the current SIM card virtual container has not yet been switched to the target SIM card virtual container, an active switching command is generated; The active switching command is sent to the cloud phone server. Specifically, the working number server continuously monitors the usage of SIM cards. When it detects that the current time has reached the maximum coexistence time of the dual SIM card virtual service, and the current SIM card virtual container has not yet switched to the target SIM card virtual container, in order to avoid the dual SIM cards being online for too long, the working number server sends an active switching command to the cloud phone server, requesting it to actively switch.
[0078] This embodiment effectively avoids resource waste caused by two SIM cards being online simultaneously for a long time, such as unnecessary energy consumption and network bandwidth occupation, through active monitoring and forced switching mechanisms, while ensuring that the SIM card switching process can be completed within the specified time.
[0079] In one optional implementation, the method further includes: After the target SIM card virtual container is successfully switched, a switch success notification will be sent to the terminal so that the terminal can display the switch result.
[0080] Specifically, after the target SIM card virtual container is successfully switched, a switch success notification will be sent to the terminal so that the terminal can present the switch result to the user.
[0081] This embodiment provides users with timely and clear feedback, enabling them to know the status of SIM card switching immediately.
[0082] Secondly, embodiments of the present invention provide a SIM card switching method based on a cloud phone, applied to a cloud phone server, see [link to relevant documentation]. Figure 2 This is a flowchart illustrating an embodiment of a SIM card switching method based on a cloud phone provided by the present invention.
[0083] like Figure 2 As shown, the method includes the following steps: S201: When the terminal triggers the internal / external SIM card switching logic, a switching command for internal / external SIM cards is sent to the working number server; Specifically, when the cloud phone server detects that the terminal has triggered the internal / external SIM card switching logic, it sends an internal / external SIM card switching instruction to the working number server.
[0084] S202: In response to the completion signal of the processing of the internal / external SIM card switching instruction by the working number server, a target SIM card startup instruction is generated so that the working number server starts the target SIM card virtual container based on the target SIM card startup instruction; Specifically, after receiving the instruction to switch between internal and external SIM cards, the working number server sends a processing completion signal to the cloud phone server. The cloud phone server then generates a target SIM card startup instruction and sends it to the working number server, enabling the working number server to start the target SIM card virtual container based on the target SIM card startup instruction.
[0085] S203: Calculate the service usage level of the currently used SIM card, and control the working number server to switch the current SIM card virtual container to the target SIM card virtual container based on the service usage level.
[0086] Specifically, the cloud phone server calculates the service usage level of the currently used SIM card. The service usage level represents the user's acceptance of directly replacing the currently used SIM card with the target SIM card. The larger the value, the stronger the association between the currently used SIM card and the target SIM card, and the less likely it is to be directly replaced. Based on the calculated service usage level, the working number server further switches the virtual container of the current SIM card to the virtual container of the target SIM card.
[0087] In one optional implementation, the circumstances that trigger the internal / external SIM card switching logic include, but are not limited to, changes in the network environment used by the terminal, the current time being at a preset switching point between working and non-working hours, the current SIM card's charges reaching the usage limit, and connection to a specific customer who requires internal / external SIM card switching.
[0088] Specifically, the scenarios that trigger the switching logic between internal and external SIM cards cover multiple dimensions of enterprise needs, including but not limited to the following: 1. Changes in the network environment used by the terminal: By monitoring the network access attributes of the terminal in real time, a switch is triggered when it is determined to be disconnected from or connected to the enterprise's secure network boundary. 2. Current time at the preset work and non-work time switching point: Based on the time rules configured by the enterprise, the switching is automatically triggered at the critical moment between the preset work and non-work time. 3. The current SIM card usage fee has reached the limit: By tracking the communication fees of the current SIM card in real time, a switch is triggered when the accumulated fee reaches the enterprise's preset fee control threshold; 4. Connecting with specific customers who require switching between internal and external SIM cards: When initiating or receiving a communication request, the system identifies the identity of the communication peer and determines that it is a specific customer with SIM card switching requirements preset by the enterprise, thereby triggering the switch.
[0089] By defining multi-dimensional and scalable trigger conditions for switching between internal and external SIM cards, this invention can better meet the needs of special business scenarios and ensure stable and efficient communication.
[0090] In one optional implementation, the instruction parameters in the internal / external SIM card switching instruction include the temporary session identifier information between the current terminal and the cloud phone server, the SIM card number information of the currently used SIM card, and the SIM card type of the currently used SIM card; wherein, the SIM card type includes internal SIM card and external SIM card.
[0091] Specifically, the internal / external SIM card switching instruction is the core data carrier that initiates a switching request from the cloud phone server to the working number server, and can be represented as: ; in, This is a command to switch between internal and external SIM cards. The ID is the temporary session identifier between the current terminal and the cloud phone server. This is the card number information of the currently used SIM card. This indicates the type of SIM card currently in use. The possible values are 1 or 2, where 1 represents an internal SIM card and 2 represents an external SIM card.
[0092] The embodiments of the present invention clarify the instruction parameters in the internal / external SIM card switching instruction, effectively improving the reliability and stability of SIM card switching.
[0093] In one optional implementation, the step of generating a target SIM card activation command in response to the completion signal of the working number server's processing of the internal / external SIM card switching command includes: The system receives a processing completion signal sent by the working number server. The processing completion signal is the maximum coexistence time of the dual-SIM card virtual service calculated by the working number server based on the internal and external SIM card switching instruction. The maximum coexistence time of the dual-SIM card virtual service represents the maximum time that the internal SIM card virtual container and the external SIM card virtual container can be online at the same time during the internal and external SIM card switching process. The maximum resource release waiting time is calculated based on the maximum coexistence time of the dual SIM card virtual service; wherein, the maximum resource release waiting time represents the maximum time that the current SIM card virtual container can survive after the internal and external SIM card switching is completed; Broadcast the maximum coexistence time of the dual-SIM virtual service and the maximum resource release waiting time to the dynamic route; After the dynamic route is successfully received, a target number card startup command is generated.
[0094] Specifically, after receiving the internal / external SIM card switching command from the cloud phone server, the working number server returns the calculated maximum coexistence time of the dual-SIM card virtual service to the cloud phone server. Based on the maximum coexistence time of the dual-SIM card virtual service, the cloud phone server calculates the maximum resource release waiting time, sets a limit on resource release, and provides a basis for the subsequent self-destruction of the container. The maximum resource release waiting time represents the maximum time that the current SIM card virtual container can survive after the internal / external SIM card switching is completed. The specific calculation process is as follows: ; in, To maximize the waiting time for resource release, The maximum coexistence time for virtual services with two SIM cards. This is the ratio of the set recovery time to the parallel time of the two containers. This is the preset minimum resource release waiting time.
[0095] The cloud phone server creates a broadcast notification, which synchronously sends the maximum coexistence time and maximum resource release waiting time of the dual-SIM virtual service to the cloud phone server and the dynamic route. After receiving and recording the notification, the cloud phone server generates the target SIM card startup command.
[0096] The maximum coexistence time of the dual-SIM card virtual service in this embodiment ensures the continuity of communication during the handover process, while the maximum resource release waiting time reasonably plans the lifespan of the current SIM card virtual container, avoiding unnecessary resource occupation.
[0097] In one optional implementation, the instruction parameters in the target SIM card activation command include the card number information of the currently used SIM card and the SIM card type of the target SIM card; wherein, the SIM card type includes internal SIM cards and external SIM cards.
[0098] Specifically, the command parameters in the target card startup command include the card number information of the currently used card and the card type of the target card. The card type includes internal card and external card. The working number server can determine the card number information of the target card based on the command parameters in the target card startup command, thereby starting the target card virtual container.
[0099] In one optional implementation, calculating the service usage level of the currently used SIM card includes: Retrieve the call frequency of the currently used SIM card and the validity of the session connection from the current SIM card virtual container; Calculate the service usage level of the currently used SIM card based on the call frequency and the link validity.
[0100] Specifically, the formula for calculating the service usage level of the current SIM card can be found as follows: ; in, The current service usage level of the SIM card. The current call frequency of the SIM card in use. To verify the validity of the session link, the value range is [0,1]. For long-term connection, the value range is [0,1]. All of the above parameters are obtained from the usage records of the current SIM card virtual container.
[0101] This embodiment calculates the service usage of the currently used SIM card based on a specific formula, which can more accurately determine whether a SIM card switching operation can be performed directly, avoiding service interruption caused by direct switching and ensuring communication continuity.
[0102] In an optional implementation, after the control server switches the current SIM card virtual container to the target SIM card virtual container based on the service usage level, the method further includes: A handover completion command is sent to the dynamic route so that the dynamic route releases resources from the virtual container of the SIM card before the handover based on the handover completion command.
[0103] Specifically, when the cloud phone server determines that all applications on the current terminal have completed the SIM card switch, it sends a switch completion instruction to the dynamic router. This instruction includes the information of the SIM card virtual container to be taken offline. Based on the switch completion instruction, the dynamic router releases the resources of the SIM card virtual container before the switch.
[0104] This embodiment avoids resource waste by timely releasing the resources occupied by the virtual container of the SIM card before switching, improves the overall resource utilization of the system, and ensures the smooth operation of the cloud phone service.
[0105] In one optional implementation, the method further includes: In response to the active switching instruction sent by the working number server, the active switching instruction is forwarded to the service currently running in the terminal, so that the service currently running actively completes the SIM card switching based on the active switching instruction; wherein, the active switching instruction is generated when the working number server detects that the current time has reached the maximum coexistence time of the dual SIM card virtual service, and the current SIM card virtual container has not yet switched to the target SIM card virtual container.
[0106] Specifically, to avoid the dual SIM cards being online for too long, the working number server will send an active switching instruction to the cloud phone server. After receiving the active switching instruction, the cloud phone server will forward the active switching instruction to the service running on the terminal, so that the running service can actively complete the SIM card switching based on the active switching instruction.
[0107] This embodiment effectively avoids the waste of resources caused by two SIM cards being online simultaneously for a long time. By actively triggering the switching, it ensures that the switching process can be completed within the specified time.
[0108] Thirdly, embodiments of the present invention provide a SIM card switching device based on a cloud phone, applied to a work number server, see [link to relevant documentation]. Figure 3 This is a schematic diagram of an embodiment of a SIM card switching device based on a cloud phone provided by the present invention.
[0109] like Figure 3 As shown, the device includes: The target SIM card activation command sending module 11 is used to respond to the internal / external SIM card switching command sent by the cloud mobile phone server and return a processing completion signal to the cloud mobile phone server so that the cloud mobile phone server generates a target SIM card activation command; wherein, the internal / external SIM card switching command is sent by the cloud mobile phone server after detecting that the terminal triggers the internal / external SIM card switching logic; The target SIM card virtual container startup module 12 is used to start the target SIM card virtual container based on the target SIM card startup command. The target SIM card virtual container switching module 13 is used to receive the service usage level of the currently used SIM card calculated by the cloud mobile phone server, and switch the current SIM card virtual container to the target SIM card virtual container based on the service usage level.
[0110] In one optional implementation, the target SIM card activation command sending module 11 includes: The first-time calculation submodule is used to calculate the maximum coexistence time of the dual-SIM virtual service based on the internal and external SIM card switching instruction; wherein, the maximum coexistence time of the dual-SIM virtual service represents the maximum time that the internal SIM card virtual container and the external SIM card virtual container can be online at the same time during the internal and external SIM card switching process; The first-time sending submodule is used to send the maximum coexistence time of the dual-SIM virtual service as a processing completion signal to the cloud phone server, so that the cloud phone server can generate a target SIM card startup command.
[0111] In one optional implementation, the target SIM card virtual container startup module 12 includes: The target SIM card startup instruction parsing submodule is used to receive and parse the target SIM card startup instruction, which includes the card number information of the currently used SIM card and the SIM card type of the target SIM card. The target SIM card number information acquisition submodule is used to acquire the target SIM card number information based on the SIM card number information of the currently used SIM card; The target SIM card virtual container startup submodule is used to start the target SIM card virtual container according to the card number information of the target SIM card.
[0112] It should be noted that the SIM card switching device based on a cloud phone provided in this embodiment of the invention is used to execute all the process steps of the SIM card switching method based on a cloud phone applied to a work number server in the above embodiment. The working principles and beneficial effects of the two are one-to-one, so they will not be described again.
[0113] Fourthly, embodiments of the present invention provide a SIM card switching device based on a cloud phone, applied to a cloud phone server, see [link to relevant documentation]. Figure 4 This is a schematic diagram of an embodiment of a SIM card switching device based on a cloud phone provided by the present invention.
[0114] like Figure 4 As shown, the device includes: The internal / external SIM card switching instruction sending module 21 is used to send an internal / external SIM card switching instruction to the working number server when the terminal triggers the internal / external SIM card switching logic. The internal / external SIM card switching instruction response module 22 is used to generate a target SIM card startup instruction in response to the processing completion signal of the working number server for the internal / external SIM card switching instruction, so that the working number server starts the target SIM card virtual container based on the target SIM card startup instruction; The current SIM card service usage calculation module 23 is used to calculate the service usage of the currently used SIM card and control the working number server to switch the current SIM card virtual container to the target SIM card virtual container based on the service usage.
[0115] In one optional implementation, the internal / external SIM card switching command response module 22 includes: The first-time receiving submodule is used to receive the processing completion signal sent by the working number server. The processing completion signal is the maximum coexistence time of the dual-number card virtual service calculated by the working number server based on the internal and external number card switching instruction. The maximum coexistence time of the dual-number card virtual service represents the maximum time that the internal number card virtual container and the external number card virtual container can be online at the same time during the internal and external number card switching process. The second time calculation submodule is used to calculate the maximum resource release waiting time based on the maximum coexistence time of the dual SIM card virtual service; wherein, the maximum resource release waiting time represents the maximum time that the current SIM card virtual container can survive after the internal and external SIM card switching is completed; The broadcast submodule is used to broadcast the maximum coexistence time of the dual-SIM card virtual service and the maximum resource release waiting time to the dynamic route; The target number card startup command generation submodule is used to generate the target number card startup command after the dynamic route is successfully received.
[0116] In one optional implementation, the device further includes a resource release module for sending a handover completion instruction to the dynamic route, so that the dynamic route releases resources of the virtual container of the SIM card before the handover based on the handover completion instruction.
[0117] It should be noted that the SIM card switching device based on a cloud phone provided in this embodiment of the invention is used to execute all the process steps of the SIM card switching method based on a cloud phone applied to a cloud phone server in the above embodiment. The working principles and beneficial effects of the two are one-to-one, so they will not be described again.
[0118] Fifthly, embodiments of the present invention provide an electronic device, see [link to previous document]. Figure 5The diagram shown is a structural schematic of an electronic device provided in an embodiment of the present invention.
[0119] like Figure 5 As shown, the device includes: Memory 31 is used to store computer programs; Processor 32 is used to execute the computer program; When the processor 32 executes the computer program, it implements the SIM card switching method based on a cloud phone as described in any of the above embodiments.
[0120] For example, the computer program may be divided into one or more modules / units, which are stored in the memory 31 and executed by the processor 32 to complete the present invention. The one or more modules / units may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the electronic device.
[0121] The processor 32 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.
[0122] The memory 31 can be used to store the computer programs and / or modules. The processor 32 implements various functions of the electronic device by running or executing the computer programs and / or modules stored in the memory 31 and calling the data stored in the memory 31. The memory 31 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the mobile phone (such as audio data, phonebook, etc.). In addition, the memory 31 may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, memory, plug-in hard disk, smart media card (SMC), secure digital card (SD) card, flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0123] It should be noted that the aforementioned electronic devices include, but are not limited to, processors and memory, as will be understood by those skilled in the art. Figure 5 The structural diagram is merely an example of the electronic device described above and does not constitute a limitation on the electronic device. It may include more components than shown in the diagram, or combine certain components, or use different components.
[0124] Sixthly, embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which, when executed, implements the SIM card switching method based on a cloud phone as described in any of the above embodiments.
[0125] It should be understood that the present invention can implement all or part of the processes in the above-described cloud-based SIM card switching method by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When executed by a processor, the computer program can implement the steps of the above-described cloud-based SIM card switching method. The computer program includes computer program code, which can be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc.
[0126] Seventhly, embodiments of this application also provide a computer program product, which is stored in a storage medium and executed by at least one processor to implement the SIM card switching method based on a cloud phone as described in any of the above embodiments.
[0127] The above description is merely a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. It should be noted that, for those skilled in the art, several equivalent obvious modifications and / or equivalent substitutions can be made without departing from the technical principles of the present invention, and these obvious modifications and / or equivalent substitutions should also be considered within the scope of protection of the present invention.
Claims
1. A method for switching SIM cards based on a cloud phone, characterized in that, Applied to working number servers, including: In response to the internal / external SIM card switching instruction sent by the cloud phone server, a processing completion signal is returned to the cloud phone server so that the cloud phone server generates a target SIM card activation instruction; wherein, the internal / external SIM card switching instruction is sent by the cloud phone server after detecting that the terminal has triggered the internal / external SIM card switching logic; The target SIM card virtual container is launched based on the target SIM card launch command; The system receives the service usage level of the currently used SIM card calculated by the cloud phone server, and switches the current SIM card virtual container to the target SIM card virtual container based on the service usage level.
2. The SIM card switching method based on a cloud phone as described in claim 1, characterized in that, The circumstances that trigger the internal / external SIM card switching logic include, but are not limited to, changes in the network environment used by the terminal, the current time falling at a preset working / non-working time switching node, the current SIM card's charges reaching the charge limit, and connection to a specific customer who requires internal / external SIM card switching.
3. The SIM card switching method based on a cloud phone as described in claim 1, characterized in that, The instruction parameters in the internal / external SIM card switching instruction include the temporary session identifier information between the current terminal and the cloud mobile phone server, the SIM card number information of the currently used SIM card, and the SIM card type of the currently used SIM card; wherein, the SIM card type includes internal SIM card and external SIM card.
4. The SIM card switching method based on a cloud phone as described in claim 1, characterized in that, The step of returning a processing completion signal to the cloud phone server, so that the cloud phone server generates a target SIM card activation command, includes: The maximum coexistence time of the dual-SIM virtual service is calculated based on the internal / external SIM card switching instruction; wherein, the maximum coexistence time of the dual-SIM virtual service represents the maximum time that the internal SIM card virtual container and the external SIM card virtual container can be online simultaneously during the internal / external SIM card switching process; The maximum coexistence time of the dual-SIM virtual service is sent as a processing completion signal to the cloud phone server, so that the cloud phone server generates a target SIM card activation command.
5. The SIM card switching method based on a cloud phone as described in claim 4, characterized in that, The calculation process for the maximum coexistence time of the dual-SIM virtual service includes: Obtain the target number card's continuous online time, the pre-set daily working hours, the operating energy consumption of the work number virtual container, and the current user's security level; The maximum coexistence time of the dual-SIM card virtual service is calculated based on the target SIM card's continuous online duration, the daily prescribed working hours, the operating energy consumption, and the security level.
6. The SIM card switching method based on a cloud phone as described in claim 1, characterized in that, The step of launching the target SIM card virtual container based on the target SIM card launch command includes: Receive and parse the target SIM card activation command, which includes the SIM card number information of the currently used SIM card and the SIM card type of the target SIM card; Obtain the target SIM card number information based on the SIM card number information of the currently used SIM card; The target card virtual container is activated based on the target card number information.
7. The SIM card switching method based on a cloud phone as described in claim 1, characterized in that, When the service usage level exceeds a preset usage level threshold, the step of switching the current SIM card virtual container to the target SIM card virtual container based on the service usage level includes: Send a container combination instruction to the current SIM card virtual container and the target SIM card virtual container, so that the current SIM card virtual container and the target SIM card virtual container form a dual container group; Upon receiving the notification that the dual-container group has been completed from the current SIM card virtual container and the target SIM card virtual container, the service request of the currently used SIM card is obtained and forwarded to the target SIM card virtual container.
8. The SIM card switching method based on a cloud phone as described in claim 7, characterized in that, The method further includes: After receiving the notification that the dual container group has been assembled, the dual container group is registered to the dynamic route, and the registration success notification is received from the dynamic route.
9. The SIM card switching method based on a cloud phone as described in claim 1, characterized in that, When the service usage level is less than a preset usage level threshold, the step of switching the current SIM card virtual container to the target SIM card virtual container based on the service usage level includes: In response to the container replacement command sent by the cloud phone server, the target SIM card virtual container is registered in the dynamic route, and the current SIM card virtual container is switched to the target SIM card virtual container.
10. The SIM card switching method based on a cloud phone as described in claim 4, characterized in that, The method further includes: When it is detected that the current time has reached the maximum coexistence time of the dual SIM card virtual service, and the current SIM card virtual container has not yet been switched to the target SIM card virtual container, an active switching command is generated; The active switching command is sent to the cloud phone server.
11. The SIM card switching method based on a cloud phone as described in claim 1, characterized in that, The method further includes: After the target SIM card virtual container is successfully switched, a switch success notification will be sent to the terminal so that the terminal can display the switch result.
12. A method for switching SIM cards based on a cloud phone, characterized in that, Applications include cloud phone servers, including: When the terminal detects that it has triggered the internal / external SIM card switching logic, it sends an internal / external SIM card switching command to the working number server. In response to the completion signal of the processing of the internal / external SIM card switching instruction by the working number server, a target SIM card startup instruction is generated so that the working number server starts the target SIM card virtual container based on the target SIM card startup instruction; Calculate the service usage level of the currently used SIM card, and control the working number server to switch the current SIM card virtual container to the target SIM card virtual container based on the service usage level.
13. The cloud-based mobile phone number switching method as described in claim 12, characterized in that, The circumstances that trigger the internal / external SIM card switching logic include, but are not limited to, changes in the network environment used by the terminal, the current time falling at a preset working / non-working time switching node, the current SIM card's charges reaching the charge limit, and connection to a specific customer who requires internal / external SIM card switching.
14. The SIM card switching method based on a cloud phone as described in claim 12, characterized in that, The instruction parameters in the internal / external SIM card switching instruction include the temporary session identifier information between the current terminal and the cloud phone server, the SIM card number information of the currently used SIM card, and the SIM card type of the currently used SIM card; wherein, the SIM card type includes internal SIM card and external SIM card.
15. The SIM card switching method based on a cloud phone as described in claim 12, characterized in that, The step of generating a target SIM card activation command in response to the completion signal of the processing of the internal / external SIM card switching command by the working number server includes: The system receives a processing completion signal sent by the working number server. The processing completion signal is the maximum coexistence time of the dual-SIM card virtual service calculated by the working number server based on the internal and external SIM card switching instruction. The maximum coexistence time of the dual-SIM card virtual service represents the maximum time that the internal SIM card virtual container and the external SIM card virtual container can be online at the same time during the internal and external SIM card switching process. The maximum resource release waiting time is calculated based on the maximum coexistence time of the dual SIM card virtual service; wherein, the maximum resource release waiting time represents the maximum time that the current SIM card virtual container can survive after the internal and external SIM card switching is completed; Broadcast the maximum coexistence time of the dual-SIM virtual service and the maximum resource release waiting time to the dynamic route; After the dynamic route is successfully received, a target number card startup command is generated.
16. The SIM card switching method based on a cloud phone as described in claim 12, characterized in that, The instruction parameters in the target SIM card activation command include the card number information of the currently used SIM card and the SIM card type of the target SIM card; wherein, the SIM card type includes internal SIM card and external SIM card.
17. The SIM card switching method based on a cloud phone as described in claim 12, characterized in that, The calculation of the service usage level of the currently used SIM card includes: Retrieve the call frequency of the currently used SIM card and the validity of the session connection from the current SIM card virtual container; Calculate the service usage level of the currently used SIM card based on the call frequency and the link validity.
18. The SIM card switching method based on a cloud phone as described in claim 12, characterized in that, After the control server switches the current SIM card virtual container to the target SIM card virtual container based on the service usage level, the method further includes: A handover completion command is sent to the dynamic route so that the dynamic route releases resources from the virtual container of the SIM card before the handover based on the handover completion command.
19. The SIM card switching method based on a cloud phone as described in claim 15, characterized in that, The method further includes: In response to the active switching instruction sent by the working number server, the active switching instruction is forwarded to the service currently running in the terminal, so that the service currently running actively completes the SIM card switching based on the active switching instruction; wherein, the active switching instruction is generated when the working number server detects that the current time has reached the maximum coexistence time of the dual SIM card virtual service, and the current SIM card virtual container has not yet switched to the target SIM card virtual container.
20. A SIM card switching device based on a cloud phone, applied to a work number server, characterized in that, include: The target SIM card activation command sending module is used to respond to the internal / external SIM card switching command sent by the cloud phone server and return a processing completion signal to the cloud phone server so that the cloud phone server generates the target SIM card activation command; wherein, the internal / external SIM card switching command is sent by the cloud phone server after detecting that the terminal triggers the internal / external SIM card switching logic; The target SIM card virtual container startup module is used to start the target SIM card virtual container based on the target SIM card startup command. The target SIM card virtual container switching module is used to receive the service usage level of the currently used SIM card calculated by the cloud mobile phone server, and switch the current SIM card virtual container to the target SIM card virtual container based on the service usage level.
21. The SIM card switching device based on a cloud phone as described in claim 20, characterized in that, The target SIM card activation command sending module includes: The first-time calculation submodule is used to calculate the maximum coexistence time of the dual-SIM virtual service based on the internal and external SIM card switching instruction; wherein, the maximum coexistence time of the dual-SIM virtual service represents the maximum time that the internal SIM card virtual container and the external SIM card virtual container can be online at the same time during the internal and external SIM card switching process; The first-time sending submodule is used to send the maximum coexistence time of the dual-SIM virtual service as a processing completion signal to the cloud phone server, so that the cloud phone server can generate a target SIM card startup command.
22. The SIM card switching device based on a cloud phone as described in claim 20, characterized in that, The target SIM card virtual container startup module includes: The target SIM card startup instruction parsing submodule is used to receive and parse the target SIM card startup instruction, which includes the card number information of the currently used SIM card and the SIM card type of the target SIM card. The target SIM card number information acquisition submodule is used to acquire the target SIM card number information based on the SIM card number information of the currently used SIM card; The target SIM card virtual container startup submodule is used to start the target SIM card virtual container according to the card number information of the target SIM card.
23. A SIM card switching device based on a cloud phone, applied to a cloud phone server, characterized in that, include: The internal / external SIM card switching instruction sending module is used to send an internal / external SIM card switching instruction to the working number server when the terminal triggers the internal / external SIM card switching logic. The internal / external SIM card switching instruction response module is used to respond to the processing completion signal of the internal / external SIM card switching instruction from the working number server, generate a target SIM card startup instruction, so that the working number server starts the target SIM card virtual container based on the target SIM card startup instruction; The current SIM card service usage calculation module is used to calculate the service usage of the currently used SIM card and control the working number server to switch the current SIM card virtual container to the target SIM card virtual container based on the service usage.
24. The SIM card switching device based on a cloud phone as described in claim 23, characterized in that, The internal / external SIM card switching command response module includes: The first-time receiving submodule is used to receive the processing completion signal sent by the working number server. The processing completion signal is the maximum coexistence time of the dual-number card virtual service calculated by the working number server based on the internal and external number card switching instruction. The maximum coexistence time of the dual-number card virtual service represents the maximum time that the internal number card virtual container and the external number card virtual container can be online at the same time during the internal and external number card switching process. The second time calculation submodule is used to calculate the maximum resource release waiting time based on the maximum coexistence time of the dual SIM card virtual service; wherein, the maximum resource release waiting time represents the maximum time that the current SIM card virtual container can survive after the internal and external SIM card switching is completed; The broadcast submodule is used to broadcast the maximum coexistence time of the dual-SIM card virtual service and the maximum resource release waiting time to the dynamic route; The target number card startup command generation submodule is used to generate the target number card startup command after the dynamic route is successfully received.
25. The SIM card switching device based on a cloud phone as described in claim 23, characterized in that, The device also includes a resource release module, used to send a handover completion command to the dynamic router, so that the dynamic router releases resources of the virtual container of the SIM card before the handover based on the handover completion command.
26. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program; When the processor executes the computer program, it implements the SIM card switching method based on a cloud phone as described in any one of claims 1 to 19.
27. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed, implements the SIM card switching method based on a cloud phone as described in any one of claims 1 to 19.
28. A computer program product, characterized in that, It includes computer instructions, which, when executed by a processor, implement the SIM card switching method based on a cloud phone as described in any one of claims 1 to 19.