Method, system and device for converting voice calls between third-party applications and mobile networks
By monitoring the network conditions of third-party applications in real time and switching to the mobile communication network when it is not good, the problem of call quality decline caused by network instability is solved, the stability and quality of calls are improved, and users are protected through encryption technology Data security.
Patent Information
- Application Number
- CN202411508060.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-28
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2044-10-28
AI Technical Summary
When third-party applications use mobile networks for voice calls, the call quality declines due to network instability, resulting in problems such as disconnection, high delay, and intermittent sounds.
By monitoring the network conditions of third-party applications in real time, predicting call quality, and switching calls to mobile communication networks when network conditions are poor, establishing conversion channels, converting call data formats to formats supported by mobile networks, ensuring that data is in the transmission process encryption and security in.
It significantly improves the stability and quality of calls, solves the compatibility and interoperability issues between third-party applications and mobile communication networks, ensures a smooth transition of calls, and ensures the security of user data through encryption technology.
Smart Images

Figure CN119052878B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of metal surface component detection, and in particular to a method, system and device for converting a voice call between a third-party application and a mobile network. Background Art
[0002] With the development of mobile Internet technology and the popularity of smart phones, the voice call function in third-party applications has become one of the important ways for people to communicate in daily life. However, when using third-party applications for voice calls, users often encounter problems such as call quality degradation due to unstable network, such as disconnection, high latency, intermittent sound, etc. These problems not only affect the user experience, but may also lead to the loss of important information. Summary of the invention
[0003] The main purpose of the present invention is to provide a method, system and device for converting voice calls between a third-party application and a mobile network, which can switch the call to the mobile communication network in time when the network conditions are poor, thereby improving the call quality.
[0004] To achieve the above object, the present invention provides a method for converting a voice call between a third-party application and a mobile network, comprising:
[0005] Monitor the network conditions of the third-party application in real time, and perform quality prediction on the call data of the third-party application according to the network conditions to obtain call quality information;
[0006] Generate a corresponding conversion task based on the call quality information, encrypt the conversion task and send it to the corresponding mobile operator network;
[0007] Acquire feedback information from the mobile operator network, and establish a corresponding conversion channel with the mobile operator network according to the feedback information;
[0008] Switching the call mode of the third-party application according to the conversion task, converting the format of the call data, and obtaining corresponding mobile call data;
[0009] The mobile call data is transmitted to the mobile operator network through the conversion channel and switched to a corresponding mobile communication mode.
[0010] Furthermore, the real-time monitoring of the network conditions of the third-party application and the quality prediction of the call data of the third-party application according to the network conditions to obtain the call quality information include:
[0011] Monitor the network conditions of the third-party application in real time, analyze the network conditions, and obtain delay indicators, packet loss rates, bandwidth indicators, and jitter indicators;
[0012] The weights of the delay index, packet loss rate, bandwidth index and jitter index are calculated based on the preset weight rules to obtain the corresponding delay weight value, packet loss rate weight value, bandwidth weight value and jitter weight value;
[0013] Based on the delay index, packet loss rate, bandwidth index and jitter index, the delay weight value, packet loss rate weight value, bandwidth weight value and jitter weight value are comprehensively calculated to obtain the corresponding comprehensive score;
[0014] Performing a quality assessment on the comprehensive score according to a preset quality threshold range, when the comprehensive score is lower than the quality threshold range, marking the quality information of the call data as poor, and generating corresponding call quality information;
[0015] When the comprehensive score is within the quality threshold range, marking the quality information of the call data as fair, and generating corresponding call quality information;
[0016] When the comprehensive score is higher than the quality threshold range, the quality information of the call data is marked as good, and corresponding call quality information is generated.
[0017] Further, the generating a corresponding conversion task based on the call quality information, and encrypting and sending the conversion task to the corresponding mobile operator network, includes:
[0018] The call quality information is read, and when the read information indicates that a call conversion is required,
[0019] generating the corresponding conversion task;
[0020] Read the user information and application code of the third-party application, generate a blank instruction packet according to a preset data packet rule, fill the conversion task into the blank instruction packet to obtain an initial instruction packet, and encrypt and compile the initial instruction packet according to a preset encryption rule to obtain a compiled instruction packet;
[0021] Convert the user information into a decoded code of a compiled instruction packet according to the encryption rule, and attach the decoded code to the compiled data packet to obtain a user instruction packet, perform secondary encryption compilation on the user instruction packet according to the application code to obtain an encrypted instruction packet and a decryption password, encapsulate the encrypted instruction packet and the decryption password to obtain a corresponding encrypted task packet;
[0022] The conversion task is sent to a mobile operation server corresponding to the mobile operation network.
[0023] Further, the obtaining of feedback information from the mobile operator network includes:
[0024] After sending the conversion task to the mobile operator server, detecting whether the feedback information is received within a preset time period, and when the feedback information is not received within the preset time period, resending the conversion task to the mobile operator server;
[0025] After obtaining the feedback information, determining whether the feedback information meets the preset feedback requirements, and re-obtaining the feedback information when the feedback information meets the feedback requirements;
[0026] The mobile operation server decrypting the conversion task includes:
[0027] Unpacking and reading the encrypted task packet to obtain the encrypted instruction packet and the decryption password, and decrypting the encrypted instruction packet once according to the decryption password to obtain the user instruction packet;
[0028] Unpacking the user instruction packet to obtain the decoding code and the compiling instruction packet, and re-decoding the compiling instruction packet according to the compiling code to obtain the user instruction packet;
[0029] The user instruction packet is task read to obtain the conversion task.
[0030] Further, establishing a corresponding conversion channel with the mobile operator network according to the feedback information includes:
[0031] Perform protocol analysis on the feedback information to obtain a reference communication protocol, generate a corresponding communication protocol and a connection request instruction based on the reference communication protocol, send a connection request instruction to the mobile operator server, and after receiving a response instruction from the mobile operator server, establish a conversion channel with the mobile operator network based on the communication protocol.
[0032] Further, switching the call mode of the third-party application according to the conversion task, converting the format of the call data, and obtaining corresponding mobile call data includes:
[0033] performing voice pattern recognition on the third-party application according to the conversion task, and when the voice pattern is a third-party call pattern, obtaining an application call format of the third-party application and a mobile call format of the mobile operator network, performing deviation analysis on the mobile call format and the application call format, and obtaining corresponding deviation information;
[0034] The call data is format-converted according to the deviation information and the mobile call format to obtain corresponding mobile call data.
[0035] Furthermore, the transmitting the mobile call data to the mobile operator network through the conversion channel and switching to a corresponding mobile communication mode includes:
[0036] detecting whether a data format of the mobile call data conforms to a channel format of the conversion channel, and if it does not conform to the channel format, re-adjusting the format of the mobile call data; and if it conforms to the channel format, transmitting the mobile call data to the mobile operator network through the conversion channel;
[0037] A call detection is performed on the third-party application, and when it is confirmed that the call data has been connected to the mobile operator network, the call mode of the third-party application is switched to the mobile communication mode of the mobile operator network.
[0038] The present invention also provides a voice call conversion system between a third-party application and a mobile network, which is applied to any of the above-mentioned voice call conversion methods between a third-party application and a mobile network, and comprises:
[0039] A collection module, the collection module is used to monitor the network conditions of the third-party application in real time, and perform quality prediction on the call data of the third-party application according to the network conditions to obtain call quality information;
[0040] An encryption module, the encryption module is used to generate a corresponding conversion task based on the call quality information, encrypt the conversion task and send it to the corresponding mobile operator network;
[0041] An analysis module, the analysis module is used to obtain feedback information from the mobile operator network and establish a corresponding conversion channel with the mobile operator network according to the feedback information;
[0042] A processing module, the processing module is used to switch the call mode of the third-party application according to the conversion task, convert the format of the call data, and obtain corresponding mobile call data;
[0043] A control module is used to transmit the mobile call data to the mobile operator network through the conversion channel and switch to a corresponding mobile communication mode.
[0044] The present invention also provides a device for converting a voice call between a third-party application and a mobile network, comprising:
[0045] Memory, used to store programs;
[0046] The processor is used to execute the program to implement each step of the method for converting a voice call between a third-party application and a mobile network as described in any one of the above.
[0047] The present invention provides the following beneficial effects:
[0048] By monitoring the network conditions of third-party applications in real time and predicting call quality, it is possible to switch calls to mobile communication networks in a timely manner when network conditions are poor, avoiding call interruptions, delays, and discontinuous sound caused by network fluctuations, and significantly improving call stability and quality. It can solve the compatibility and interoperability issues between third-party applications and mobile communication networks, allowing the two to work together seamlessly, ensuring a smooth transition of calls, and providing a consistent call experience regardless of the network environment the user is in. Encryption technology is used during the transmission of call data to ensure the security of user data. At the same time, the conversion task is also encrypted, further strengthening data protection and alleviating users' concerns about the leakage of personal information. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a flow chart of the method for converting a voice call between a third-party application and a mobile network provided by the present invention;
[0050] Figure 2 It is a structural diagram of the voice call conversion system between the third-party application and the mobile network provided by the present invention;
[0051] Figure 3 It is a structural diagram of a voice call conversion device between a third-party application and a mobile network provided by the present invention.
[0052] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0054] The present invention is further described below in conjunction with the accompanying drawings and specific implementation methods.
[0055] Reference Figure 1 As shown, the present invention provides a method for converting a voice call between a third-party application and a mobile network, comprising:
[0056] Step S1: monitor the network conditions of the third-party application in real time, and predict the quality of the call data of the third-party application according to the network conditions to obtain call quality information;
[0057] Step S2: Generate a corresponding conversion task based on the call quality information, encrypt the conversion task and send it to the corresponding mobile operator network;
[0058] Step S3: Obtain feedback information from the mobile operator network, and establish a corresponding conversion channel with the mobile operator network based on the feedback information;
[0059] Step S4: switching the call mode of the third-party application according to the conversion task, converting the call data into a format, and obtaining corresponding mobile call data;
[0060] Step S5: The mobile call data is transmitted to the mobile operator network through the conversion channel, and switched to the corresponding mobile communication mode.
[0061] Based on the above steps, the detailed process is as follows:
[0062] Step S1: Monitor the network connection status of the device where the third-party application is located in real time through the middleware platform, including but not limited to indicators such as Wi-Fi connection quality, cellular data signal strength, latency, packet loss rate, etc., and obtain these network status information by using system built-in or third-party APIs.
[0063] The call data samples under the current network conditions are collected through the middleware platform, such as the transmission rate, delay, packet loss, etc. of voice packets. Other related data also need to be collected, such as CPU usage, memory usage, etc.
[0064] The collected network condition data is used for quality prediction to predict the call quality of third-party applications under the current network conditions. The prediction result is a quality score or a series of indicators, such as MOS score (Mean Opinion Score), packet loss rate, delay, etc.
[0065] The predicted call quality information is recorded and stored in a local or cloud database.
[0066] Step S2: Based on the acquired call quality information, determine whether it is necessary to transfer the call from the third-party application to the mobile network through the middleware platform. If the predicted call quality is lower than a preset threshold, a conversion task is generated.
[0067] The conversion task should contain necessary information, such as the user's identity, current network conditions, expected call quality, etc.
[0068] The conversion task is encrypted, and the encryption algorithm of the encryption processing is selected according to the security requirements, such as AES (Advanced Encryption Standard) or RSA (Rivest-Shamir-Adleman).
[0069] The encrypted conversion task is sent to the mobile operator's server via a pre-configured security protocol.
[0070] During the sending process, the mobile operator network module is coordinated through the middleware platform to establish a conversion channel with the mobile operator's server. The encrypted transmission protocol used can include encrypted transmission protocols such as HTTPS or TLS. After the sending is successful, wait for the mobile operator server to return a confirmation message to verify that the task has been received.
[0071] If you do not receive a confirmation message, you need to resend the task or take other fault recovery measures.
[0072] Step S3: Receive confirmation information from the mobile operator server, which usually includes confirmation of the conversion task and any necessary parameter adjustment suggestions. The feedback information also includes information about the current status of the mobile network and available resources.
[0073] Analyze the details in the feedback information to understand the current status of the mobile network and whether it meets the requirements for call conversion. Check if there are any specific restrictions or requirements, such as user authorization, specific technical settings, etc.
[0074] According to the guidance provided in the feedback information, establish a dedicated conversion channel with the mobile operator. The conversion channel can be implemented through a specific port or protocol to ensure efficient and secure data transmission.
[0075] Before the official conversion, the newly established conversion channel is tested to ensure its stability and reliability.
[0076] The test involves sending a small number of data packets and checking their transmission quality and response time.
[0077] If the test results are satisfactory, it confirms that the channel is ready for the transmission of call data.
[0078] If the test fails or there are abnormalities, you need to reconfigure the channel or contact the mobile operator to resolve the underlying problem.
[0079] Step S4: After the middleware platform confirms that the conversion channel has been established and the test is successful, it starts preparing to switch the call mode. You can choose to turn off the voice call function in the third-party application.
[0080] Capture ongoing call data streams from third-party applications through a middleware platform, including real-time capture of audio streams. This step requires integration with third-party applications to ensure seamless data capture.
[0081] Convert the captured call data into a format supported by the mobile network. The data format conversion includes a change in the encoding method, such as converting from the encoding format used by third-party applications (such as Opus) to the encoding format supported by the mobile network (such as AMR or EVRC).
[0082] During the conversion process, the data needs to be subjected to additional quality optimization processing, such as noise reduction, echo cancellation, etc. The converted call data is packaged into a format suitable for mobile network transmission to obtain the corresponding mobile call data.
[0083] Step S5: Send the mobile call data to the network of the mobile operator through the conversion channel. The transmission quality and network status are continuously monitored during the data transmission process through the middleware platform, including but not limited to packet loss rate, delay, network congestion, etc.
[0084] If any problems are encountered during transmission, such as packet loss or high latency, immediate measures should be taken to correct them, including resending packets or adjusting transmission strategies to ensure call quality.
[0085] When the mobile operator receives the mobile call data and successfully establishes the call, it will send a confirmation message. The middleware platform monitors and receives this confirmation message to confirm that the call has been successfully established on the mobile network.
[0086] Continuously monitor call quality during a call to ensure that users have a good call experience on the mobile network. If call quality is found to have degraded, take further action such as re-encrypting data packets, adjusting encoding parameters, etc.
[0087] When the call ends, stop data transmission and notify the mobile operator through the switching channel. Close the switching channel and return the call control to the third-party application or user.
[0088] The present invention provides a method for converting voice calls between a third-party application and a mobile network. By real-time monitoring of the network conditions of the third-party application and predicting the call quality, the call can be switched to the mobile communication network in time when the network conditions are not good, avoiding problems such as call interruption, delay and discontinuous sound caused by network fluctuations, and significantly improving the stability and quality of the call. The compatibility and interoperability problems between the third-party application and the mobile communication network can be solved, so that the two can work together seamlessly, ensuring a smooth transition of the call, and obtaining a consistent call experience regardless of the network environment the user is in. Encryption technology is used in the transmission process of call data to ensure the security of user data. At the same time, the conversion task is also encrypted, which further strengthens data protection and reduces users' concerns about the leakage of personal information.
[0089] In one embodiment, the network conditions of the third-party application are monitored in real time, and the quality of the call data of the third-party application is predicted according to the network conditions to obtain the call quality information, including:
[0090] The middleware platform monitors the network conditions of third-party applications in real time, analyzes the network conditions, and obtains delay indicators, packet loss rate, bandwidth indicators, and jitter indicators.
[0091] The weights of the delay index, packet loss rate, bandwidth index and jitter index are calculated based on the preset weight rules to obtain the corresponding delay weight value, packet loss rate weight value, bandwidth weight value and jitter weight value.
[0092] Based on the delay index, packet loss rate, bandwidth index and jitter index, the delay weight value, packet loss rate weight value, bandwidth weight value and jitter weight value are comprehensively calculated to obtain the corresponding comprehensive score.
[0093] The calculation formula of the comprehensive score is: comprehensive score = delay weight value + packet loss rate weight value + bandwidth weight value + jitter weight value.
[0094] The comprehensive score is evaluated for quality according to a preset quality threshold range. When the comprehensive score is lower than the quality threshold range, the quality information of the call data is marked as poor, and corresponding call quality information is generated.
[0095] When the comprehensive score is within the quality threshold range, the quality information of the call data is marked as fair, and corresponding call quality information is generated.
[0096] When the comprehensive score is higher than the quality threshold range, the quality information of the call data is marked as good, and corresponding call quality information is generated.
[0097] This embodiment can promptly detect the deterioration of call quality through real-time monitoring and quality prediction of network conditions, so as to take measures to improve user experience. Users can adjust their behavior based on the provided call quality information, such as choosing a better network environment for calls. By comprehensively evaluating network conditions, the system can allocate resources more reasonably to ensure that acceptable service quality can still be provided under poor network conditions. When poor network conditions are detected, the video quality or audio bit rate is automatically reduced to reduce packet loss and delay to ensure the basic smoothness of the call. By analyzing the changing trends of network quality indicators, potential problems can be warned in advance, so that preventive measures can be taken to avoid degradation of service quality.
[0098] In one embodiment, generating a corresponding conversion task based on call quality information, and encrypting and sending the conversion task to a corresponding mobile operator network includes:
[0099] The call quality information is read through the middleware platform. When the read information requires call conversion (such as switching to a more stable network or changing the encoding method, etc.), a corresponding conversion task is generated.
[0100] Read the user information and application code of the third-party application, generate a blank instruction packet according to the preset data packet rules, fill the conversion task into the blank instruction packet to obtain an initial instruction packet, and encrypt and compile the initial instruction packet according to the preset encryption rules to obtain a compiled instruction packet.
[0101] According to the encryption rules, the user information is converted into the decoding code of the compiled instruction package, and the decoding code is attached to the compiled data packet to obtain the user instruction package, and the user instruction package is encrypted and compiled again according to the application code to obtain the encrypted instruction package and the decryption password, and the encrypted instruction package and the decryption password are encapsulated to obtain the corresponding encrypted task package.
[0102] The conversion task is sent to the mobile operation server corresponding to the mobile operation network through the middleware platform.
[0103] This embodiment can timely identify the deterioration of call quality by real-time monitoring and analysis of call quality information. When poor call quality is detected, a conversion task can be automatically initiated to improve call quality. The data packet is encrypted twice to ensure that it is difficult to be illegally cracked even if it is intercepted during transmission. User information is converted into a decoding code and attached to the encrypted data packet, further enhancing privacy protection. The encryption process ensures the integrity and consistency of data during transmission and reduces the risk of data tampering.
[0104] In one embodiment, obtaining feedback information from a mobile operator network includes:
[0105] After the conversion task is sent to the mobile operation server, the middleware platform detects whether feedback information is received within a preset time period. When the middleware platform does not receive feedback information within the preset time period, the conversion task is resent to the mobile operation server.
[0106] After the middleware platform obtains the feedback information, it determines whether the feedback information meets the preset feedback requirements. When the feedback information meets the feedback requirements, the feedback information is obtained again.
[0107] The mobile operation server decrypts the conversion task including:
[0108] The encrypted task package is unsealed and read to obtain an encrypted instruction package and a decryption password, and the encrypted instruction package is decrypted once according to the decryption password to obtain a user instruction package.
[0109] The user instruction packet is unpacked to obtain a decoded code and a compiled instruction packet, and the compiled instruction packet is re-decoded according to the compiled code to obtain a user instruction packet.
[0110] Read the task of the user instruction packet to obtain the conversion task.
[0111] This embodiment ensures data security by using encryption technology during data transmission, preventing data from being intercepted or tampered with during transmission. The double encryption mechanism ensures that even sensitive information can be fully protected. By setting a preset time period to monitor feedback information, it is ensured that the system can respond within the specified time, thereby improving the reliability and stability of the system. If no feedback information is received, the conversion task is resent to ensure that the conversion will not fail due to a short-term network problem.
[0112] In one embodiment, establishing a corresponding conversion channel with the mobile operator network according to the feedback information includes:
[0113] When the middleware platform receives the feedback information, it analyzes it to determine the optimal communication protocol under the current network environment, including the evaluation of indicators such as network bandwidth, delay, and packet loss rate.
[0114] Based on the above analysis results, select the reference communication protocol that best suits the current network environment.
[0115] Generates a corresponding connection request instruction based on the selected reference communication protocol. This instruction contains all the necessary information required to establish a connection, such as port, address, authentication key, etc.
[0116] Send a connection request instruction to the mobile operator server to request to establish a new conversion channel.
[0117] After receiving the connection request instruction, the mobile operator server will verify and allocate resources based on its content.
[0118] If everything goes well, the server will send a response to confirm that the connection request has been accepted.
[0119] When the response instruction is received, it indicates that the mobile operation server is ready to establish the conversion channel.
[0120] A conversion channel is established with the mobile operator network through the middleware platform based on the previously defined communication protocol. This process includes steps such as handshake protocol, selection of encryption algorithm, and key exchange.
[0121] This embodiment dynamically establishes the optimal conversion channel to ensure that the communication data is transmitted under the most appropriate protocol, thereby significantly improving the call quality and user experience. Real-time analysis of network conditions and selection of the best communication protocol helps reduce delays and packet loss during data transmission, which is especially important for real-time voice and video communications. Dynamically adjusting communication strategies based on network conditions can more efficiently utilize network resources and avoid unnecessary waste of resources. The ability to dynamically establish conversion channels enables the system to better adapt to changing network environments, whether switching from 4G to 5G or switching between different types of Wi-Fi networks.
[0122] In one embodiment, the call mode of the third-party application is switched according to the conversion task, and the call data is formatted to obtain the corresponding mobile call data, including:
[0123] First, the middleware platform performs voice pattern recognition on the third-party application according to the conversion task to determine whether the current call mode is a third-party call mode. If the recognition result indicates that the current call mode is a third-party call mode, proceed to the next step.
[0124] Get the application call format used by third-party applications and the mobile call format supported by the mobile operator network.
[0125] The difference between the application call format and the mobile call format is compared to obtain deviation information, where the deviation information includes but is not limited to differences in encoding mode, sampling rate, bit depth, etc.
[0126] According to the deviation information and the requirements of the mobile call format, the call data is converted into a format. If the encoding method of the application call format is inconsistent with the encoding method of the mobile call format, encoding conversion is required.
[0127] Adjust the sampling rate to match the requirements of the mobile call format, and adjust the bit depth as needed to ensure data compatibility. Make other format adjustments as needed, such as number of channels, frame rate, etc.
[0128] After completing the above conversion, mobile call data compatible with the mobile call format is obtained.
[0129] This embodiment ensures the transmission quality of call data on the mobile network by identifying the call mode of the third-party application and performing format conversion, thereby improving the overall call experience. Even under poor network conditions, call quality can be maintained through format conversion. Format conversion ensures that the data of the third-party application is compatible with the mobile network, which makes the interoperability between different applications and different networks stronger. It also supports more third-party applications to access the mobile network, improving the versatility of the system.
[0130] In one embodiment, the mobile call data is transmitted to the mobile operator network through the conversion channel, and the switching is performed to the corresponding mobile communication mode, including:
[0131] Check whether the converted mobile call data conforms to the data format required by the conversion channel. The channel format here refers to the format requirements specified by the mobile operator network, including but not limited to encoding method, sampling rate, bit depth and other parameters.
[0132] If the mobile call data does not conform to the channel format of the conversion channel, the mobile call data needs to be formatted again. According to the channel format requirements, the mobile call data is encoded, converted, sampled, and bit-depth adjusted until the data format meets the requirements.
[0133] If the mobile call data conforms to the channel format of the conversion channel, the data is transmitted to the mobile operator network through the conversion channel.
[0134] Perform call detection on the third-party application to confirm that the mobile call data has been successfully connected to the mobile operator network. If it is confirmed that the call data has been connected to the mobile operator network, it is considered that the call mode has been switched successfully.
[0135] When it is confirmed that the call data has been connected to the mobile operator network, the switching from the call mode of the third-party application to the mobile communication mode of the mobile operator network is completed.
[0136] This embodiment ensures that the mobile call data meets the format requirements of the conversion channel and ensures the quality of the data during transmission, thereby improving the call quality. When the data format does not meet the requirements, the format is adjusted to ensure that the data can be correctly processed by the mobile network, reducing delays and packet losses in the call. By detecting whether the data format meets the channel format, it is ensured that the data can be smoothly transmitted to the mobile operator network through the conversion channel, avoiding data transmission failures or quality problems caused by format mismatch. Readjustment when the data format does not meet the requirements can improve the robustness of the system and ensure that stable call quality can be maintained even when network conditions change.
[0137] Reference Figure 2 As shown, the present invention also provides a voice call conversion system between a third-party application and a mobile network, which is applied to any of the above-mentioned voice call conversion methods between a third-party application and a mobile network, comprising:
[0138] The acquisition module is used to monitor the network conditions of third-party applications in real time, and to predict the quality of call data of third-party applications based on the network conditions to obtain call quality information;
[0139] An encryption module, the encryption module is used to generate a corresponding conversion task based on the call quality information, and encrypt the conversion task and send it to the corresponding mobile operator network;
[0140] An analysis module, which is used to obtain feedback information from the mobile operator network and establish a corresponding conversion channel with the mobile operator network based on the feedback information;
[0141] A processing module, which is used to switch the call mode of the third-party application according to the conversion task, convert the call data into a format, and obtain the corresponding mobile call data;
[0142] The control module is used to transmit the mobile call data to the mobile operator network through the conversion channel and switch to the corresponding mobile communication mode.
[0143] The present invention provides a voice call conversion system between a third-party application and a mobile network. By real-time monitoring of the network conditions of the third-party application and predicting the call quality, the call can be switched to the mobile communication network in time when the network conditions are not good, avoiding problems such as call interruption, delay and discontinuous sound caused by network fluctuations, and significantly improving the stability and quality of the call. The compatibility and interoperability problems between the third-party application and the mobile communication network can be solved, so that the two can work together seamlessly, ensuring a smooth transition of the call, and obtaining a consistent call experience regardless of the network environment the user is in. Encryption technology is used in the transmission process of call data to ensure the security of user data. At the same time, the conversion task is also encrypted, which further strengthens data protection and reduces users' concerns about the leakage of personal information.
[0144] Reference Figure 3 As shown, the present invention also provides a voice call conversion device between a third-party application and a mobile network, comprising:
[0145] Memory, used to store programs;
[0146] The processor is used to execute the program to implement each step of the method for converting a voice call between a third-party application and a mobile network as described in any one of the above.
[0147] In this embodiment, the processor and the memory may be connected via a bus or other means. The memory may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk, or a solid-state drive. The processor may be a general-purpose processor, such as a central processing unit, a digital signal processor, an application-specific integrated circuit, or one or more integrated circuits configured to implement the embodiments of the present invention.
[0148] It should be noted that technicians in the relevant technical field can clearly understand that for the convenience and conciseness of description, the specific working process of the system and each module described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0149] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for converting a voice call between a third-party application and a mobile network, characterized in that: include: Monitor the network conditions of the third-party application in real time, and perform quality prediction on the call data of the third-party application according to the network conditions to obtain call quality information; Generate a corresponding conversion task based on the call quality information, encrypt the conversion task and send it to the corresponding mobile operator network; Acquire feedback information from the mobile operator network, and establish a corresponding conversion channel with the mobile operator network according to the feedback information; Switching the call mode of the third-party application according to the conversion task, converting the format of the call data, and obtaining corresponding mobile call data; Transmitting the mobile call data to the mobile operator network through the conversion channel and switching to a corresponding mobile communication mode; The generating a corresponding conversion task based on the call quality information, and encrypting and sending the conversion task to the corresponding mobile operator network, comprises: The call quality information is read, and when the read information indicates that a call conversion is required, generating the corresponding conversion task; Read the user information and application code of the third-party application, generate a blank instruction packet according to a preset data packet rule, fill the conversion task into the blank instruction packet to obtain an initial instruction packet, and encrypt and compile the initial instruction packet according to a preset encryption rule to obtain a compiled instruction packet; Convert the user information into a decoded code of a compiled instruction packet according to the encryption rule, and attach the decoded code to the compiled data packet to obtain a user instruction packet, perform secondary encryption compilation on the user instruction packet according to the application code to obtain an encrypted instruction packet and a decryption password, encapsulate the encrypted instruction packet and the decryption password to obtain a corresponding encrypted task packet; Sending the conversion task to a mobile operator server corresponding to the mobile operator network; The obtaining of feedback information from the mobile operator network includes: After sending the conversion task to the mobile operator server, detecting whether the feedback information is received within a preset time period, and when the feedback information is not received within the preset time period, resending the conversion task to the mobile operator server; After obtaining the feedback information, determining whether the feedback information meets the preset feedback requirements, and re-obtaining the feedback information when the feedback information meets the feedback requirements; The mobile operation server decrypting the conversion task includes: Unpacking and reading the encrypted task packet to obtain the encrypted instruction packet and the decryption password, and decrypting the encrypted instruction packet once according to the decryption password to obtain the user instruction packet; Unpacking the user instruction packet to obtain the decoding code and the compiling instruction packet, and re-decoding the compiling instruction packet according to the compiling code to obtain the user instruction packet; The user instruction packet is task read to obtain the conversion task.
2. The method for converting a voice call between a third-party application and a mobile network according to claim 1, characterized in that: The real-time monitoring of the network conditions of the third-party application and performing quality prediction on the call data of the third-party application according to the network conditions to obtain call quality information include: Monitor the network conditions of the third-party application in real time, analyze the network conditions, and obtain delay indicators, packet loss rates, bandwidth indicators, and jitter indicators; The weights of the delay index, packet loss rate, bandwidth index and jitter index are calculated based on the preset weight rules to obtain the corresponding delay weight value, packet loss rate weight value, bandwidth weight value and jitter weight value; Based on the delay index, packet loss rate, bandwidth index and jitter index, the delay weight value, packet loss rate weight value, bandwidth weight value and jitter weight value are comprehensively calculated to obtain the corresponding comprehensive score; Performing a quality assessment on the comprehensive score according to a preset quality threshold range, when the comprehensive score is lower than the quality threshold range, marking the quality information of the call data as poor, and generating corresponding call quality information; When the comprehensive score is within the quality threshold range, marking the quality information of the call data as fair, and generating corresponding call quality information; When the comprehensive score is higher than the quality threshold range, the quality information of the call data is marked as good, and corresponding call quality information is generated.
3. The method for converting a voice call between a third-party application and a mobile network according to claim 1, characterized in that: The establishing a corresponding conversion channel with the mobile operator network according to the feedback information includes: Perform protocol analysis on the feedback information to obtain a reference communication protocol, generate a corresponding communication protocol and a connection request instruction based on the reference communication protocol, send a connection request instruction to the mobile operator server, and after receiving a response instruction from the mobile operator server, establish a conversion channel with the mobile operator network based on the communication protocol.
4. The method for converting a voice call between a third-party application and a mobile network according to claim 1, wherein: The switching of the call mode of the third-party application according to the conversion task, converting the format of the call data to obtain corresponding mobile call data, includes: performing voice pattern recognition on the third-party application according to the conversion task, and when the voice pattern is a third-party call pattern, obtaining an application call format of the third-party application and a mobile call format of the mobile operator network, performing deviation analysis on the mobile call format and the application call format, and obtaining corresponding deviation information; The call data is format-converted according to the deviation information and the mobile call format to obtain corresponding mobile call data.
5. The method for converting a voice call between a third-party application and a mobile network according to claim 1, characterized in that: The transmitting the mobile call data to the mobile operator network through the conversion channel and switching to the corresponding mobile communication mode includes: detecting whether a data format of the mobile call data conforms to a channel format of the conversion channel, and if it does not conform to the channel format, re-adjusting the format of the mobile call data; and if it conforms to the channel format, transmitting the mobile call data to the mobile operator network through the conversion channel; A call detection is performed on the third-party application, and when it is confirmed that the call data has been connected to the mobile operator network, the call mode of the third-party application is switched to the mobile communication mode of the mobile operator network.
6. A voice call conversion system between a third-party application and a mobile network, applied to any one of the voice call conversion methods between a third-party application and a mobile network in claims 1-5, characterized in that: include: A collection module, the collection module is used to monitor the network conditions of the third-party application in real time, and perform quality prediction on the call data of the third-party application according to the network conditions to obtain call quality information; An encryption module, the encryption module is used to generate a corresponding conversion task based on the call quality information, encrypt the conversion task and send it to the corresponding mobile operator network; An analysis module, the analysis module is used to obtain feedback information from the mobile operator network and establish a corresponding conversion channel with the mobile operator network according to the feedback information; A processing module, the processing module is used to switch the call mode of the third-party application according to the conversion task, convert the format of the call data, and obtain corresponding mobile call data; A control module, the control module is used to transmit the mobile call data to the mobile operator network through the conversion channel and switch to a corresponding mobile communication mode; The generating a corresponding conversion task based on the call quality information, and encrypting and sending the conversion task to the corresponding mobile operator network, comprises: The call quality information is read, and when the read information indicates that a call conversion is required, generating the corresponding conversion task; Read the user information and application code of the third-party application, generate a blank instruction packet according to a preset data packet rule, fill the conversion task into the blank instruction packet to obtain an initial instruction packet, and encrypt and compile the initial instruction packet according to a preset encryption rule to obtain a compiled instruction packet; Convert the user information into a decoded code of a compiled instruction packet according to the encryption rule, and attach the decoded code to the compiled data packet to obtain a user instruction packet, perform secondary encryption compilation on the user instruction packet according to the application code to obtain an encrypted instruction packet and a decryption password, encapsulate the encrypted instruction packet and the decryption password to obtain a corresponding encrypted task packet; Sending the conversion task to a mobile operator server corresponding to the mobile operator network; The obtaining of feedback information from the mobile operator network includes: After sending the conversion task to the mobile operator server, detecting whether the feedback information is received within a preset time period, and when the feedback information is not received within the preset time period, resending the conversion task to the mobile operator server; After obtaining the feedback information, determining whether the feedback information meets the preset feedback requirements, and re-obtaining the feedback information when the feedback information meets the feedback requirements; The mobile operation server decrypting the conversion task includes: Unpacking and reading the encrypted task packet to obtain the encrypted instruction packet and the decryption password, and decrypting the encrypted instruction packet once according to the decryption password to obtain the user instruction packet; Unpacking the user instruction packet to obtain the decoding code and the compiling instruction packet, and re-decoding the compiling instruction packet according to the compiling code to obtain the user instruction packet; The user instruction packet is task read to obtain the conversion task.
7. A device for converting voice calls between a third-party application and a mobile network, characterized in that: include: Memory, used to store programs; The processor is used to execute the program to implement the various steps of the method for converting a voice call between a third-party application and a mobile network as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Method for fusing and communicating CS domain and PS domain, server and storage medium
CN111901841A
Voice call quality detection method
CN117061378A