System and method for realizing interconnection and intercommunication between FreeSWITCH and PDT cluster system
By introducing the MOD_PDT module between FreeSWITCH and PDT cluster system for protocol conversion, the problem of mismatch in communication protocols is solved, the interconnection between systems is realized, the communication method is expanded, and emergency response and collaboration efficiency is improved.
Patent Information
- Application Number
- CN202510659853.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-21
- Publication Date
- 2025-09-02
AI Technical Summary
Due to the mismatch of communication protocols between FreeSWITCH and PDT cluster systems, direct communication is hindered, and it is difficult for the existing technology to achieve interconnection.
By creating a new MOD_PDT module, one end is connected to the PDT cluster system and the other end is connected to the FreeSWITCH core, and the MOD_PDT module is used to convert the wireless communication service of the PDT cluster system into a format that can be recognized by FreeSWITCH, using UDP communication, and using FreeSWITCH existing resources for protocol conversion to achieve interconnection.
It solves the problem of mismatch in communication protocols, realizes the interconnection between FreeSWITCH and PDT cluster system, expands communication methods, and improves emergency response and collaboration efficiency.
Smart Images

Figure CN120583159A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a system and method for interconnecting FreeSWITCH and a PDT cluster system. Background Art
[0002] FreeSWITCH is an open-source software telephone switching solution that supports multiple communication protocols, such as SIP, H.323, and WebRTC, and is widely used in enterprise communications, call centers, and other fields. The PDT (Police Digital Trunking) trunking system is a professional digital trunking communication system primarily used in public safety and traffic management. It features efficient and reliable communication, and uses the PSIP protocol or a proprietary protocol customized by the system for external interconnection. Due to protocol mismatches between the FreeSWITCH and PDT systems, direct communication between them is hindered. Therefore, there are currently technical barriers to achieving interoperability between FreeSWITCH and PDT trunking systems, primarily in terms of protocol conversion. Summary of the Invention
[0003] In order to solve the above-mentioned deficiencies in the prior art, the purpose of the present invention is to provide a system and method for interconnecting FreeSWITCH and a PDT cluster system, so as to overcome the defects in the prior art.
[0004] In order to achieve the above-mentioned purpose, the present invention provides a system for interconnecting FreeSWITCH and PDT cluster systems, the system comprising a PDT cluster system, a MOD_PDT module, a FreeSWITCH kernel, other MOD modules and other communication systems; wherein, the PDT cluster system is connected to the FreeSWITCH kernel through the MOD_PDT module, and the MOD_PDT module is used to convert the wireless communication service from the PDT cluster system into a format that can be recognized by FreeSWITCH, and send it to the FreeSWITCH kernel for processing; other communication systems are connected to the FreeSWITCH kernel through other MOD modules, and the other MOD modules are used to convert the corresponding wireless communication service from other communication systems into a format that can be recognized by FreeSWITCH, and send it to the FreeSWITCH kernel for processing; when the wireless communication service from other communication systems reaches the FreeSWITCH kernel, it is sent by the FreeSWITCH kernel to the MOD_PDT module, and is sent to the PDT cluster system after protocol conversion by the MOD_PDT module, thereby realizing the intercommunication between other communication systems and the PDT cluster system.
[0005] Through the above technical solution, the newly built MOD_PDT module is connected to the PDT cluster system on one end and to the FreeSWITCH kernel on the other end. The MOD_PDT module is used to convert the wireless communication services from the PDT cluster system into a format that FreeSWITCH can recognize and send it to the FreeSWITCH kernel for processing, thus achieving interoperability between the PDT cluster system and FreeSWITCH. Communication between the MOD_PDT module and the PDT cluster system uses UDP, and communication between the MOD_PDT module and the FreeSWITCH kernel is achieved through a set of communication mechanisms provided by the existing FreeSWITCH. By integrating into FreeSWITCH and utilizing FreeSWITCH's existing resources for communication, communication systems with different protocols are connected, solving the problem of communication protocol mismatch. After the integration of PDT and FreeSWITCH, the communication methods can be further expanded, including the interconnection of various devices such as telephones and public network intercoms. This makes communication between different devices more convenient and improves the efficiency of emergency response and collaboration.
[0006] As a further explanation of the system for interconnecting FreeSWITCH and PDT cluster systems described in the present invention, preferably, the MOD_PDT module includes a UDP receiving submodule and a wireless communication service definition submodule; wherein, the PDT cluster system is communicatively connected to the UDP receiving submodule, and the UDP receiving submodule is used to receive wireless communication services from the PDT cluster system and parse wireless communication services, wherein the wireless communication services include voice, text messages, status text messages, GPS, dynamic reorganization and other messages to realize communication between the MOD_PDT module and the PDT cluster system; the UDP receiving submodule is communicatively connected to the FreeSWITCH kernel through the wireless communication service definition submodule, and the wireless communication service definition submodule is used to define the data format of each wireless communication service as a format that FreeSWITCH can recognize, so that the wireless communication services received by the UDP receiving submodule from the PDT cluster system are converted into a format that FreeSWITCH can recognize through the protocol, and enter the FreeSWITCH conference, thereby realizing communication between the MOD_PDT module and the FreeSWITCH kernel.
[0007] Through the above technical solution, a set of protocols is defined through the wireless communication service definition sub-module 22 for the intercommunication between the PDT cluster system and FreeSWITCH. After using the protocol conversion technology, the PDT cluster system and the FreeSWITCH fusion communication system realize the interconnection of voice, data and signaling, and improve the compatibility of FreeSWITCH and the PDT cluster system.
[0008] As a further illustration of the system for interconnecting FreeSWITCH and a PDT cluster system as described in the present invention, preferably, the MOD_PDT module also includes an incoming and outgoing call notification module. The module is configured to, upon receiving a call request from the FreeSWITCH kernel, send an outgoing call notification to the PDT cluster system. Furthermore, upon receiving an incoming call notification from the PDT cluster system, create a call session, record all call-related information in the session, and send an answer off-hook request to the PDT cluster system, indicating that the called party agrees to answer the call. Through the above technical solution, both communicating parties, namely, the terminal of the PDT cluster system and the terminal of the other system, can normally receive each other's call messages, preparing for voice communication.
[0009] As a further explanation of the system for interconnecting FreeSWITCH and PDT cluster systems described in the present invention, preferably, the MOD_PDT module also includes a call answering module, which is used to inform the FreeSWITCH kernel of the channel establishment when receiving a call establishment notification from the PDT cluster system.
[0010] Through the above technical solution, both communicating parties, namely the terminal of the PDT trunking system and the terminal of other systems, are fully prepared to receive voice.
[0011] As a further illustration of the system for interconnecting FreeSWITCH and a PDT cluster system described herein, the MOD_PDT module preferably also includes a PTT ON notification interaction module. Upon receiving a PTT ON message from the FreeSWITCH kernel, the MOD_PDT module is configured to send a PTT ON notification to the PDT cluster system; and upon receiving a PTT ON notification from the PDT cluster system, the MOD_PDT module is configured to forward the PTT ON notification message to the FreeSWITCH kernel. With this technical solution, both communicating parties, namely, the PDT cluster system terminal and the other system terminal, can correctly identify the start of speech on the other party.
[0012] As a further illustration of the system for interconnecting FreeSWITCH and a PDT cluster system described herein, the MOD_PDT module preferably also includes a voice interaction module. Upon receiving voice from the FreeSWITCH kernel, the module is configured to forward the voice to the PDT cluster system; and upon receiving voice from the PDT cluster system, the module is configured to store the voice in a temporary buffer and transmit the voice in the temporary buffer to the FreeSWITCH kernel. With this technical solution, both communicating parties, namely, the PDT cluster system terminal and the other system terminal, can correctly receive each other's voice.
[0013] As a further illustration of the system for interconnecting FreeSWITCH and a PDT cluster system described herein, the MOD_PDT module preferably also includes a PTT OFF notification interaction module. Upon receiving a PTT OFF message from the FreeSWITCH kernel, the MOD_PDT module is configured to send a PTT OFF notification to the PDT cluster system; and upon receiving a PTT OFF notification from the PDT cluster system, the MOD_PDT module is configured to forward the PTT OFF notification message to the FreeSWITCH kernel. With this technical solution, both communicating parties, namely, the PDT cluster system terminal and the other system terminal, can correctly identify the end-of-speech signal from the other party.
[0014] As a further illustration of the system for interconnecting FreeSWITCH and a PDT cluster system according to the present invention, preferably, the MOD_PDT module further includes a PTT hang-up notification interaction module. Upon receiving a PTT hang-up notification from the FreeSWITCH kernel, the MOD_PDT module is configured to release all call-related variables and resources and send the PTT hang-up notification to the PDT cluster system. Furthermore, upon receiving a PTT hang-up notification from the PDT cluster system, the MOD_PDT module is configured to release all call-related variables and resources and forward the PTT hang-up notification to the FreeSWITCH kernel. Through the above technical solution, both communicating parties, namely, a terminal in the PDT cluster system and a terminal in another system, can correctly identify a sign indicating that the other party has hung up their voice.
[0015] In order to achieve another object of the present invention, the present invention also provides a method for interconnecting FreeSWITCH and a PDT cluster system using the system, the method comprising the following steps:
[0016] Step S301), when the terminal on the FreeSWITCH side initiates a call to the PDT cluster system, the FreeSWITCH kernel sends the initiated call request to the MOD_PDT module, and the MOD_PDT module sends a call outgoing notification to the PDT cluster system;
[0017] Step S302), after the PDT cluster system receives the call outgoing notification, the PDT cluster system sends a call establishment notification to the MOD_PDT module, and the MOD_PDT module informs the FreeSWITCH kernel to establish a channel to answer the call;
[0018] Step S303), after the FreeSWITCH kernel receives the channel establishment message, the FreeSWITCH kernel sends a PTT ON message to the MOD_PDT module, and the MOD_PDT module sends a PTT ON notification to the PDT cluster system;
[0019] Step S304), the FreeSWITCH kernel sends the voice to the MOD_PDT module, and the MOD_PDT module forwards the voice to the PDT cluster system;
[0020] Step S305), the FreeSWITCH kernel sends a PTT OFF message to the MOD_PDT module, and the MOD_PDT module sends a PTT OFF notification to the PDT cluster system;
[0021] Step S306), the FreeSWITCH kernel sends a PTT hang-up notification to the MOD_PDT module, the MOD_PDT module releases all variables and resources related to the call, and sends a PTT hang-up notification to the PDT cluster system.
[0022] Through the above technical solution, the MOD_PDT module in the system is used for protocol conversion to realize communication between the terminal on the FreeSWITCH side and the terminal of the PDT cluster system, making communication between different devices more convenient and improving emergency response and collaboration efficiency.
[0023] In order to achieve another object of the present invention, the present invention also provides a method for interconnecting FreeSWITCH and a PDT cluster system using the system, the method comprising the following steps:
[0024] Step S101), when the terminal on the PDT cluster system side initiates a call, the PDT cluster system sends a call incoming notification. After receiving the call incoming notification, the MOD_PDT module creates a call session, records all call-related information in the session, and sends an answer off-hook request to the PDT cluster system, indicating that the called party agrees to answer the call;
[0025] Step S102), after the PDT cluster system receives the answer off-hook request, the PDT cluster system sends a call establishment notification to the MOD_PDT module, and the MOD_PDT module informs the FreeSWITCH kernel that a channel is established to answer the call;
[0026] Step S103), the PDT cluster system sends a PTT ON notification to the MOD_PDT module, and the MOD_PDT module forwards the PTT ON notification message to the FreeSWITCH kernel;
[0027] Step S104), the PDT cluster system sends the voice to the MOD_PDT module, the MOD_PDT module stores the voice in a temporary buffer, and transmits the voice in the temporary buffer to the FreeSWITCH kernel;
[0028] Step S105), the PDT cluster system sends a PTT OFF notification to the MOD_PDT module, and the MOD_PDT module forwards the PTT OFF notification message to the FreeSWITCH kernel;
[0029] Step S106), the PDT cluster system sends a PTT hang-up notification to the MOD_PDT module, the MOD_PDT module releases all variables and resources related to the call, and forwards the PTT hang-up notification to the FreeSWITCH kernel.
[0030] Through the above technical solution, the MOD_PDT module in the system is used for protocol conversion to realize communication between the terminal of the PDT cluster system and the terminal on the FreeSWITCH side, making communication between different devices more convenient and improving emergency response and collaboration efficiency.
[0031] The beneficial effects of the present invention are as follows: the present invention connects the PDT cluster system at one end through the newly built MOD_PDT module and connects the FreeSWITCH kernel at the other end, and uses the MOD_PDT module to convert the wireless communication service from the PDT cluster system into a format that FreeSWITCH can recognize, and sends it to the FreeSWITCH kernel for processing, thereby realizing the interconnection and intercommunication between the PDT cluster system and FreeSWITCH. The communication between the MOD_PDT module and the PDT cluster system adopts UDP, and the communication between the MOD_PDT module and the FreeSWITCH kernel is realized through a set of communication mechanisms provided by the existing FreeSWITCH. By integrating into FreeSWITCH and using the existing resources of FreeSWITCH for communication, the communication systems of different protocols are connected, and the problem of mismatch of communication protocols is solved. After the integration of PDT and FreeSWITCH, the communication mode can be further expanded, including the interconnection and intercommunication of various devices such as telephones and public network intercoms, which makes the communication between different devices more convenient and improves the efficiency of emergency response and collaboration. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A schematic diagram of the structure of the system for interconnecting FreeSWITCH and the PDT cluster system of the present invention;
[0033] Figure 2 The following is a flowchart of the process of initiating a call by a FreeSWITCH terminal in the system of the present invention;
[0034] Figure 3 This is a workflow diagram of a terminal on the PDT trunking system side initiating a call in the system of the present invention;
[0035] Figure 4A first flow chart of the method for interconnecting FreeSWITCH and a PDT cluster system according to the present invention;
[0036] Figure 5 This is a second flow chart of the method for interconnecting FreeSWITCH and the PDT cluster system of the present invention. DETAILED DESCRIPTION
[0037] In order to further understand the structure, features and other purposes of the present invention, the following detailed description is given in conjunction with the attached preferred embodiments and the accompanying drawings. The embodiments described in the drawings are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention.
[0038] As a first embodiment of the present invention, Figure 1 As shown, the present invention provides a system for interconnecting FreeSWITCH and PDT cluster systems, which includes a PDT cluster system 1, a MOD_PDT module 2, a FreeSWITCH kernel 3, other MOD modules 4 and other communication systems 5.
[0039] The PDT cluster system 1 is connected to the FreeSWITCH kernel 3 via the MOD_PDT module 2. The MOD_PDT module 2 is used to convert the wireless communication services from the PDT cluster system 1 into a format that FreeSWITCH can recognize and send it to the FreeSWITCH kernel 3 for processing. Other communication systems 5 are connected to the FreeSWITCH kernel 3 via other MOD modules 4. The other MOD modules 4 are used to convert the corresponding wireless communication services from other communication systems 5 into a format that FreeSWITCH can recognize and send it to the FreeSWITCH kernel 3 for processing. After the wireless communication services from other communication systems 5 reach the FreeSWITCH kernel 3, they are sent by the FreeSWITCH kernel 3 to the MOD_PDT module 2. After the MOD_PDT module 2 converts the protocol, they are sent to the PDT cluster system 1, thereby realizing intercommunication between the other communication systems 5 and the PDT cluster system 1.
[0040] In this embodiment, the newly built MOD_PDT module 2 is connected to the PDT cluster system 1 at one end and to the FreeSWITCH kernel 3 at the other end, and the wireless communication service from the PDT cluster system 1 is converted into a format that FreeSWITCH can recognize by using the MOD_PDT module 2, and sent to the FreeSWITCH kernel 3 for processing, thereby realizing the interconnection and intercommunication between the PDT cluster system and FreeSWITCH. The communication between the MOD_PDT module 2 and the PDT cluster system 1 adopts UDP, and the communication between the MOD_PDT module 2 and the FreeSWITCH kernel 3 is realized through a set of communication mechanisms provided by the existing FreeSWITCH. By integrating FreeSWITCH and utilizing the existing resources of FreeSWITCH for communication, communication systems with different protocols are connected, such as the private network PDT cluster system, the private network T3 cluster system, the private network conventional system, the public network telephone system, the video surveillance system, the law enforcement instrument system, etc., thereby solving the problem of mismatch of communication protocols. After the integration of PDT and FreeSWITCH, the communication methods can be further expanded, including the interconnection of multiple devices such as telephones and public network walkie-talkies. This makes communication between different devices more convenient and improves the efficiency of emergency response and collaboration.
[0041] The specific interconnection process between the PDT cluster system 1 and the FreeSWITCH kernel 3 in this system is as follows:
[0042] When the terminal on the PDT cluster system 1 side initiates a call, the PDT cluster system 1 sends a call incoming notification. After receiving the call incoming notification, the MOD_PDT module 2 creates a call session, records all call-related information in the session, and sends an answer off-hook request to the PDT cluster system 1, indicating that the called party agrees to answer the call. After the PDT cluster system 1 receives the answer off-hook request, the PDT cluster system 1 sends a call establishment notification to the MOD_PDT module 2. The MOD_PDT module 2 informs the FreeSWITCH kernel 3 that the channel is established to answer the call. The PDT cluster system 1 sends a PTT ON notification to the MOD_PDT module 2. The MOD_PDT module 2 forwards the PTT ON notification message to the FreeSWITCH kernel 3. The PDT cluster system 1 sends a voice message to the MOD_PDT module 2. The MOD_PDT module 2 stores the voice message in a temporary buffer and transmits the voice message in the temporary buffer to the FreeSWITCH kernel 3. PDT cluster system 1 sends a PTT OFF notification to MOD_PDT module 2, and MOD_PDT module 2 forwards the PTT OFF notification message to FreeSWITCH kernel 3. PDT cluster system 1 sends a PTT hang-up notification to MOD_PDT module 2, and MOD_PDT module 2 releases all call-related variables and resources and forwards the PTT hang-up notification to FreeSWITCH kernel 3.
[0043] When a FreeSWITCH-side terminal initiates a call to PDT cluster system 1, FreeSWITCH kernel 3 sends the call request to MOD_PDT module 2, which then issues an outgoing call notification to PDT cluster system 1. After PDT cluster system 1 receives the outgoing call notification, it sends a call setup notification to MOD_PDT module 2, which instructs FreeSWITCH kernel 3 to establish a channel to answer the call. After FreeSWITCH kernel 3 receives the channel setup message, it sends a PTT ON message to MOD_PDT module 2, which then sends a PTT ON notification to PDT cluster system 1. FreeSWITCH kernel 3 sends a voice message to MOD_PDT module 2, which then forwards the voice message to PDT cluster system 1. FreeSWITCH kernel 3 sends a PTT OFF message to MOD_PDT module 2, which then sends a PTT OFF notification to PDT cluster system 1. The FreeSWITCH kernel 3 sends a PTT hang-up notification to the MOD_PDT module 2 . The MOD_PDT module 2 releases all variables and resources related to the call and sends a PTT hang-up notification to the PDT trunking system 1 .
[0044] As a second embodiment of the present invention, the MOD_PDT module 2 includes a UDP receiving submodule 21 and a wireless communication service definition submodule 22. The PDT cluster system 1 is in communication with the UDP receiving submodule 21. The UDP receiving submodule 21 is configured to receive wireless communication services from the PDT cluster system 1 and parse the wireless communication services, including voice, SMS, status SMS, GPS, dynamic reassembly, and other messages, to enable communication between the MOD_PDT module 2 and the PDT cluster system 1.
[0045] The UDP receiving submodule 21 is connected to the FreeSWITCH kernel 3 through the wireless communication service definition submodule 22. The wireless communication service definition submodule 22 is used to define the data format of each wireless communication service as a format that FreeSWITCH can recognize, so that the wireless communication service received by the UDP receiving submodule 21 from the PDT cluster system 1 is converted into a format that FreeSWITCH can recognize through the protocol, and enters the FreeSWITCH conference, thereby realizing the communication between the MOD_PDT module 2 and the FreeSWITCH kernel 3.
[0046] In this embodiment, a set of protocols is defined by the wireless communication service definition submodule 22 for intercommunication between the PDT cluster system and FreeSWITCH. After using the protocol conversion technology, the PDT cluster system and the FreeSWITCH converged communication system realize the interconnection of voice, data and signaling.
[0047] The wireless communication service definition submodule 22 must define at least the following major functions: A registration module is defined to ensure terminal and dispatcher registration information. The voice call module is defined to include call initiation, outgoing call request, incoming call notification, ringing request, ringing notification, voice request, voice request notification, call hang-up request, call hang-up notification, and so on. These messages must also include information such as the voice channel's IP port and address, voice codec, encryption, general call, broadcast call, and priority call. The SMS module is defined to include text message send requests, receive notifications, and text message receive responses. The status SMS module is defined to include status message send requests, receive notifications, and status message receive responses. The positioning module is defined to include messages such as single positioning pull requests, positioning data reporting notifications, location subscription operation requests, location subscription parameter acquisition, and location subscription parameter setting. The dynamic reorganization module is defined to include messages such as dynamic group operation requests, dynamic group operation notifications, dynamic group queries, broadcast group updates, broadcast group deletions, broadcast group queries, remote kill, remote stun, and wakeup. Other extension modules are defined, including heartbeat, basic data acquisition, IOP test related messages and other additional extended function related messages. The compatibility between FreeSWITCH and PDT cluster system is improved by defining a special wireless communication service definition submodule 22.
[0048] As the third embodiment of the present invention, the MOD_PDT module 2 also includes an incoming and outgoing call notification module, which is used to send an outgoing call notification to the PDT cluster system 1 when receiving a call request from the FreeSWITCH kernel 3; and when receiving an incoming call notification from the PDT cluster system 1, create a call session, record all call-related information in the session, and send an answer off-hook request to the PDT cluster system 1, indicating that the called party agrees to answer the call.
[0049] As a fourth embodiment of the present invention, the MOD_PDT module 2 further includes a call answering module, which is configured to notify the FreeSWITCH kernel 3 of channel establishment upon receiving a call establishment notification from the PDT cluster system 1 .
[0050] As a fifth embodiment of the present invention, the MOD_PDT module 2 also includes a PTT ON notification interaction module, which is used to send a PTT ON notification to the PDT cluster system 1 when receiving a PTT ON message from the FreeSWITCH kernel 3; and forward the PTT ON notification message to the FreeSWITCH kernel 3 when receiving a PTT ON notification from the PDT cluster system 1.
[0051] As the sixth embodiment of the present invention, the MOD_PDT module 2 also includes a voice interaction module, which is used to forward the voice to the PDT cluster system 1 when receiving voice from the FreeSWITCH kernel 3; and when receiving voice from the PDT cluster system 1, store the voice in a temporary buffer and transmit the voice in the temporary buffer to the FreeSWITCH kernel 3.
[0052] As the seventh embodiment of the present invention, the MOD_PDT module 2 also includes a PTT OFF notification interaction module, which is used to send a PTT OFF notification to the PDT cluster system 1 when receiving a PTT OFF message from the FreeSWITCH kernel 3; and forward the PTT OFF notification message to the FreeSWITCH kernel 3 when receiving a PTT OFF notification from the PDT cluster system 1.
[0053] As the eighth embodiment of the present invention, the MOD_PDT module 2 also includes a PTT hang-up notification interaction module, which is used to release all variables and resources related to the call when receiving the PTT hang-up notification from the FreeSWITCH kernel 3, and send the PTT hang-up notification to the PDT cluster system 1; and when receiving the PTT hang-up notification from the PDT cluster system 1, release all variables and resources related to the call, and forward the PTT hang-up notification to the FreeSWITCH kernel 3.
[0054] As a ninth embodiment of the present invention, Figure 2 and Figure 4 As shown, a method for interconnecting FreeSWITCH and the PDT cluster system using the above system includes the following steps:
[0055] Step S301), when the terminal on the FreeSWITCH side initiates a call to the PDT cluster system 1, the FreeSWITCH kernel 3 sends the initiated call request to the MOD_PDT module 2, and the MOD_PDT module 2 issues a call outgoing notification to the PDT cluster system 1. In this step, when the terminal on the FreeSWITCH side initiates a call, the FreeSWITCH kernel 3 initiates a call request, and the MOD_PDT module 2 issues a call outgoing notification to the PDT cluster system 1, that is, the terminal on the FreeSWITCH side can normally receive the other party's call message and prepare for voice communication.
[0056] Step S302) After the PDT cluster system 1 receives the outgoing call notification, the PDT cluster system 1 sends a call establishment notification to the MOD_PDT module 2. The MOD_PDT module 2 notifies the FreeSWITCH kernel 3 that the channel is established to answer the call. In this step, after receiving the outgoing call notification, the PDT cluster system 1 sends a call establishment notification to the MOD_PDT module 2. The MOD_PDT module 2 notifies the FreeSWITCH kernel 3 that the channel is established, that is, the PDT cluster system 1 is ready to receive voice.
[0057] Step S303), after the FreeSWITCH kernel 3 receives the channel establishment message, the FreeSWITCH kernel 3 sends a PTT ON message to the MOD_PDT module 2, and the MOD_PDT module 2 sends a PTT ON notification to the PDT cluster system 1. In this step, the FreeSWITCH kernel 3 sends a PTT ON message to the MOD_PDT module 2, and the MOD_PDT module 2 sends a PTT ON notification to the PDT cluster system 1. This is a sign that both communicating parties can correctly recognize the start of each other's speech.
[0058] Step S304), FreeSWITCH kernel 3 sends voice to MOD_PDT module 2, and MOD_PDT module 2 forwards the voice to PDT cluster system 1. In this step, the terminal on the FreeSWITCH side sends voice to MOD_PDT module 2 through FreeSWITCH kernel 3, and MOD_PDT module 2 forwards the voice to PDT cluster system 1. At this time, the terminal on the PDT cluster system 1 and the terminal on the FreeSWITCH side can correctly receive each other's voice.
[0059] In step S305, the FreeSWITCH kernel 3 sends a PTT OFF message to the MOD_PDT module 2, and the MOD_PDT module 2 sends a PTT OFF notification to the PDT cluster system 1. In this step, when the FreeSWITCH kernel 3 sends the PTT OFF message to the MOD_PDT module 2 and the MOD_PDT module 2 sends the PTT OFF notification to the PDT cluster system 1, it indicates that both communicating parties can correctly recognize the end of the other party's speech.
[0060] Step S306), the FreeSWITCH kernel 3 sends a PTT hang-up notification to the MOD_PDT module 2. The MOD_PDT module 2 releases all call-related variables and resources and sends a PTT hang-up notification to the PDT cluster system 1. In this step, when the FreeSWITCH kernel 3 sends a PTT hang-up notification to the MOD_PDT module 2, the MOD_PDT module 2 releases all call-related variables and resources and sends a PTT hang-up notification to the PDT cluster system 1. The terminals of the PDT cluster system 1 can correctly identify the sign that the other party has hung up the voice.
[0061] Based on the above steps, the communication between the terminal on the FreeSWITCH side and the terminal of the PDT cluster system 1 is completed. The MOD_PDT module 2 in the system is used for protocol conversion, making the communication between the terminal on the FreeSWITCH side and the terminal of the PDT cluster system 1 more convenient and improving the efficiency of emergency response and collaboration.
[0062] As a tenth embodiment of the present invention, Figure 3 and Figure 5 As shown, a method for interconnecting FreeSWITCH and the PDT cluster system using the above system specifically includes the following steps:
[0063] Step S101): When a terminal on the PDT cluster system 1 side initiates a call, the PDT cluster system 1 sends a call incoming notification. After receiving the call incoming notification, the MOD_PDT module 2 creates a call session, records all call-related information in the session, and sends an answer-offhook request to the PDT cluster system 1, indicating that the called party agrees to answer the call. In this step, when a terminal on the PDT cluster system 1 side initiates a call request, the PDT cluster system 1 sends a call incoming notification. After receiving the call incoming notification, the MOD_PDT module 2 creates a call session, records all call-related information in the session, and sends an answer-offhook request to the PDT cluster system 1, indicating that the called party agrees to answer the call, preparing for voice communication.
[0064] Step S102), after the PDT cluster system 1 receives the answer off-hook request, the PDT cluster system 1 sends a call establishment notification to the MOD_PDT module 2. The MOD_PDT module 2 notifies the FreeSWITCH kernel 3 that the channel is established to answer the call. In this step, after the PDT cluster system 1 receives the answer off-hook request, it sends a call establishment notification to the MOD_PDT module 2. The MOD_PDT module 2 notifies the FreeSWITCH kernel 3 that the channel is established to answer the call. That is, the terminal on the FreeSWITCH side is ready to receive voice.
[0065] Step S103), the PDT cluster system 1 sends a PTT ON notification to the MOD_PDT module 2, and the MOD_PDT module 2 forwards the PTT ON notification message to the FreeSWITCH kernel 3. In this step, the PDT cluster system 1 sends a PTT ON notification to the MOD_PDT module 2, and the MOD_PDT module 2 forwards the PTT ON notification message to the FreeSWITCH kernel 3. This is a sign that both communicating parties can correctly recognize the start of each other's speech.
[0066] In step S104, PDT cluster system 1 sends a voice message to MOD_PDT module 2. MOD_PDT module 2 stores the voice message in a temporary buffer and transmits the message in the temporary buffer to FreeSWITCH kernel 3. In this step, PDT cluster system 1 sends a voice message to MOD_PDT module 2. MOD_PDT module 2 stores the voice message in a temporary buffer and transmits the message in the temporary buffer to FreeSWITCH kernel 3. At this point, the FreeSWITCH terminal and the PDT cluster system 1 terminal can correctly receive each other's voice messages.
[0067] In step S105, the PDT cluster system 1 sends a PTT OFF notification to the MOD_PDT module 2, and the MOD_PDT module 2 forwards the PTT OFF notification message to the FreeSWITCH kernel 3. In this step, when the PDT cluster system 1 sends a PTT OFF notification to the MOD_PDT module 2 and the MOD_PDT module 2 forwards the PTT OFF notification message to the FreeSWITCH kernel 3, it indicates that both communicating parties can correctly recognize that the other party's speech has ended.
[0068] Step S106), the PDT cluster system 1 sends a PTT hang-up notification to the MOD_PDT module 2. The MOD_PDT module 2 releases all call-related variables and resources and forwards the PTT hang-up notification to the FreeSWITCH kernel 3. In this step, when the PDT cluster system 1 sends a PTT hang-up notification to the MOD_PDT module 2, the MOD_PDT module 2 releases all call-related variables and resources and forwards the PTT hang-up notification to the FreeSWITCH kernel 3. The terminal on the FreeSWITCH side can correctly identify the other party's voice hang-up sign.
[0069] Based on the above steps, the communication between the terminal of PDT cluster system 1 and the terminal on the FreeSWITCH side is completed. The MOD_PDT module 2 in the system is used for protocol conversion, which makes the communication between the terminal of PDT cluster system 1 and the terminal on the FreeSWITCH side more convenient and improves the efficiency of emergency response and collaboration.
[0070] Based on the ninth and tenth implementation modes, it can be seen that the system of the present invention can realize the interconnection and intercommunication between FreeSWITCH and the PDT cluster system. On this basis, by further expanding the communication mode, including the interconnection and intercommunication of multiple devices such as telephones and public network intercoms, the communication between different devices is made more convenient, thereby improving the efficiency of emergency response and collaboration.
[0071] It should be noted that the above summary of the invention and specific embodiments are intended to demonstrate the practical application of the technical solutions provided by the present invention and should not be construed as limiting the scope of protection of the present invention. Those skilled in the art will readily make various modifications, equivalent substitutions, or improvements within the spirit and principles of the present invention. The scope of protection of the present invention shall be determined by the appended claims.
Claims
1. A system for interconnecting FreeSWITCH and PDT cluster systems, characterized in that: The system comprises a PDT cluster system (1), a MOD_PDT module (2), a FreeSWITCH kernel (3), other MOD modules (4) and other communication systems (5); wherein, The PDT cluster system (1) is connected to the FreeSWITCH kernel (3) via the MOD_PDT module (2). The MOD_PDT module (2) is used to convert wireless communication services from the PDT cluster system (1) into a format that can be recognized by FreeSWITCH and send it to the FreeSWITCH kernel (3) for processing; The other communication system (5) is connected to the FreeSWITCH kernel (3) via the other MOD module (4), and the other MOD module (4) is used to convert the corresponding wireless communication service from the other communication system (5) into a format that can be recognized by FreeSWITCH, and send it to the FreeSWITCH kernel (3) for processing; When wireless communication services from other communication systems (5) arrive at the FreeSWITCH kernel (3), they are sent by the FreeSWITCH kernel (3) to the MOD_PDT module (2), and then sent to the PDT cluster system (1) after protocol conversion by the MOD_PDT module (2), thereby realizing intercommunication between the other communication systems (5) and the PDT cluster system (1).
2. The system according to claim 1, wherein The MOD_PDT module (2) includes a UDP receiving submodule (21) and a wireless communication service definition submodule (22); wherein, The PDT cluster system (1) is in communication connection with a UDP receiving submodule (21), and the UDP receiving submodule (21) is used to receive wireless communication services from the PDT cluster system (1) and parse the wireless communication services, wherein the wireless communication services include voice, short messages, status short messages, GPS, dynamic reorganization and other messages, so as to realize communication between the MOD_PDT module (2) and the PDT cluster system (1); The UDP receiving submodule (21) is connected to the FreeSWITCH kernel (3) through the wireless communication service definition submodule (22). The wireless communication service definition submodule (22) is used to define the data format of each wireless communication service as a format that can be recognized by FreeSWITCH, so that the wireless communication service received by the UDP receiving submodule (21) from the PDT cluster system (1) is converted into a format that can be recognized by FreeSWITCH through the protocol and enters the FreeSWITCH conference, thereby realizing the communication between the MOD_PDT module (2) and the FreeSWITCH kernel (3).
3. The system according to claim 1, wherein: The MOD_PDT module (2) further comprises an incoming call notification module, wherein the incoming call notification module is used to send an outgoing call notification to the PDT cluster system (1) when receiving a call request from the FreeSWITCH kernel (3); When receiving the incoming call notification from the PDT cluster system (1), a call session is created, all call related information is recorded in the session, and an answer off-hook request is sent to the PDT cluster system (1), indicating that the called party agrees to answer the call.
4. The system according to claim 1, wherein: The MOD_PDT module (2) further comprises a call answering module, which is used to inform the FreeSWITCH kernel (3) of channel establishment when receiving a call establishment notification from the PDT cluster system (1).
5. The system according to claim 1, wherein: The MOD_PDT module (2) further comprises a PTT ON notification interaction module, wherein the PTT ON notification interaction module is configured to send a PTT ON notification to the PDT cluster system (1) upon receiving a PTT ON message from the FreeSWITCH kernel (3); and forward the PTT ON notification message to the FreeSWITCH kernel (3) upon receiving a PTT ON notification from the PDT cluster system (1).
6. The system according to claim 1, wherein: The MOD_PDT module (2) further comprises a voice interaction module, wherein the voice interaction module is used to forward the voice to the PDT cluster system (1) when receiving the voice from the FreeSWITCH kernel (3); and to store the voice in a temporary buffer when receiving the voice from the PDT cluster system (1), and transmit the voice in the temporary buffer to the FreeSWITCH kernel (3).
7. The system according to claim 1, wherein: The MOD_PDT module (2) further comprises a PTT OFF notification interaction module, wherein the PTT OFF notification interaction module is configured to send a PTT OFF notification to the PDT cluster system (1) upon receiving a PTT OFF message from the FreeSWITCH kernel (3); and forward the PTT OFF notification message to the FreeSWITCH kernel (3) upon receiving a PTT OFF notification from the PDT cluster system (1).
8. The system according to claim 1, wherein: The MOD_PDT module (2) further comprises a PTT hang-up notification interaction module, wherein the PTT hang-up notification interaction module is used to release all variables and resources related to the call upon receiving a PTT hang-up notification from the FreeSWITCH kernel (3) and send the PTT hang-up notification to the PDT cluster system (1); and to release all variables and resources related to the call upon receiving a PTT hang-up notification from the PDT cluster system (1) and forward the PTT hang-up notification to the FreeSWITCH kernel (3).
9. A method for interconnecting FreeSWITCH and a PDT cluster system using the system according to any one of claims 1 to 8, characterized in that: The method comprises the following steps: Step S301), when the terminal on the FreeSWITCH side initiates a call to the PDT cluster system (1), the FreeSWITCH kernel (3) sends the initiated call request to the MOD_PDT module (2), and the MOD_PDT module (2) sends a call outgoing notification to the PDT cluster system (1); Step S302), after the PDT cluster system (1) receives the outgoing call notification, the PDT cluster system (1) sends a call establishment notification to the MOD_PDT module (2), and the MOD_PDT module (2) notifies the FreeSWITCH kernel (3) that a channel is established to answer the call; Step S303), after the FreeSWITCH kernel (3) receives the channel establishment message, the FreeSWITCH kernel (3) sends a PTT ON message to the MOD_PDT module (2), and the MOD_PDT module (2) sends a PTT ON notification to the PDT cluster system (1); Step S304), the FreeSWITCH kernel (3) sends a voice to the MOD_PDT module (2), and the MOD_PDT module (2) forwards the voice to the PDT cluster system (1); Step S305), the FreeSWITCH kernel (3) sends a PTT OFF message to the MOD_PDT module (2), and the MOD_PDT module (2) sends a PTT OFF notification to the PDT cluster system (1); Step S306), the FreeSWITCH kernel (3) sends a PTT hang-up notification to the MOD_PDT module (2), the MOD_PDT module (2) releases all variables and resources related to the call, and sends a PTT hang-up notification to the PDT cluster system (1).
10. A method for interconnecting FreeSWITCH and a PDT cluster system using the system according to any one of claims 1 to 8, characterized in that: The method comprises the following steps: Step S101), when a terminal on the PDT cluster system (1) side initiates a call, the PDT cluster system (1) sends a call incoming notification, and after receiving the call incoming notification, the MOD_PDT module (2) creates a call session, records all call-related information in the session, and sends an answer off-hook request to the PDT cluster system (1), indicating that the called party agrees to answer the call; Step S102), after the PDT cluster system (1) receives the answer off-hook request, the PDT cluster system (1) sends a call establishment notification to the MOD_PDT module (2), and the MOD_PDT module (2) notifies the FreeSWITCH kernel (3) that the channel is established to answer the call; Step S103), the PDT cluster system (1) sends a PTT ON notification to the MOD_PDT module (2), and the MOD_PDT module (2) forwards the PTT ON notification message to the FreeSWITCH kernel (3); Step S104), the PDT cluster system (1) sends a voice to the MOD_PDT module (2), the MOD_PDT module (2) stores the voice in a temporary buffer, and transmits the voice in the temporary buffer to the FreeSWITCH kernel (3); Step S105), the PDT cluster system (1) sends a PTT OFF notification to the MOD_PDT module (2), and the MOD_PDT module (2) forwards the PTT OFF notification message to the FreeSWITCH kernel (3); Step S106), the PDT cluster system (1) sends a PTT hang-up notification to the MOD_PDT module (2), the MOD_PDT module (2) releases all variables and resources related to the call, and forwards the PTT hang-up notification to the FreeSWITCH kernel (3).
Citation Information
Patent Citations
Communication device of 350-mega PDT digital cluster and POC intercom system
CN113873446A
Pronunciation fuse communication system
CN208299877U
Method, device and system for interconnecting trunking DMR / PDT and conventional DMR / pdt
WO2017020175A1