Fax interaction method, system and device, electronic equipment and storage medium
By embedding a fax client in the analog telephone adapter and utilizing a fax session control server to transmit data, the fax interaction link is optimized, resolving fax anomalies or failures and improving fax interaction efficiency.
Patent Information
- Application Number
- CN202511877929.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-12
- Publication Date
- 2026-02-24
AI Technical Summary
Existing fax interaction methods are susceptible to factors such as network jitter, packet loss, latency, and remote echoes in the data link, which can lead to fax anomalies or failures and result in low efficiency.
A built-in fax client is incorporated into the analog telephone adapter. It receives fax data via the fax transmission protocol and saves it in the target format. The fax session control server is used to transmit data, reducing session forwarding processes and optimizing the fax interaction link.
It reduces the impact of network factors on fax interaction results, improves fax interaction efficiency, and resolves fax anomalies or failures.
Smart Images

Figure CN121567685A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and more specifically to a fax interaction method, system, device, electronic device, and storage medium. Background Technology
[0002] With the development of communication technology that transmits voice signals based on Internet Protocol (IP) (VoIP), IP fax services based on RTP (Real-time Transport Protocol) transparent fax and T.38 real-time fax technology have emerged.
[0003] However, current fax interaction methods are prone to fax anomalies or failures due to factors such as network jitter, packet loss, latency, and remote echoes in the data link, resulting in low fax interaction efficiency. Summary of the Invention
[0004] This application provides a fax interaction method, system, device, electronic device, and storage medium, which can reduce the session forwarding process in the fax interaction process, effectively optimize the fax interaction link, thereby reducing the impact of network factors on the fax interaction result and improving fax interaction efficiency.
[0005] This application provides a fax interaction method applied to a first analog telephone adapter, including: When a fax transmission signal initiated by the first fax device to the second fax device is detected, the fax receiving mode of the first fax client built into the first analog telephone adapter is activated. In the fax receiving mode, the first fax client sends a fax response signal to the first fax device based on the fax transmission protocol to receive the fax data sent by the first fax device and save the fax data in the target format to obtain a fax data file; Based on the called number information of the second fax device, the fax data file is sent through the registered fax session control server, so that the second analog telephone adapter corresponding to the second fax device can obtain the fax data file through the fax session control server and send the fax data file to the second fax device based on the built-in second fax client.
[0006] Furthermore, embodiments of this application also provide a fax interaction method applied to a second analog telephone adapter, comprising: Based on the registered fax session control server, obtain the fax data file sent by the first analog telephone adapter corresponding to the first fax device; Send a fax call signal to the second fax device corresponding to the second analog telephone adapter; Upon receiving a call response signal from the second fax device based on the fax call signal, the fax sending mode of the second fax client built into the second analog telephone adapter is activated; In the fax sending mode, the fax data file is sent to the second fax device via the second fax client based on the fax transmission protocol.
[0007] Accordingly, embodiments of this application also provide a fax interaction device, including: An activation unit is used to activate the fax receiving mode of the first fax client built into the first analog telephone adapter when a fax transmission signal initiated by the first fax device to the second fax device is detected. The sending unit is configured to, in the fax receiving mode, send a fax response signal to the first fax device through the first fax client based on the fax transmission protocol, receive fax data sent by the first fax device, and save the fax data in a target format to obtain a fax data file; An interaction unit is configured to send the fax data file through a registered fax session control server based on the called number information of the second fax device, so that the second analog telephone adapter corresponding to the second fax device can obtain the fax data file through the fax session control server and send the fax data file to the second fax device based on the built-in second fax client.
[0008] Accordingly, embodiments of this application also provide another fax interaction device, including: The data acquisition unit is used to acquire the fax data file sent by the first analog telephone adapter corresponding to the first fax device based on the registered fax session control server; The signal transmitting unit is used to send a fax call signal to the second fax device corresponding to the second analog telephone adapter; The mode activation unit is used to activate the fax sending mode of the second fax client built into the second analog telephone adapter when it receives a call response signal fed back by the second fax device based on the fax call signal; The data interaction unit is used to send the fax data file to the second fax device via the second fax client based on the fax transmission protocol in the fax sending mode.
[0009] Furthermore, embodiments of this application also provide a fax interaction system, including a first analog telephone adapter, a second analog telephone adapter, and a fax session control server, comprising: When the first analog telephone adapter detects a fax transmission signal initiated by the first fax device for the second fax device, it activates the fax receiving mode of the first fax client built into the first analog telephone adapter. In the fax receiving mode, the first analog telephone adapter sends a fax response signal to the first fax device through the first fax client based on the fax transmission protocol, so as to receive the fax data sent by the first fax device and save the fax data in the target format to obtain a fax data file; The first analog telephone adapter sends the fax data file through a registered fax session control server based on the called number information of the second fax device; The second analog telephone adapter obtains the fax data file sent by the first analog telephone adapter corresponding to the first fax device based on the fax session control server; The second analog telephone adapter sends a fax call signal to the second fax device; When the second analog telephone adapter receives a call response signal from the second fax device based on the fax call signal, it activates the fax sending mode of the second fax client built into the second analog telephone adapter. In the fax sending mode, the second analog telephone adapter sends the fax data file to the second fax device via the second fax client based on the fax transmission protocol.
[0010] Furthermore, embodiments of this application also provide an electronic device, including a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of any of the fax interaction methods provided in embodiments of this application.
[0011] Furthermore, embodiments of this application also provide a computer-readable storage medium including a computer program, which, when run on an electronic device, causes the electronic device to perform the steps of any of the fax interaction methods provided in embodiments of this application.
[0012] Furthermore, embodiments of this application also provide a computer program product, including a computer program stored in a computer-readable storage medium; when a processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, causing the electronic device to perform the steps of any of the fax interaction methods provided in embodiments of this application.
[0013] In this embodiment, when a fax transmission signal initiated by a first fax device for a second fax device is detected, the fax receiving mode of the first fax client built into the first analog telephone adapter is activated. In fax receiving mode, the first fax client sends a fax response signal to the first fax device based on the fax transmission protocol to receive the fax data sent by the first fax device and save the fax data in a target format to obtain a fax data file. Based on the called number information of the second fax device, the fax data file is sent through a registered fax session control server, so that the second analog telephone adapter corresponding to the second fax device can obtain the fax data file through the fax session control server and send the fax data file to the second fax device based on the built-in second fax client. Therefore, by embedding a fax client in the analog telephone adapter, when the first fax device needs to send a fax, the fax receiving mode of the first fax client can be activated. The first fax client simulates a fax receiver and sends a fax response signal to the first fax device, thereby obtaining the fax data sent by the first fax device. Then, the fax data file is sent through the registered fax session control server, so that the second fax device can obtain the fax data file through the fax client embedded in the second analog telephone adapter. This reduces the session forwarding process in the fax interaction, effectively optimizes the fax interaction link, reduces the impact of network factors on the fax interaction result, and thus improves the fax interaction efficiency. Attached Figure Description
[0014] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0015] Figure 1 This is a schematic diagram illustrating an implementation scenario of a fax interaction method provided in this application embodiment; Figure 2 This is a flowchart illustrating a fax interaction method provided in an embodiment of this application; Figure 3a This is a schematic diagram illustrating a specific interaction of a fax interaction method provided in the embodiments of this application; Figure 3b This is a schematic diagram of the overall architecture of a fax interaction method provided in the embodiments of this application; Figure 4 This is another flowchart illustrating a fax interaction method provided in the embodiments of this application; Figure 5 This is a schematic diagram of the structure of the fax interaction device provided in the embodiments of this application; Figure 6 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0016] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0017] Furthermore, in the description of the embodiments of this application, the terms "first," "second," etc., are used only for distinguishing descriptions and should not be construed as indicating or implying relative importance. Therefore, a feature specified as "first" or "second" may explicitly or implicitly include one or more features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly specified.
[0018] This application provides a fax interaction method, system, electronic device, and storage medium. The fax interaction device can be integrated into an electronic device, which can be a server, a terminal, a gateway, an adapter, or other similar device.
[0019] The server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery network (CDN) acceleration services, and big data and artificial intelligence platforms. The terminal can include, but is not limited to, mobile phones, computers, smart voice interaction devices, smart home appliances, vehicle terminals, and aircraft. The terminal and server can be directly or indirectly connected via wired or wireless communication, which is not limited herein.
[0020] Please see Figure 1 Taking the integration of fax machines into electronic devices as an example, Figure 1This is a schematic diagram illustrating an implementation scenario of the fax interaction method provided in this application. The electronic device can be a first analog telephone adapter. When the electronic device detects a fax transmission signal initiated by a first fax device for a second fax device, it activates the fax receiving mode of the first fax client built into the first analog telephone adapter. In fax receiving mode, the first fax client sends a fax response signal to the first fax device based on a fax transmission protocol to receive the fax data sent by the first fax device and saves the fax data in a target format to obtain a fax data file. Based on the called number information of the second fax device, the fax data file is sent through a registered fax session control server, so that the second analog telephone adapter corresponding to the second fax device obtains the fax data file through the fax session control server and sends the fax data file to the second fax device based on the built-in second fax client.
[0021] Alternatively, the electronic device can be a second analog telephone adapter, which can obtain the fax data file sent by the first analog telephone adapter corresponding to the first fax device based on a registered fax session control server; send a fax call signal to the second fax device corresponding to the second analog telephone adapter; and activate the fax sending mode of the second fax client built into the second analog telephone adapter when it receives a call response signal from the second fax device based on the fax call signal. In the fax sending mode, the fax data file is sent to the second fax device through the second fax client based on the fax transmission protocol.
[0022] It should be noted that, Figure 1 The illustrated scenario of the fax interaction method is merely an example. The implementation environment of the fax interaction method described in this application is intended to more clearly illustrate the technical solutions of this application and does not constitute a limitation on the technical solutions provided in this application. Those skilled in the art will recognize that, with the evolution of fax interaction and the emergence of new business scenarios, the technical solutions provided in this application are equally applicable to similar technical problems.
[0023] The solutions provided in this application are specifically illustrated through the following embodiments. It should be noted that the order of description of the following embodiments is not intended to limit the preferred order of the embodiments.
[0024] This embodiment will be described from the perspective of a fax interaction device, which can be integrated into an electronic device, and this application does not impose any limitations on it.
[0025] Please see Figure 2 , Figure 2 This is a flowchart illustrating the fax interaction method provided in an embodiment of this application. The fax interaction method is applied to a first analog telephone adapter and includes: In step 101, when a fax transmission signal initiated by the first fax device to the second fax device is detected, the fax receiving mode of the first fax client built into the first analog telephone adapter is activated.
[0026] The first analog telephone adapter can be an analog telephone adapter corresponding to the first fax device. This analog telephone adapter (ATA) is an interface device that connects a traditional analog telephone device to a network or the Internet, primarily used for converting analog voice signals to digital signals. The first fax device can be a fax machine that initiates a fax transmission, i.e., a fax sending end. The second fax device can be a fax receiving end that receives fax data, i.e., a fax receiving end that is being called. The fax sending signal can be a signal instructing the first fax device to send a fax, such as an off-hook signal or a dial DTMF signal. The first fax client can be a fax client built into the first analog telephone adapter. The fax receiving mode can be a mode used to control the interaction between the fax client's analog fax receiving end and the connected fax device.
[0027] In this embodiment, by embedding a fax client in the analog telephone adapter, the fax client can be used to simulate the fax receiver or fax sender interacting with their respective connected fax devices during fax communication. This avoids multiple session forwardings and data exchanges between the first and second fax devices via the analog telephone adapter during the fax communication process, reducing session forwarding and effectively optimizing the fax communication link. It also effectively solves the problem of fax anomalies or failures caused by factors such as network jitter, packet loss, latency, and remote echoes in the data link, thereby improving fax communication efficiency.
[0028] Optionally, the built-in fax client of the analog telephone adapter can use the Fax Transmission Protocol (T.30) to interact with the connected fax device. For example, the fax client can send fax signals such as CED signals and Digital Identification Signals (DIS) to the fax device based on the T.30 protocol.
[0029] Optionally, since the fax device needs to pick up the phone and dial before sending a fax, when the first analog telephone adapter detects the off-hook signal of the first fax device and receives the number of the called party (e.g., the second fax device) through the dialing signal, it can be considered that a fax sending signal initiated by the first fax device for the second fax device has been detected.
[0030] In one embodiment, after detecting a fax transmission signal initiated by the first fax device for the second fax device, it can be detected whether the current operating mode of the first fax device matches the fax transmission state. If the current operating mode of the first fax device matches the fax transmission state, the fax receiving mode of the first fax client built into the first analog telephone adapter can be activated to proceed with the subsequent fax interaction process. For example, the called party's number information can be obtained and saved based on the dialing signal, and a fax signal detector can be activated to detect fax signals such as the calling tone (CNG), called terminal identification (CED), and answer tone (Ans) in the line between the first fax device and the first analog telephone adapter. For example, when the fax signal detector detects a CED signal or an Ans signal sent by the first fax device, it can be considered that the first fax device is in receiving mode, indicating that there is an anomaly in the current operating mode of the first fax device. A busy tone signal can be sent to the first fax device to prompt it to hang up and re-operate. When the fax signal detector detects the CNG signal sent by the first fax device, or when no CED or Ans signal is detected within a preset time, it can be considered that the first fax device is in the correct sending mode and can continue the subsequent fax sending process. This allows the client program of the first fax client built into the first analog telephone adapter to be started, thereby activating the fax receiving mode of the first fax client.
[0031] In step 102, in fax receiving mode, the first fax client sends a fax response signal to the first fax device based on the fax transmission protocol to receive the fax data sent by the first fax device and save the fax data in the target format to obtain a fax data file.
[0032] The fax transmission protocol (T.30 protocol) can be a standard protocol in fax communication, defining the communication process of a fax machine on an analog telephone line, including stages such as call setup, parameter negotiation, data transmission, and connection release. The fax response signal can be a fax signal sent by the first fax client to the first fax device based on the fax sending signal, used to simulate the fax receiver obtaining fax data from the first fax device. The fax data can be the data that the first fax device needs to fax. The target format can be a format used to save the fax data, allowing the fax data to be saved as a single file, thus avoiding fax failures or anomalies caused by network abnormalities when fax data is transmitted and forwarded multiple times, thereby improving fax interaction efficiency. The fax data file can be a file containing fax data saved in the target format.
[0033] Optionally, the target format may include formats such as Tag Image File Format (TIFF) and Portable Document Format (PDF).
[0034] In fax receiving mode, there are several ways for the first fax client to send a fax response signal to the first fax device based on the fax transmission protocol in order to receive the fax data sent by the first fax device. For example, please refer to [reference needed]. Figure 3a , Figure 3aThis is a schematic diagram illustrating a specific interaction of a fax interaction method provided in this embodiment. The first analog telephone adapter (ATA1) can send fax signals such as CED / DIS to the first fax device (fax machine 1) via its built-in first fax client. Simultaneously, it can receive and process fax signals and page data sent by the first fax device, including Digital Command Signal (DCS), Training Check Frame (TCF), and Phase C. It can also send a Confirmation to Receive (CFR) signal to the first fax device, thus enabling local interaction between the first fax client and the first fax device. During this interaction, the first fax client of ATA1 can parse the received page data to obtain fax data and save it in TIFF file format in ATA1's local directory. After receiving fax signals such as the End Of Procedure (EOP) command from fax machine 1, the first fax client can send a Message Confirmation (MCF) signal to fax machine 1 to indicate that the current fax page data has been successfully received and to await subsequent signals from fax machine 1. If ATA1 receives a disconnect signal (DCN) from fax machine 1, ATA1 can assume that the local fax interaction with fax machine 1 has ended. At this point, if fax machine 1 does not actively hang up, ATA1 can send a busy tone or other signals to prompt the first fax machine to hang up.
[0035] In step 103, based on the called number information of the second fax device, a fax data file is sent through the registered fax session control server, so that the second analog telephone adapter corresponding to the second fax device can obtain the fax data file through the fax session control server and send the fax data file to the second fax device based on the built-in second fax client.
[0036] The called number information can be the number of the called second fax device. This number information can include the fax device's number, which can be used for sessions between fax devices to exchange fax data. The fax session control server, also known as a Private Branch Exchange (IPPBX) or simply an IPPBX server, is a core component of an enterprise telephone communication system built on the Internet Protocol (IP). It enables unified transmission of voice, data, and video communication through Voice over IP (VoIP) technology, supporting cross-regional networking and multi-functional integration. The second analog telephone adapter can be the analog telephone adapter corresponding to the second fax device. The second fax client can be the fax client built into the second analog telephone adapter.
[0037] In the fax interaction process, fax devices can be used to scan and print fax data. Analog telephone adapters can be used to connect fax data to the VoIP network via control signaling based on the Session Initiation Protocol (SIP). Data is then transmitted via transport protocols such as RTP and T.38. IPPBX servers can be used to implement session control and data forwarding functions to enable the two analog telephone adapter devices to establish a complete data link and forward data.
[0038] In this process, based on the called number information of the second fax device, a fax data file is sent through a registered fax session control server. There are multiple ways for the second analog telephone adapter corresponding to the second fax device to obtain the fax data file through the fax session control server. For example, a first target interface can be configured for the first analog telephone adapter, and a second target interface can be configured for the fax session control server. Thus, the fax data file can be sent to the second analog telephone adapter corresponding to the second fax device through the first target interface and the second target interface.
[0039] For example, a first fax sending request carrying the called number information of the second fax device can be sent to the second target interface of the registered fax session control server. If a confirmation message is received from the fax session control server based on the first fax sending request through the first target interface, the fax data file is sent to the second target interface so that the fax session control server can send the fax data file to the second analog telephone adapter corresponding to the second fax device based on the called number information.
[0040] The first target interface can refer to the target interface configured for the first analog telephone adapter, and the second target interface can be an application programming interface (API) configured for the fax session control server. This target interface (RESTful API) can be an API design style based on the Hypertext Transfer Protocol (HTTP), enabling communication between the client and server through standardized resource operations and a unified interface. The first fax sending request can be a request initiated to the fax session control server to send a fax, and can be an HTTP request conforming to the RESTful API specification. The confirmation message can be a message sent by the fax session control server to indicate that the first analog telephone adapter is configured to send fax data.
[0041] In one embodiment, after completing the interaction process with the first fax device, the first analog telephone adapter can use the saved called number information to initiate a RESTful request to send a fax (i.e., the first fax sending request) to the registered fax session control server. After receiving and verifying the first fax sending request, the first fax sending request can reply with a confirmation message to the first analog telephone adapter through the RESTful interface (i.e., the first target interface). After receiving the confirmation message from the fax session control server, the first analog telephone adapter begins to upload the fax data file to the fax session control server. After receiving the complete fax data file from the first analog telephone adapter, the fax session control server sends a receipt confirmation message to the first analog telephone adapter, completing the interaction between the fax session control server and the first analog telephone adapter. At the same time, the fax session control server sends a fax transmission command to the second analog telephone adapter (ATA2). After receiving the fax transmission command, the second analog telephone adapter requests the fax data file to be saved to the local directory of the second analog telephone adapter from the fax session control server. After verifying that the received fax data file is complete, it replies with a confirmation message to the fax session control server, and then sends the fax data file to the second fax device through the built-in fax client, completing the fax interaction process from the first fax device to the second fax device.
[0042] Therefore, by modifying the analog telephone adapter and fax session control server, enabling them to have RESTful API capabilities, all RESTful API interfaces can be encrypted and decrypted using Transport Layer Security (TLS). This modifies the VoIP fax call initiation and reception process and the fax data processing logic, thereby enabling asynchronous faxing between the two fax devices while isolating network interference, improving fax success rate and further enhancing fax interaction efficiency. For example, please refer to [reference needed]. Figure 3a The first analog telephone adapter can send TIFF format fax data files to the second analog telephone adapter via the fax session control server through the TLS1.3 protocol.
[0043] Optionally, based on the called number information of the second fax device, a fax data file can be sent through a registered fax session control server so that the second analog telephone adapter corresponding to the second fax device can obtain the fax data file through the fax session control server. For example, based on the session initiation protocol, a second fax sending request carrying the called number information of the second fax device can be sent to the registered fax session control server. Upon receiving a response message from the fax session control server based on the second fax sending request, the fax data file can be uploaded to the Hypertext Transfer Protocol server to obtain the download address information of the fax data file. A session control message carrying the download address information can be sent to the fax session control server, and the session control message can be forwarded to the second analog telephone adapter through the fax session control server so that the second analog telephone adapter can download the fax data file from the Hypertext Transfer Protocol server.
[0044] In this embodiment, the session initiation protocol can be SIP, the second fax sending request can be a SIP-based call request (INVITE), and the response message can be a response to the call request (200 OK). The Hypertext Transfer Protocol (HTTP) server can be a server used to store and download fax data files in the target format. Since conventional IPPBX servers generally do not have the function of uploading and forwarding files in target formats such as TIFF, this embodiment uses an additional HTTP server for storing and downloading fax data files in the target format. The download address information can be the address from which to download the fax data file from the HTTP server. The session control message can be a SIP-based message (INFO message) used to instruct the second analog telephone adapter to download the fax data file from the HTTP server.
[0045] Optionally, the download address information can be in the form of a Uniform Resource Locator (URL), which can be used to describe the address for downloading fax data files.
[0046] In one embodiment, please refer to Figure 3b , Figure 3b This is a schematic diagram of the overall architecture of a fax interaction method provided in this application embodiment. After completing the interaction process with the first fax device, the first analog telephone adapter uses the saved called number information of the second fax device to initiate a SIP INVITE call request to the registered fax session control server. The fax session control server forwards the request to the second analog telephone adapter. Upon receiving the INVITE request, the second analog telephone adapter directly replies with a 200 OK response. Then, the second analog telephone adapter waits for a special SIP INFO message (i.e., a session control message). After receiving the 200 OK response, the first analog telephone adapter can upload a TIFF format fax data file to the HTTP server. After confirming that the fax data file has been successfully uploaded, the first analog telephone adapter can forward a SIP INFO message carrying the download address information of the fax data file to the second analog telephone adapter via the fax session control server. If the fax data file upload fails, a BYE request can be sent to terminate the current SIP session. Upon receiving a special SIP INFO message, the second analog telephone adapter can begin downloading the fax data file from the HTTP server. If the file download fails, it can send a SIP INFO message to the first analog telephone adapter on the other end, and then send a BYE request to terminate the current SIP session.
[0047] In existing fax interaction methods, RTP pass-through technology or T.38 real-time fax technology are often used for faxing. However, both of these fax technologies rely on direct T.30 control negotiation and data exchange between the two fax devices, making them highly susceptible to limitations imposed by the T.30 technology's data timing requirements, as well as jitter, high latency, and packet loss introduced by VoIP networks. This can easily lead to fax failures at both ends. Furthermore, RTP pass-through fax technology, being essentially VoIP voice technology, is prone to introducing far-end echo issues and generally lacks RTP data retransmission error correction mechanisms. It is extremely sensitive to IP network latency, jitter, and packet loss; even slight network quality problems can cause T.30 demodulation anomalies in the fax device. While T.38 real-time fax technology has made some improvements in addressing IP packet loss and error correction, it remains sensitive to network jitter and latency. Additionally, differences in the T.38 stack implementation between different ATA devices result in compatibility issues regarding T.38 data stream parsing capabilities. It is evident that current fax interaction methods are highly susceptible to fax anomalies or failures due to factors such as network jitter, packet loss, latency, and remote echoes in the data link, resulting in low fax interaction efficiency.
[0048] To address this, this application provides a fax interaction method that optimizes the fax data workflow between two ATA devices. This eliminates the need for direct command and data interaction links between the fax devices. Each analog telephone adapter connected to the fax device acts as a T.30 fax client, directly interacting with its connected fax device to exchange fax commands and data. This solves the fax machine failure problem caused by multiple factors such as IP network packet loss, latency, and remote echoes in the data link. Specifically, the first fax device and the first analog telephone adapter directly complete local fax data transmission via the T.30 protocol, saving the fax data as a TIFF format fax data file and sending it to the second analog telephone adapter. The second analog telephone adapter and the second fax device then complete the local T.30 fax interaction process. This eliminates various adverse factors such as jitter and latency caused by complex network nodes, as well as echoes introduced by other nodes in the entire data transmission link, thereby improving the fax interaction success rate.
[0049] As can be seen from the above, in this embodiment of the application, when a fax transmission signal initiated by the first fax device for the second fax device is detected, the fax receiving mode of the first fax client built into the first analog telephone adapter is activated. In the fax receiving mode, the first fax client sends a fax response signal to the first fax device based on the fax transmission protocol to receive the fax data sent by the first fax device and save the fax data in the target format to obtain a fax data file. Based on the called number information of the second fax device, the fax data file is sent through the registered fax session control server, so that the second analog telephone adapter corresponding to the second fax device can obtain the fax data file through the fax session control server and send the fax data file to the second fax device based on the built-in second fax client. Therefore, by embedding a fax client in the analog telephone adapter, when the first fax device needs to send a fax, the fax receiving mode of the first fax client can be activated. The first fax client simulates a fax receiver and sends a fax response signal to the first fax device, thereby obtaining the fax data sent by the first fax device. Then, the fax data file is sent through the registered fax session control server, so that the second fax device can obtain the fax data file through the fax client embedded in the second analog telephone adapter. This reduces the session forwarding process in the fax interaction, effectively optimizes the fax interaction link, reduces the impact of network factors on the fax interaction result, and thus improves the fax interaction efficiency.
[0050] In addition, this embodiment also provides another fax interaction method applied to a second analog telephone adapter. For example, please refer to... Figure 4 , Figure 4 This is another flowchart illustrating the fax interaction method provided in this application, including: In step 201, the fax data file sent by the first analog telephone adapter corresponding to the first fax device is obtained based on the registered fax session control server.
[0051] There are several ways to obtain the fax data file sent by the first analog telephone adapter corresponding to the first fax device based on the registered fax session control server. For example, the fax session control server can be configured with a second target interface, and the second analog telephone adapter can be configured with a third target interface. The fax sending command sent by the fax session control server can be received through the third target interface, and a data acquisition request can be sent to the second target interface of the fax session control server to obtain the fax data file sent by the first analog telephone adapter corresponding to the first fax device.
[0052] The third target interface can refer to the target interface configured for the second analog telephone adapter. The fax sending command can be a command sent by the fax session control server to indicate that a fax has been sent. The data retrieval request can be a request to retrieve fax data from the fax session control server.
[0053] In one embodiment, the fax session control server sends a fax sending command to the second analog telephone adapter. After receiving the fax sending command, the second analog telephone adapter requests the fax data file to be saved to the local directory of the second analog telephone adapter from the fax session control server. After verifying that the received fax data file is complete, it replies with an acknowledgment message to the fax session control server, and then sends the fax data file to the second fax device through the built-in fax client, thus completing the fax interaction process from the first fax device to the second fax device.
[0054] Optionally, there are several other ways to obtain the fax data file sent by the first analog telephone adapter corresponding to the first fax device based on the registered fax session control server. For example, it can receive a second fax sending request sent by the registered fax session control server and send a response message to the fax session control server; obtain a session control message carrying download address information forwarded by the fax session control server; and download the fax data file from the Hypertext Transfer Protocol server based on the download address information.
[0055] The second fax sending request can be an INVITE request sent by the fax session control server.
[0056] In one embodiment, after receiving fax data from the first fax device, the first analog telephone adapter, using the saved called number information of the second fax device, initiates a SIPINVITE call request to the registered fax session control server. The fax session control server forwards this request to the second analog telephone adapter. Upon receiving the SIPINVITE request, the second analog telephone adapter immediately replies with a 200 OK response. Then, the second analog telephone adapter waits for a special SIP INFO message (i.e., a session control message). After receiving the 200 OK response, the first analog telephone adapter can upload a TIFF format fax data file to the HTTP server. After confirming successful upload, the first analog telephone adapter can forward a SIP INFO message carrying the download address information of the fax data file to the second analog telephone adapter via the fax session control server. If the fax data file upload fails, a BYE request can be sent to terminate the current SIP session. After receiving the special SIP INFO message, the second analog telephone adapter can begin downloading the fax data file from the HTTP server.
[0057] In step 202, a fax call signal is sent to the second fax device corresponding to the second analog telephone adapter.
[0058] The fax call signal can be a call signal to initiate a fax to a second fax device, for example, it can be a ringing signal (StartRing).
[0059] In one embodiment, please continue to refer to Figure 3a After receiving the complete fax data file, the second analog telephone adapter (ATA2) can start sending a ringing signal to the connected fax machine 2 (i.e., the second fax device) to detect whether fax machine 2 has picked up the phone. If fax machine 2 has not picked up the phone after the ringing timeout, the fax is considered to have failed, and a fax response timeout failure result is reported to the IPPBX server. The IPPBX then forwards the fax result to ATA1, which displays it to the user through a web user interface (WebUI) or other means. After detecting that fax machine 2 has picked up the phone, ATA2 can start a fax signal detector to detect fax signals such as CNG / CED / Ans. If a CNG signal is detected, or if no CED / Ans signal is detected after a timeout, fax machine 2 is considered to be in an abnormal sending mode. A busy tone signal is sent to prompt fax machine 2 to hang up and end the fax operation. A failure result of abnormal fax machine working mode is also reported to the IPPBX server, which forwards the fax result to ATA1 for display. If signals such as CED / Ans are detected, it is assumed that fax machine 2 is in the correct receiving mode and can continue the subsequent fax interaction process.
[0060] In step 203, upon receiving a call response signal from the second fax device based on the fax call signal feedback, the fax sending mode of the second fax client built into the second analog telephone adapter is activated.
[0061] The call response signal can be a response signal indicating that the second fax device is in normal receiving mode, such as an off-hook signal or a CED / Ans signal. The fax sending mode can be a mode used to control the fax client to simulate the interaction between the fax sending end and the connected fax device.
[0062] In this embodiment, by embedding a fax client in the analog telephone adapter, the fax client can be used to simulate the fax receiver or fax sender interacting with their respective connected fax devices during fax communication. This avoids multiple session forwardings and data exchanges between the first and second fax devices via the analog telephone adapter during the fax communication process, reducing session forwarding and effectively optimizing the fax communication link. It also effectively solves the problem of fax anomalies or failures caused by factors such as network jitter, packet loss, latency, and remote echoes in the data link, thereby improving fax communication efficiency.
[0063] In step 204, in fax sending mode, the fax data file is sent to the second fax device via the second fax client based on the fax transmission protocol.
[0064] In one embodiment, please continue to refer to Figure 3a After ATA2 determines that fax machine 2 is operating correctly, it starts the T.30 fax client program (T.30Agent) of its built-in second fax client, activating the T.30 fax sending mode. It uses the second fax client to receive and detect fax signals such as DIS, while simultaneously sending fax signals such as DCS / TCF to fax machine 2 for subsequent negotiation and training. Then, it decodes the locally saved TIFF format fax data file and sends it to fax machine 2, ultimately completing the local fax process between ATA2 and fax machine 2. After the T.30 fax process ends, ATA2 can send the fax result to the IPPBX server through the target interface, or report the fax result to the IPPBX server via SIP INFO. It can then send a BYE request to end the current SIP session.
[0065] As can be seen from the above, this embodiment of the application obtains the fax data file sent by the first analog telephone adapter corresponding to the first fax device based on the registered fax session control server; sends a fax call signal to the second fax device corresponding to the second analog telephone adapter; and activates the fax sending mode of the second fax client built into the second analog telephone adapter when a call response signal based on the fax call signal is received from the second fax device. In the fax sending mode, the fax data file is sent to the second fax device through the second fax client based on the fax transmission protocol. Thus, by building a fax client in the analog telephone adapter, when the fax data file sent by the first analog telephone adapter corresponding to the first fax device is obtained, a fax call signal can be sent to the second fax device corresponding to the second analog telephone adapter, and the built-in fax sending mode of the second fax client is activated when a call response signal based on the fax call signal is received from the second fax device. The fax data file is sent to the second fax device through the second fax client simulating a fax sending end, reducing the session forwarding process in the fax interaction process, effectively optimizing the fax interaction link, thereby reducing the impact of network factors on the fax interaction result, and thus improving the fax interaction efficiency.
[0066] Furthermore, this embodiment also provides a fax interaction system, which includes a first analog telephone adapter, a second analog telephone adapter, and a fax session control server, and may include: When the first analog telephone adapter detects a fax transmission signal initiated by the first fax device for the second fax device, it activates the fax receiving mode of the first fax client built into the first analog telephone adapter. In fax receiving mode, the first analog telephone adapter sends a fax response signal to the first fax device through the first fax client based on the fax transmission protocol, so as to receive the fax data sent by the first fax device and save the fax data in the target format to obtain a fax data file. The first analog telephone adapter sends fax data files through a registered fax session control server based on the called number information of the second fax device. The second analog telephone adapter obtains the fax data file sent by the first analog telephone adapter corresponding to the first fax device based on the fax session control server; The second analog telephone adapter sends a fax call signal to the second fax device; When the second analog telephone adapter receives a call response signal based on the fax call signal feedback from the second fax device, it activates the fax sending mode of the second fax client built into the second analog telephone adapter. In fax transmission mode, the second analog telephone adapter sends fax data files to the second fax device via the second fax client based on the fax transmission protocol.
[0067] In the above embodiments, the descriptions of each embodiment have their own emphasis. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments. It should be noted that the fax interaction system provided in this application and the fax interaction method applicable in the above embodiments belong to the same concept, and its specific implementation process is detailed in the above method embodiments, and will not be repeated here.
[0068] To better implement the above methods, embodiments of the present invention also provide a fax interaction device that can be integrated into an electronic device, which can be an analog telephone adapter.
[0069] For example, such as Figure 5 The diagram shown is a schematic representation of the structure of a fax interaction device provided in an embodiment of this application. This fax interaction device can be applied to a first analog telephone adapter and includes an activation unit 301, a sending unit 302, and an interaction unit 303, as follows: The activation unit 301 is used to activate the fax receiving mode of the first fax client built into the first analog telephone adapter when a fax transmission signal initiated by the first fax device for the second fax device is detected. The sending unit 302 is used to send a fax response signal to the first fax device through the first fax client based on the fax transmission protocol in fax receiving mode, to receive fax data sent by the first fax device, and to save the fax data in a target format to obtain a fax data file. The interaction unit 303 is used to send a fax data file through a registered fax session control server based on the called number information of the second fax device, so that the second analog telephone adapter corresponding to the second fax device can obtain the fax data file through the fax session control server and send the fax data file to the second fax device based on the built-in second fax client.
[0070] In one embodiment, the first analog telephone adapter is configured with a first target interface, and the fax session control server is configured with a second target interface; the interaction unit 303 is used for: Send a first fax transmission request carrying the called number information of the second fax device to the second target interface of the registered fax session control server; Upon receiving a confirmation message from the fax session control server based on the first fax sending request via the first target interface, the fax data file is sent to the second target interface so that the fax session control server can send the fax data file to the second analog telephone adapter corresponding to the second fax device based on the called number information.
[0071] In one embodiment, the interaction unit 303 is used for: Based on the session initiation protocol, a second fax transmission request carrying the called number information of the second fax device is sent to the registered fax session control server; Upon receiving a response message from the fax session control server based on the second fax transmission request, the fax data file is uploaded to the Hypertext Transfer Protocol server to obtain the download address information of the fax data file; Send a session control message carrying download address information to the fax session control server, and forward the session control message to the second analog telephone adapter through the fax session control server, so as to download the fax data file from the Hypertext Transfer Protocol server through the second analog telephone adapter.
[0072] As can be seen from the above, in this embodiment of the application, when the activation unit 301 detects a fax transmission signal initiated by the first fax device for the second fax device, it activates the fax receiving mode of the first fax client built into the first analog telephone adapter; in the fax receiving mode, the sending unit 302 sends a fax response signal to the first fax device through the first fax client based on the fax transmission protocol to receive the fax data sent by the first fax device and save the fax data in the target format to obtain a fax data file; the interaction unit 303 sends the fax data file through the registered fax session control server based on the called number information of the second fax device, so that the second analog telephone adapter corresponding to the second fax device can obtain the fax data file through the fax session control server and send the fax data file to the second fax device based on the built-in second fax client. Therefore, by embedding a fax client in the analog telephone adapter, when the first fax device needs to send a fax, the fax receiving mode of the first fax client can be activated. The first fax client simulates a fax receiver and sends a fax response signal to the first fax device, thereby obtaining the fax data sent by the first fax device. Then, the fax data file is sent through the registered fax session control server, so that the second fax device can obtain the fax data file through the fax client embedded in the second analog telephone adapter. This reduces the session forwarding process in the fax interaction, effectively optimizes the fax interaction link, reduces the impact of network factors on the fax interaction result, and thus improves the fax interaction efficiency.
[0073] Accordingly, in order to better implement the above methods, embodiments of the present invention also provide another fax interaction device, which can be integrated into an electronic device, which can be an analog telephone adapter.
[0074] The fax interaction device can be applied to a second analog telephone adapter and includes a data acquisition unit, a signal transmission unit, a mode activation unit, and a data interaction unit, as follows: The data acquisition unit is used to acquire the fax data file sent by the first analog telephone adapter corresponding to the first fax device based on the registered fax session control server; The signal transmitting unit is used to send a fax call signal to the second fax device corresponding to the second analog telephone adapter; The mode activation unit is used to activate the fax sending mode of the second fax client built into the second analog telephone adapter when a call response signal based on the fax call signal feedback from the second fax device is received. The data interaction unit is used to send fax data files to the second fax device via the second fax client based on the fax transmission protocol in fax sending mode.
[0075] In some embodiments, the fax session control server is configured with a second target interface, and the second analog telephone adapter is configured with a third target interface; the data acquisition unit is used for: Receive fax sending commands from the fax session control server via the third target interface; Send a data acquisition request to the second target interface of the fax session control server to obtain the fax data file sent by the first analog telephone adapter corresponding to the first fax device.
[0076] In some embodiments, the data acquisition unit is configured to: Receive a second fax transmission request from a registered fax session control server and send a response message to the fax session control server; Obtain the session control message carrying download address information forwarded by the fax session control server; Based on the download address information, download the fax data file from the Hypertext Transfer Protocol server.
[0077] As can be seen from the above, in this embodiment, the data acquisition unit obtains the fax data file sent by the first analog telephone adapter corresponding to the first fax device based on the registered fax session control server; the signal sending unit sends a fax call signal to the second fax device corresponding to the second analog telephone adapter; the mode activation unit activates the fax sending mode of the second fax client built into the second analog telephone adapter when it receives the call response signal fed back by the second fax device based on the fax call signal; and the data interaction unit sends the fax data file to the second fax device through the second fax client based on the fax transmission protocol in the fax sending mode. Thus, by building a fax client in the analog telephone adapter, when the fax data file sent by the first analog telephone adapter corresponding to the first fax device is obtained, a fax call signal can be sent to the second fax device corresponding to the second analog telephone adapter, and when the call response signal fed back by the second fax device based on the fax call signal is received, the built-in fax sending mode of the second fax client is activated, so that the fax data file is sent to the second fax device through the second fax client simulating a fax sending end. This reduces the session forwarding process in the fax interaction process, effectively optimizes the fax interaction link, reduces the impact of network factors on the fax interaction result, and thus improves the fax interaction efficiency.
[0078] Accordingly, this application also provides an electronic device, which can be a terminal, such as a smartphone, tablet computer, laptop computer, touch screen, game console, personal computer (PC), personal digital assistant (PDA), or other terminal device. Alternatively, the electronic device can be a server.
[0079] like Figure 6 As shown, Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device 400 includes a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, and a computer program stored in the memory 402 and executable on the processor. The processor 401 and the memory 402 are electrically connected. Those skilled in the art will understand that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0080] The processor 401 is the control center of the electronic device 400. It connects various parts of the electronic device 400 through various interfaces and lines. By running or loading software programs and / or units stored in the memory 402, and calling data stored in the memory 402, it executes various functions of the electronic device 400 and processes data. The processor 401 may be a CPU, GPU, network processor (NP), etc., and can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application.
[0081] In this embodiment, the processor 401 in the electronic device 400 loads the instructions corresponding to the processes of one or more applications into the memory 402 according to the following steps, and the processor 401 runs the applications stored in the memory 402 to realize various functions, such as: When a fax transmission signal initiated by the first fax device to the second fax device is detected, the fax receiving mode of the first fax client built into the first analog telephone adapter is activated. In fax receiving mode, the first fax client sends a fax response signal to the first fax device based on the fax transmission protocol to receive the fax data sent by the first fax device and save the fax data in the target format to obtain a fax data file. Based on the called number information of the second fax device, the fax data file is sent through the registered fax session control server so that the second analog telephone adapter corresponding to the second fax device can obtain the fax data file through the fax session control server and send the fax data file to the second fax device based on the built-in second fax client.
[0082] Therefore, this solution can embed a fax client in the analog telephone adapter. When the first fax device needs to send a fax, the fax receiving mode of the first fax client can be activated. The first fax client simulates a fax receiver and sends a fax response signal to the first fax device, thereby obtaining the fax data sent by the first fax device. Then, the fax data file is sent through a registered fax session control server, so that the second fax device can obtain the fax data file through the fax client embedded in the second analog telephone adapter. This reduces the session forwarding process in the fax interaction, effectively optimizes the fax interaction link, reduces the impact of network factors on the fax interaction result, and thus improves the fax interaction efficiency.
[0083] Furthermore, the various functions implemented by running the application stored in memory 402 can also be found in the description of the foregoing embodiments, and will not be repeated here.
[0084] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0085] Optional, such as Figure 6 As shown, the electronic device 400 also includes: a touch display screen 403, a radio frequency circuit 404, an audio circuit 405, an input unit 406, and a power supply 407. The processor 401 is electrically connected to the touch display screen 403, the radio frequency circuit 404, the audio circuit 405, the input unit 406, and the power supply 407. Those skilled in the art will understand that... Figure 6 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0086] The touch display screen 403 can be used to display a graphical user interface (GUI) and receive operation commands generated by the user interacting with the GUI. The touch display screen 403 may include a display panel and a touch panel. The display panel can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the electronic device. These graphical user interfaces can be composed of graphics, text, icons, video, and any combination thereof. Optionally, the display panel can be configured using a liquid crystal display (LCD), organic light-emitting diode (OLED), or other similar technologies. The touch panel can be used to collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel), generate corresponding operation commands, and execute the corresponding program according to the operation commands. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch location and the signal generated by the touch operation, transmitting the signal to the touch controller. The touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 401. It can also receive and execute commands from the processor 401. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it transmits the information to the processor 401 to determine the type of touch event. Subsequently, the processor 401 provides corresponding visual output on the display panel based on the type of touch event. In this embodiment, the touch panel and the display panel can be integrated into the touch display screen 403 to achieve input and output functions. However, in some embodiments, the touch panel and the touch display screen 403 can be implemented as two independent components to achieve input and output functions. That is, the touch display screen 403 can also be used as part of the input unit 406 to achieve input functions.
[0087] The radio frequency circuit 404 can be used to transmit and receive radio frequency signals to establish wireless communication with network devices or other electronic devices, and to transmit and receive signals with network devices or other electronic devices.
[0088] Audio circuit 405 can be used to provide an audio interface between a user and an electronic device via a speaker and a microphone. Audio circuit 405 can convert received audio data into electrical signals and transmit them to the speaker, where the speaker converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by audio circuit 405, converted back into audio data, and then processed by processor 401 before being transmitted via radio frequency circuit 404 to, for example, another electronic device, or output to memory 402 for further processing. Audio circuit 405 may also include an earphone jack to provide communication between peripheral headphones and electronic devices.
[0089] The input unit 406 can be used to receive input target video and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0090] Power supply 407 is used to supply power to various components of electronic device 400. Optionally, power supply 407 can be logically connected to processor 401 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. Power supply 407 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0091] although Figure 6 As not shown in the diagram, the electronic device 400 may also include a camera, sensor, wireless fidelity module, Bluetooth module, etc., which will not be described in detail here.
[0092] In the above embodiments, the descriptions of each embodiment have different focuses. Parts not described in detail in a particular embodiment can be found in the relevant descriptions of other embodiments. It should be noted that the electronic device provided in this application's embodiments and the fax interaction method applicable in the above embodiments belong to the same concept; its specific implementation process is detailed in the above method embodiments and will not be repeated here.
[0093] As can be seen from the above, the electronic device provided in this application embodiment can activate the fax receiving mode of the first fax client built into the first analog telephone adapter when a fax sending signal initiated by the first fax device for the second fax device is detected; in the fax receiving mode, the first fax client sends a fax response signal to the first fax device based on the fax transmission protocol to receive the fax data sent by the first fax device, and saves the fax data in a target format to obtain a fax data file; based on the called number information of the second fax device, the fax data file is sent through the registered fax session control server, so that the second analog telephone adapter corresponding to the second fax device can obtain the fax data file through the fax session control server, and send the fax data file to the second fax device based on the built-in second fax client. Therefore, by embedding a fax client in the analog telephone adapter, when the first fax device needs to send a fax, the fax receiving mode of the first fax client can be activated. The first fax client simulates a fax receiver and sends a fax response signal to the first fax device, thereby obtaining the fax data sent by the first fax device. Then, the fax data file is sent through the registered fax session control server, so that the second fax device can obtain the fax data file through the fax client embedded in the second analog telephone adapter. This reduces the session forwarding process in the fax interaction, effectively optimizes the fax interaction link, reduces the impact of network factors on the fax interaction result, and thus improves the fax interaction efficiency.
[0094] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0095] Therefore, embodiments of this application provide a computer-readable storage medium, including a computer program, which, when run on an electronic device, causes the electronic device to execute any of the fax interaction methods provided in embodiments of this application. For example, the computer program can execute the steps of the following fax interaction method: When a fax transmission signal initiated by the first fax device to the second fax device is detected, the fax receiving mode of the first fax client built into the first analog telephone adapter is activated. In fax receiving mode, the first fax client sends a fax response signal to the first fax device based on the fax transmission protocol to receive the fax data sent by the first fax device and save the fax data in the target format to obtain a fax data file. Based on the called number information of the second fax device, the fax data file is sent through the registered fax session control server so that the second analog telephone adapter corresponding to the second fax device can obtain the fax data file through the fax session control server and send the fax data file to the second fax device based on the built-in second fax client.
[0096] This solution activates the fax receiving mode of the first fax client built into the first analog telephone adapter when a fax transmission signal initiated by the first fax device for the second fax device is detected. In fax receiving mode, the first fax client sends a fax response signal to the first fax device based on the fax transmission protocol to receive the fax data sent by the first fax device and save the fax data in the target format to obtain a fax data file. Based on the called number information of the second fax device, the fax data file is sent through the registered fax session control server, so that the second analog telephone adapter corresponding to the second fax device can obtain the fax data file through the fax session control server and send the fax data file to the second fax device based on the built-in second fax client. Therefore, by embedding a fax client in the analog telephone adapter, when the first fax device needs to send a fax, the fax receiving mode of the first fax client can be activated. The first fax client simulates a fax receiver and sends a fax response signal to the first fax device, thereby obtaining the fax data sent by the first fax device. Then, the fax data file is sent through the registered fax session control server, so that the second fax device can obtain the fax data file through the fax client embedded in the second analog telephone adapter. This reduces the session forwarding process in the fax interaction, effectively optimizes the fax interaction link, reduces the impact of network factors on the fax interaction result, and thus improves the fax interaction efficiency.
[0097] Furthermore, the detailed steps of the above method can be found in the description of the foregoing embodiments, and will not be repeated here.
[0098] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0099] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0100] Since the computer program stored in the computer-readable storage medium can execute any of the fax interaction methods provided in the embodiments of this application, it can achieve the beneficial effects that any of the fax interaction methods provided in the embodiments of this application can achieve, as detailed in the preceding embodiments, and will not be repeated here.
[0101] According to one aspect of this application, a computer program product is also provided, comprising a computer program stored in a computer-readable storage medium; when a processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, causing the electronic device to perform the methods provided in various optional implementations of the above embodiments.
[0102] In the above embodiments of the fax interaction device, computer-readable storage medium, system, electronic device, and computer program product, the descriptions of each embodiment have different focuses. Parts not described in detail in a particular embodiment can be referred to in the relevant descriptions of other embodiments. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes and beneficial effects of the fax interaction device, computer-readable storage medium, computer program product, electronic device, and their corresponding units described above can be referred to the description of the fax interaction method in the above embodiments, and will not be repeated here.
[0103] The foregoing has provided a detailed description of a fax interaction method, apparatus, system, electronic device, computer-readable storage medium, and computer program product provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only for the purpose of helping to understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A fax interaction method, characterized in that, Applied to a first analog telephone adapter, including: When a fax transmission signal initiated by the first fax device to the second fax device is detected, the fax receiving mode of the first fax client built into the first analog telephone adapter is activated. In the fax receiving mode, the first fax client sends a fax response signal to the first fax device based on the fax transmission protocol to receive the fax data sent by the first fax device and save the fax data in the target format to obtain a fax data file; Based on the called number information of the second fax device, the fax data file is sent through the registered fax session control server, so that the second analog telephone adapter corresponding to the second fax device can obtain the fax data file through the fax session control server and send the fax data file to the second fax device based on the built-in second fax client.
2. The fax interaction method as described in claim 1, characterized in that, The first analog telephone adapter is configured with a first target interface, and the fax session control server is configured with a second target interface; the step of sending the fax data file through the registered fax session control server based on the called number information of the second fax device, so that the second analog telephone adapter corresponding to the second fax device can obtain the fax data file through the fax session control server, includes: Send a first fax transmission request carrying the called number information of the second fax device to the second target interface of the registered fax session control server; Upon receiving a confirmation message from the fax session control server based on the first fax sending request via the first target interface, the fax data file is sent to the second target interface so that the fax session control server can send the fax data file to the second analog telephone adapter corresponding to the second fax device based on the called number information.
3. The fax interaction method as described in claim 1, characterized in that, The step of sending the fax data file through a registered fax session control server based on the called number information of the second fax device, so that the second analog telephone adapter corresponding to the second fax device can obtain the fax data file through the fax session control server, includes: Based on the session initiation protocol, a second fax transmission request carrying the called number information of the second fax device is sent to the registered fax session control server; Upon receiving a response message from the fax session control server based on the second fax sending request, the fax data file is uploaded to the Hypertext Transfer Protocol server to obtain the download address information of the fax data file; Send a session control message carrying the download address information to the fax session control server, and forward the session control message to the second analog telephone adapter through the fax session control server, so as to download the fax data file from the Hypertext Transfer Protocol server through the second analog telephone adapter.
4. A fax interaction method, characterized in that, Applied to the second analog telephone adapter, including: Based on the registered fax session control server, obtain the fax data file sent by the first analog telephone adapter corresponding to the first fax device; Send a fax call signal to the second fax device corresponding to the second analog telephone adapter; Upon receiving a call response signal from the second fax device based on the fax call signal, the fax sending mode of the second fax client built into the second analog telephone adapter is activated; In the fax sending mode, the fax data file is sent to the second fax device via the second fax client based on the fax transmission protocol.
5. The fax interaction method as described in claim 4, characterized in that, The fax session control server is configured with a second target interface, and the second analog telephone adapter is configured with a third target interface; The step of obtaining the fax data file sent by the first analog telephone adapter corresponding to the first fax device based on the registered fax session control server includes: Receive fax sending commands from the fax session control server via the third target interface; Send a data acquisition request to the second target interface of the fax session control server to obtain the fax data file sent by the first analog telephone adapter corresponding to the first fax device.
6. The fax interaction method as described in claim 4, characterized in that, The step of obtaining the fax data file sent by the first analog telephone adapter corresponding to the first fax device based on the registered fax session control server includes: Receive a second fax transmission request from a registered fax session control server and send a response message to the fax session control server; Obtain the session control message carrying download address information forwarded by the fax session control server; Based on the download address information, the fax data file is downloaded from the Hypertext Transfer Protocol server.
7. A fax interactive system, comprising a first analog telephone adapter, a second analog telephone adapter, and a fax session control server, characterized in that, include: When the first analog telephone adapter detects a fax transmission signal initiated by the first fax device for the second fax device, it activates the fax receiving mode of the first fax client built into the first analog telephone adapter. In the fax receiving mode, the first analog telephone adapter sends a fax response signal to the first fax device through the first fax client based on the fax transmission protocol, so as to receive the fax data sent by the first fax device and save the fax data in the target format to obtain a fax data file; The first analog telephone adapter sends the fax data file through a registered fax session control server based on the called number information of the second fax device; The second analog telephone adapter obtains the fax data file sent by the first analog telephone adapter corresponding to the first fax device based on the fax session control server; The second analog telephone adapter sends a fax call signal to the second fax device; When the second analog telephone adapter receives a call response signal from the second fax device based on the fax call signal, it activates the fax sending mode of the second fax client built into the second analog telephone adapter. In the fax sending mode, the second analog telephone adapter sends the fax data file to the second fax device via the second fax client based on the fax transmission protocol.
8. A fax intercom device, characterized in that, include: An activation unit is used to activate the fax receiving mode of the first fax client built into the first analog telephone adapter when a fax transmission signal initiated by the first fax device to the second fax device is detected. The sending unit is configured to, in the fax receiving mode, send a fax response signal to the first fax device through the first fax client based on the fax transmission protocol, receive fax data sent by the first fax device, and save the fax data in a target format to obtain a fax data file; An interaction unit is configured to send the fax data file through a registered fax session control server based on the called number information of the second fax device, so that the second analog telephone adapter corresponding to the second fax device can obtain the fax data file through the fax session control server and send the fax data file to the second fax device based on the built-in second fax client.
9. An electronic device, characterized in that, It includes a processor and a memory, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the steps of the fax interaction method according to any one of claims 1 to 6.
10. A storage medium, characterized in that, Includes a computer program, which, when run on an electronic device, causes the electronic device to perform the steps of the fax interaction method of any one of claims 1 to 6.