Hereinafter, preferred embodiments of the present invention are given in conjunction with the drawings to illustrate the technical solutions of the present invention in detail.
 Such as figure 1 As shown, the system of the present invention for realizing the intercommunication between IP phone and walkie-talkie system through multicast includes an intercom application server, a walkie-talkie connection server, and a walkie-talkie, among which:
 The intercom application server, which stores the information of the entire system and performs communication services, is used to support the intercom function of one server and multiple interphones;
 The walkie-talkie connection server is connected to the walkie-talkie connection server to receive and control the walkie-talkie signal;
 Walkie-talkie, connected to the server with the walkie-talkie, is used to connect to the ordinary walkie-talkie connected to the walkie-talkie connection server. It can communicate with all walkie-talkies in the same channel.
 The intercom application server includes a configuration management module, a softswitch communication module, a media stream multicast module, and a control protocol module, where:
 The configuration module, connected to the softswitch communication module, is used to register and authenticate users and open related configuration permissions, configure the softswitch communication service parameters, set the guide number of the walkie-talkie channel, and configure the multicast port for the talkie to connect to the server And IP address, set the buttons for related operations;
 The softswitch communication module is connected to the media stream multicast module, used to communicate with the softswitch system telephone system, receive calls from the telephone terminal, negotiate the media stream format, and transmit port address, and realize the communication from the telephone terminal to the intercom application server Signaling and media control connection;
 Media stream multicast module, connected to the control protocol module, receives the media stream from the telephone terminal according to the address and port negotiated by the softswitch communication module, decodes it according to different encoding formats, and sends it by multicast after processing Connect the walkie-talkie to the server, and receive the voice stream from the media stream multicast transceiver module in the walkie-talkie connection server at the corresponding multicast port, and then forward it to the phone terminal through unicast;
 The control protocol module is used to communicate with the walkie-talkie connection server. When the phone user presses the "*" key, the media stream multicast module processes the voice stream and sends a "speak" command to the walkie-talkie connection server to notify the walkie-talkie to press " "Say" button, when the softswitch communication module receives when the phone user presses the "#" key, it sends a "don't speak" command to the interphone to connect to the server to notify the intercom to release the "talk" button.
 The interphone connection server includes a media stream multicast transceiver module and a control module, wherein:
 The media stream multicast transceiver module, connected to the control module, is used to receive the multicast media stream from the media stream multicast module in the intercom application server and convert it into a sound signal that the intercom can accept, and at the same time receive and convert the sound signal from the intercom Multicast the digital media stream to the media stream multicast module in the intercom application server;
 The control module is used to receive the control signaling of the control protocol module in the intercom application service. When receiving the "speak" command, control the walkie-talkie to press the "speak" button, and when receive the "don't speak" command, control the walkie-talkie to loosen Turn on the "Say" button.
 Such as figure 2 Said, the method for realizing the intercommunication between IP phone and walkie-talkie system through multicast in the present invention includes the following steps:
 Step 1. Dial the corresponding intercom channel guide number, and go to Step 2.
 Step 2: Connect the telephone terminal to the softswitch system through H323 (audio and video transmission protocol), SIP (session initiation protocol) communication protocol, and proceed to step three;
 Step 3. The softswitch system communicates with the intercom application server through the TAPI (abbreviation of Telephone Application Programming Interface), JTAPI (Technical Application Programming Interface) protocol and the intercom application server server, and transfers the citation number in the form of CTI (Computer Telephone Integration) parameters Intercom application server, the intercom application server searches for the intercom group that has been configured in the system according to the incoming number, if not found, it will play a voice prompt to the user, go to step 15; if it finds the corresponding intercom group, establish a call The media stream channel of the terminal and the DTMF (multi-tone dual frequency) button interaction channel, go to step four;
 Step 4. The intercom application server starts to wait to receive the phone user's keystroke. When the intercom application server receives the user pressing the "*" key, it indicates that the phone user needs to speak. Then go to step 5, the intercom application server receives the phone user's press When the "#" key is used, it means that the phone user does not need to speak, go to step 9;
 Step 5. The intercom application server sends the data of the RTP (Real-time Transport Protocol) protocol and the signal control protocol to the intercom connection server by multicast, and then go to step 6;
 Step 6. The intercom connection server sends the sound to the intercom connected to it by processing the RTP voice stream, and at the same time presses the intercom "speak" button through the control protocol to send the sound to all intercoms in the intercom channel, go to step 7;
 Step 7: The intercom connection server starts to receive the multicast media stream from the intercom application server, and at the same time it receives the "speak" command, so the intercom connects to the server to control the intercom and press the "Say" button to prepare to speak, and then the intercom connection server will receive The received voice media stream is converted into analog voice and transmitted to the walkie-talkie, go to step 8;
 Step 8. The intercom will send the received sound to all the intercoms in the intercom channel, go to step 15;
 Step 9: The intercom application server stops receiving the phone media stream, and goes to step 10;
 Step 10. The intercom application server opens the corresponding multicast receiving port, ready to receive the media stream from the intercom connection server, and at the same time sends a "don't speak" control command to the intercom connection server, go to step 11;
 Step 11. The interphone connects to the server to control the interphone. Release the "Say" button. The intercom starts to receive the sound in the channel and transmits it to the intercom to connect to the server. Go to step 12;
 Step 12. After the walkie-talkie connection server receives the analog signal transmitted by the walkie-talkie, it performs digital conversion and sends it to the intercom application server in a multicast manner. Then go to step 13;
 Step 13. The intercom application server receives the multicast media stream and sends it to the telephone terminal in unicast mode, and then proceeds to step 14.
 Step 14. The telephone terminal receives the media stream and plays the sound, then go to step 15.
 Step 15. The phone hangs up and exits the intercom channel.
 The specific embodiments described above further describe the technical problems, technical solutions, and beneficial effects solved by the present invention in further detail. It should be understood that the above descriptions are only specific embodiments of the present invention and are not intended to limit In the present invention, any modification, equivalent replacement, improvement, etc., made within the spirit and principle of the present invention should be included in the protection scope of the present invention.