PCM equipment communication method, device, electronic equipment and storage medium
By constructing a parsing database when the communication link between the PCM device and the server is abnormal, comparing the number information, determining the target device, and sending a session protocol call request, the problem of communication interruption of the PCM device when the IP-PBX fails is solved and achieved Efficient communication between PCM devices within the local area network.
Patent Information
- Application Number
- CN202411009362.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-26
AI Technical Summary
In the traditional VoIP environment, PCM equipment cannot communicate with each other when the IP-PBX fails. The existing dual IP-PBX disaster recovery mechanism causes communication interruption when dual failures or upper-layer routing failures occur.
By constructing a parsing database when the communication link between the PCM device and the server is abnormal, obtaining and comparing the number information in the dial-up signaling, determining the target device from multiple PCM devices, and sending a session protocol call request to realize the communication between PCM devices. conversational communication.
When the communication link between the PCM device and the server is abnormal, the active mechanism is used to realize session communication between all PCM devices in the LAN, which improves the communication efficiency between PCM devices and avoids communication interruption caused by simultaneous failures of dual IP-PBX.
Smart Images

Figure CN118555272B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a PCM device communication method, device, electronic device and storage medium. Background Art
[0002] In the traditional Voice over Internet Protocol (VoIP) environment based on Internet Protocol (IP), Pulse Code Modulation (PCM) devices (supporting VoIP) rely on upper-layer servers (IP-Private Branch eXchange (PBX)) for communication. In addition to the data number of the PCM device itself, the data numbers of other PCM devices are stored on the IP-PBX. In addition, all dialing and calls need to be transferred through the IP-PBX. If separated from the IP-PBX, the PCM device cannot obtain the external number information of other PCM devices and locate the IP address of the other PCM device. In this case, the disaster recovery mechanism is particularly important. Once the IP-PBX fails, the PCM devices will not be able to communicate with each other.
[0003] Among the disaster recovery mechanisms currently in common use, the common disaster recovery mechanism is to use a dual IP-PBX mechanism, that is, there are two upper-layer servers in the system. Except for the different IP addresses, the services and number data stored on these two IP-PBXs are the same. When the PCM device detects that the connection with the main IP-PBX (main PBX) is interrupted or the interaction is abnormal, the system will automatically switch and register to the backup P-PBX. The following figure is a schematic diagram of the current common PCM disaster recovery mechanism network.
[0004] However, this common disaster recovery mechanism also has certain problems. That is, if two IP-PBXs fail at the same time or the upper-layer routing fails, even if the PCM devices are located in the same LAN, the communication between the PCM devices will be interrupted, resulting in the PCM devices being unable to communicate with each other. Summary of the invention
[0005] The present invention provides a PCM equipment communication method, device, electronic equipment and storage medium, which are used to solve the problem that PCM equipment cannot communicate with each other.
[0006] The present invention provides a PCM device communication method, which is applied to a first PCM device in a local area network, comprising:
[0007] In case that the communication link between the first PCM device and the server is abnormal, constructing a parsing database; the parsing database includes address information and / or number information of at least one second PCM device in the local area network;
[0008] In the case where the communication link between the first PCM device and the server is abnormal and a dial-up signaling of a user is obtained, determining a target PCM device from a plurality of second PCM devices based on number information corresponding to the dial-up signaling and number information of each second PCM device in the parsing database;
[0009] Sending a session protocol call request to the address information corresponding to the target PCM; the session protocol call request is used for session communication between the first PCM device and the target PCM device.
[0010] According to a PCM device communication method provided by the present invention, when the communication link between the first PCM device and the server is abnormal, building a parsing database includes:
[0011] When the communication link between the first PCM device and the server is abnormal, sending a protocol message to each of the second PCM devices and receiving a protocol message sent by each of the second PCM devices;
[0012] Parsing the protocol message sent by each of the second PCM devices to obtain the address information and / or number information of each of the second PCM devices;
[0013] The resolution database is determined based on the address information and / or number information of each of the second PCM devices.
[0014] According to a PCM device communication method provided by the present invention, the method of determining a target PCM device from a plurality of second PCM devices based on the number information corresponding to the dial signaling and the number information of each second PCM device in the parsing database includes:
[0015] Comparing the number information corresponding to the dial signaling with the number information of the plurality of second PCM devices in the parsing database;
[0016] The second PCM device corresponding to the number information successfully matched with the number information corresponding to the dial signaling is determined as the target PCM device.
[0017] According to a PCM device communication method provided by the present invention, the method further includes:
[0018] When the communication link between the first PCM device and the server is normal and a dial-up signaling sent by a user through a third PCM device is received, determining whether the address information of the third PCM device and the address information of the first PCM device belong to the same local area network;
[0019] Based on the judgment result, it is determined whether to send a protocol message to the third PCM device.
[0020] According to a PCM device communication method provided by the present invention, the determining whether to send a protocol message to the third PCM device based on the judgment result includes:
[0021] If the determination result is that the address information of the third PCM device and the address information of the first PCM device belong to the same local area network, determining whether the first PCM has sent number service related information to the third PCM or whether the number service related information is updated after being sent;
[0022] In a case where the first PCM has not sent the number service related information to the third PCM or the number service related information is updated after being sent, a protocol message is sent to the address information of the third PCM device.
[0023] According to a PCM device communication method provided by the present invention, the protocol message includes at least one of the following: header information, configuration unit information, and checksum information.
[0024] According to a PCM device communication method provided by the present invention, the header information includes at least one of the following: destination MAC address, source MAC address, private frame header and data length; the configuration unit information includes at least one of the following: address information, number of configuration types, configuration type, configuration type length and configuration type data; the checksum information includes at least one of the following: checksum high bit, checksum second high bit, checksum second low bit and checksum low bit.
[0025] The present invention also provides a PCM device communication device, which is applied to a first PCM device in a local area network, comprising:
[0026] A first determination module is configured to determine a target PCM device from each of the second PCM devices based on number information corresponding to the dial-up signaling and number information of at least one second PCM device in a parsing database when a communication link between the first PCM device and the server is abnormal and a dial-up signaling of a user is obtained; the parsing database includes address information and / or number information of each of the second PCM devices in the local area network;
[0027] The first sending module is used to send a session protocol call request to the address information corresponding to the target PCM; the session protocol call request is used for session communication between the first PCM device and the target PCM device.
[0028] The present invention also provides an electronic device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above-mentioned PCM device communication methods is implemented.
[0029] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the PCM device communication method described above is implemented.
[0030] The PCM device communication method, device, electronic device and storage medium provided by the present invention build a parsing database when the communication link between the first PCM device and the server is abnormal; the parsing database includes the address information and / or number information of at least one second PCM device in the local area network; when the communication link between the first PCM device and the server is abnormal and the user's dial-up signaling is obtained, the target PCM device is determined from multiple second PCM devices based on the number information corresponding to the dial-up signaling and the number information of each second PCM device in the parsing database; a session protocol call request is sent to the address information corresponding to the target PCM; the session protocol call request is used for session communication between the first PCM device and the target PCM device. When the communication link between the first PCM device and the server is abnormal, the parsing database is built, and based on the number information of at least one second PCM device in the parsing database, the session communication between all PCM devices in the local area network is realized through an active mechanism, thereby improving the communication efficiency between PCM devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0032] Figure 1 It is a schematic diagram of the dual IP-PBX disaster recovery mechanism networking provided by the prior art.
[0033] Figure 2 It is a schematic diagram of the disaster recovery mechanism networking provided by the present invention.
[0034] Figure 3 It is a flow chart of the PCM device communication method provided by the present invention.
[0035] Figure 4 It is a flow chart of the active interaction mechanism provided by the present invention.
[0036] Figure 5 It is a flow chart of the passive interaction mechanism provided by the present invention.
[0037] Figure 6 It is a structural schematic diagram of the PCM equipment communication device provided by the present invention.
[0038] Figure 7 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] Figure 1 This is a schematic diagram of the dual IP-PBX disaster recovery mechanism networking provided by the existing technology, such as Figure 1 As shown in the figure, the dual IP-PBX disaster recovery mechanism network includes IP-PBX1, IP-PBX2, router, PCM1 and PCM2. IP-PBX1 and IP-PBX2 have the same service and number data except for their different IP addresses. When PCM1 detects that the connection between IP-PBX1 and the router is interrupted or the interaction is abnormal, the system will automatically switch to IP-PBX2 and register. However, this mechanism also has certain problems, that is, if both IP-PBXs fail at the same time, or the upper-layer routing fails, the communication between the devices will be interrupted. Even if the devices are in the same LAN, they cannot communicate with each other.
[0041] Based on the above problems, Figure 2 Schematic diagram of the disaster recovery mechanism network provided by the present invention, such as Figure 2 As shown, it includes IP-PBX1, IP-PBX2, router, PCM1, PCM2 and PCM3, among which, the connection between IP-PBX1 and IP-PBX2 and the router is interrupted or the interaction is abnormal, and PCM1, PCM2 and PCM3 devices can also conduct point-to-point conversation communication.
[0042] Figure 3: is a flow chart of the PCM device communication method provided by the present invention, such as Figure 3 As shown, the method is applied to a first PCM device in a local area network and includes the following steps 301 to 303.
[0043] Step 301: When the communication link between the first PCM device and the server is abnormal, construct a parsing database; the parsing database includes address information and / or number information of at least one second PCM device in the local area network.
[0044] Specifically, the local area network includes multiple PCM devices, wherein the first PCM device is any one of the multiple PCM devices, and the second PCM device is a PCM device other than the first PCM device. The server is an IP-PBX. The parsing database includes address information and / or number information of at least one second PCM device in the local area network, wherein the address information is an IP address.
[0045] The first PCM device can determine whether the communication link between the first PCM device and the server is abnormal through a ping command, a heartbeat detection, or a Session Initialization Protocol (SIP) interaction. When the first PCM device detects that the communication link between the first PCM device and the server is abnormal, a parsing database can be constructed.
[0046] Step 302: When the communication link between the first PCM device and the server is abnormal and the user's dial-up signaling is obtained, a target PCM device is determined from multiple second PCM devices based on number information corresponding to the dial-up signaling and number information of at least one second PCM device in the parsed database.
[0047] Specifically, after building the parsing database, when the first PCM device detects that the communication link between the first PCM device and the server is still abnormal and the first PCM device obtains the user's dialing signaling, that is, when the first PCM device dials, the target PCM device can be determined from multiple second PCM devices based on the number information corresponding to the dialing signaling and the number information of multiple second PCM devices in the parsing database.
[0048] Step 303: Send a session protocol call request to the address information corresponding to the target PCM; the session protocol call request is used for session communication between the first PCM device and the target PCM device.
[0049] Specifically, the session protocol call request is used for session communication between the first PCM device and the target PCM device. The first PCM device can send a session protocol call request (for example, an initial session protocol call application (SIP-INVITE)) to the address information corresponding to the target PCM to complete the intercommunication between the PCM devices to the IP-PBX.
[0050] The PCM device communication method provided by the present invention builds a parsing database when the communication link between the first PCM device and the server is abnormal; the parsing database includes the address information and / or number information of at least one second PCM device in the local area network; when the communication link between the first PCM device and the server is abnormal and the user's dial-up signaling is obtained, the target PCM device is determined from multiple second PCM devices based on the number information corresponding to the dial-up signaling and the number information of each second PCM device in the parsing database; a session protocol call request is sent to the address information corresponding to the target PCM; the session protocol call request is used for session communication between the first PCM device and the target PCM device. When the communication link between the first PCM device and the server is abnormal, the parsing database is built, and based on the number information of at least one second PCM device in the parsing database, the session communication between all PCM devices in the local area network is realized through an active mechanism, thereby improving the communication efficiency between PCM devices.
[0051] Optionally, the specific implementation process of step 301 includes:
[0052] In case that the communication link between the first PCM device and the server is abnormal, a protocol message is sent to each of the second PCM devices, and a protocol message sent by each of the second PCM devices is received; the protocol message sent by each of the second PCM devices is parsed to obtain the address information and / or number information of each of the second PCM devices; and the parsing database is determined based on the address information and / or number information of each of the second PCM devices.
[0053] Specifically, when the first PCM device detects that the communication link between the first PCM device and the server is abnormal, the first PCM device sends a protocol message to each second PCM device in the local area network, and receives the protocol message sent by each second PCM device; the first PCM device parses the protocol message sent by each second PCM device to obtain the address information and / or number information of each second PCM device; and stores the address information and / or number information of each second PCM device in a parsing database.
[0054] Optionally, the protocol message includes at least one of the following: header information, configuration unit information, and checksum information.
[0055] Optionally, the header information includes at least one of the following: destination MAC address, source MAC address, private frame header and data length; the configuration unit information includes at least one of the following: address information, number of configuration types, configuration type, configuration type length and configuration type data; the checksum information includes at least one of the following: checksum high bit, checksum second high bit, checksum second low bit and checksum low bit.
[0056] Optionally, the protocol message may also include other host configuration unit information, such as the number of other host configuration units m. This function is an extended function. When used in a chain topology or a star topology, it is only sent to adjacent devices. After receiving the adjacent device, the configuration information is forwarded to other known ports. In a local area network, the value of m can be 0.
[0057] Table 1. Protocol message format
[0058]
[0059] Table 1 shows the format of the protocol message. As shown in Table 1, the protocol message includes header information, configuration unit information, the number of other host configuration units m and checksum information; among them, the header information includes four fields, namely, the destination MAC address (dstmac), the source MAC address (srcmac), the private frame header (type) and the data length. The data length is the total length of the entire protocol message. The header information contains four fields. The first field is dstmac, which is the destination mac, and the default is 01:1D:80:00:00:00; the second field is srcmac, which is the source mac address of the PCM device; the third field is type, and the content is the private frame header 0x9696; the fourth field is the data length, that is, the total data length of the protocol message, which is calculated from the bytes after len.
[0060] The configuration unit information includes address information, number of configuration types, configuration type, configuration type length and configuration type data; among them, address information refers to the local IP address, that is, the IP address of the PAM device; configuration type length is used to indicate different configuration information, such as dialing rules or number information. The first field is the local IP address information, and the second to fifth fields are the configuration information of the PCM device. This part can use the default interaction configuration information, or customize the configuration type, number of configuration types, configuration type length and configuration type data (that is, the content of the specific data) required for the interaction. The default number of configuration types n is 5, and the configuration types are 1, 2, 3, 4 and 5 in order. The meaning and data of the configuration types are as follows: Configuration type 1 represents the dialing rule. The length of the configuration type is determined by the length of the specific dialing rule, and the configuration type data contains the outgoing rules and incoming rules of the PCM device; Configuration type 2 represents the number of users, including the specific number information of users actually used under the PCM device; Configuration type 3 represents line information. The length of the configuration type is determined by the specific line data, and the content of the configuration type data corresponds to the line information of each user under the number of users of configuration type 2; Configuration type 4 represents the service long number information. The length of the configuration type is determined by the specific long number data, and the content of the configuration type data corresponds to the long number information of each user under the number of users of configuration type 2; Configuration type 5 represents the service short number information. The length is determined by the specific short number data, and the data content corresponds to the service short number information of each user under the number of users of configuration type 2.
[0061] The number of other host configuration units. This function is an extended function. When used in chain topology or star topology, it is only sent to adjacent devices. After receiving the adjacent device, the configuration information is forwarded to other known ports. In the LAN, the m value can be 0.
[0062] Checksum information is used for frame checking of the entire protocol message frame.
[0063] The present invention only requires PCM devices to participate in protocol messages, and IP-PBX does not need to be upgraded or operated, which simplifies the difficulty of using the protocol. In addition, the PCM device will adaptively obtain the protocol messages of other PCM devices in the local area network. The protocol message adopts the form of a private layer 2 multicast message. The default action of an ordinary switch or router is forwarding, which creates conditions for the intercommunication of networking devices in the local area network. Networking devices can easily capture protocol messages, and non-networking devices are directly discarded by default. The protocol itself can be applied at any time to the situation where devices in non-local area networks are directly interconnected, including star topology, chain topology, ring topology, etc., and the protocol message in this application is used in the disaster recovery mechanism of PCM devices in the local area network.
[0064] Optionally, the specific implementation of step 302 includes:
[0065] The number information corresponding to the dial signaling is compared with the number information of multiple second PCM devices in the parsing database; and the second PCM device corresponding to the number information successfully compared with the number information corresponding to the dial signaling is determined as the target PCM device.
[0066] Specifically, the number information corresponding to the dial signaling is compared with the number information of multiple second PCM devices in the parsing database to determine the number information successfully matched with the number information corresponding to the dial signaling. The second PCM device corresponding to the number information successfully matched with the number information corresponding to the dial signaling is determined as the target PCM device.
[0067] The active mechanism provided by the present invention detects whether the communication link between the first PCM device and the server is abnormal, receives the protocol messages sent by each second PCM device, and parses and processes the protocol messages sent by each second PCM device to obtain a parsing database. When the communication link between the first PCM device and the server is abnormal and the dial-up signaling is obtained, the communication between the first PCM device and the target PCM device can be realized based on the number information corresponding to the dial-up signaling and the number information of multiple second PCM devices in the parsing database, thereby improving the communication efficiency between PCM devices.
[0068] It should be noted that the completion of the active mechanism interaction requires waiting for the detection time with the upper-layer server and waiting for the processing of the protocol messages of multiple second PCM devices. If a dial-up operation is performed during this period, the IP address of the target PCM device cannot be located by the active interaction mechanism alone, resulting in the failure of the call between the first PCM device and the target PCM device. If you want to increase the speed of the active mechanism interaction, you can optimize it by reducing the time spent on connectivity detection with the server, the time spent on protocol message processing and the time spent on protocol message transmission, and by streamlining the data information in the protocol. However, the active mechanism can ensure that all PCM devices in the LAN can complete the interaction of protocol message information.
[0069] Figure 4 is a flow chart of the active interaction mechanism provided by the present invention, such as Figure 4 As shown, it includes steps 401 to 409.
[0070] Step 401, the first PCM detects whether the communication link between the first PCM and the server is abnormal. Specifically, the first PCM device can detect whether the communication link between the first PCM device and the server is abnormal through a ping command, heartbeat detection or SIP interaction.
[0071] Step 402: When the first PCM detects that the communication link between the first PCM and the server is abnormal, the first PCM device sends a protocol message to each second PCM device in the local area network.
[0072] Step 403: Receive the protocol message sent by each second PCM device.
[0073] Step 404: The first PCM device parses the protocol message sent by each second PCM device to obtain the address information and / or number information of each second PCM device.
[0074] Step 405: The first PCM device detects that the communication link between the first PCM device and the server is abnormal, and detects dial-up signaling.
[0075] Step 406: compare the number information corresponding to the dial signaling with the number information of multiple second PCM devices in the analysis database.
[0076] Step 407: when the number information that is successfully matched with the number information corresponding to the dial signaling is matched, the second PCM device corresponding to the number information that is successfully matched with the number information corresponding to the dial signaling is determined as the target PCM device.
[0077] Step 408: If the number information that is successfully matched with the number information corresponding to the dial signaling cannot be matched, a voice prompt is given to the user that the communication link between the server and the user is abnormal.
[0078] Step 409: Send a session protocol call request to the address information corresponding to the target PCM; the session protocol call request is used for session communication between the first PCM device and the target PCM device.
[0079] Optionally, when the communication link between the first PCM device and the server is normal and dial-up signaling sent by the user through a third PCM device is received, it is determined whether the address information of the third PCM device and the address information of the first PCM device belong to the same local area network; based on the judgment result, it is determined whether to send a protocol message to the third PCM device.
[0080] Specifically, when the first PCM device detects that the communication link between the first PCM device and the server is normal, that is, when the IP-PBX is not faulty, the first PCM device will also interact with number service related information.
[0081] When the communication link between the first PCM device and the server is normal and the dial-up signaling sent by the user through the third PCM device is received, it is determined whether the address information of the third PCM device and the address information of the first PCM device belong to the same local area network, that is, whether the address information is located in the same network segment. Based on the determination result, it can be further determined whether to send a protocol message to the third PCM device.
[0082] Optionally, the determining, based on the judgment result, whether to send a protocol message to the third PCM device includes:
[0083] When the judgment result is that the address information of the third PCM device and the address information of the first PCM device belong to the same local area network, judge whether the first PCM has sent number service related information to the third PCM or the number service related information is updated after sending; when the first PCM has not sent number service related information to the third PCM or the number service related information is updated after sending, send a protocol message to the address information of the third PCM device.
[0084] Specifically, when the judgment result is that the address information of the third PCM device and the address information of the first PCM device belong to the same local area network, the third device is the second device at this time. It can be judged whether the first PCM has sent number service related information to the third PCM or whether the number service related information is updated after sending. When the first PCM has not sent number service related information to the third PCM or the number service related information is updated after sending, the first PCM device can send a protocol message to the address information of the third PCM device, wherein the header information of the protocol message points to the address information of the third PCM device, thereby adaptively completing the interaction of number service related information, and then completing the session communication between the first PCM device and the third device.
[0085] Figure 5 is a flow chart of the passive interaction mechanism provided by the present invention, such as Figure 5 As shown, it includes steps 501 to 504.
[0086] Step 501, when the communication link between the first PCM device and the server is normal, wait to receive a dial signaling sent by a user through a third PCM device.
[0087] Step 502, determine whether the address information of the third PCM device and the address information of the first PCM device belong to the same local area network. If the result of the determination is that the address information of the third PCM device and the address information of the first PCM device belong to the same local area network, go to step 503; if the result of the determination is that the address information of the third PCM device and the address information of the first PCM device do not belong to the same local area network, go to step 501.
[0088] Step 503, determine whether the first PCM has sent the number service related information to the third PCM or whether the number service related information is updated after sending. If the first PCM has not sent the number service related information to the third PCM or the number service related information is updated after sending, go to step 504; if the first PCM has sent the number service related information to the third PCM or the number service related information is not updated after sending, go to step 501.
[0089] Step 504: Send a protocol message to the address information of the third PCM device.
[0090] The passive mechanism provided by the present invention can communicate protocol messages between PCM devices when the communication link between the first PCM device and the server is abnormal, for example, an IP-PBX fails, without waiting for the active mechanism to indicate that the first PCM device needs to complete message protocol interaction with other PCM devices in the local area network, thereby improving the efficiency of communication between the first PCM device and the third PCM device.
[0091] The PCM device communication method provided by the present invention can complete the protocol message interaction between PCM devices when the communication link is abnormal or normal through an active mechanism and a passive mechanism, so as to achieve the effect of improving communication efficiency.
[0092] The PCM device communication apparatus provided by the present invention is described below. The PCM device communication apparatus described below and the PCM device communication method described above can be referred to each other.
[0093] Figure 6 Schematic diagram of the structure of the PCM equipment communication device provided by the present invention. Figure 6 As shown, the PCM device communication apparatus 600 is applied to the first PCM device in the local area network and includes: a first construction module 601, a first determination module 602 and a first sending module 603; wherein,
[0094] A first building module 601 is used to build a parsing database when the communication link between the first PCM device and the server is abnormal; the parsing database includes address information and / or number information of at least one second PCM device in the local area network;
[0095] A first determining module 602 is configured to determine a target PCM device from a plurality of second PCM devices based on number information corresponding to the dialing signaling and number information of each second PCM device in the parsing database when the communication link between the first PCM device and the server is abnormal and a dialing signaling of the user is obtained;
[0096] The first sending module 603 is used to send a session protocol call request to the address information corresponding to the target PCM; the session protocol call request is used for session communication between the first PCM device and the target PCM device.
[0097] The PCM device communication device provided by the present invention determines the target PCM device from each second PCM device based on the number information corresponding to the dial-up signaling and the number information of at least one second PCM device in the parsing database when the communication link between the first PCM device and the server is abnormal and the user's dial-up signaling is obtained; the parsing database includes the address information and / or number information of each second PCM device in the local area network; a session protocol call request is sent to the address information corresponding to the target PCM; the session protocol call request is used for session communication between the first PCM device and the target PCM device. By parsing the number information of at least one second PCM device in the database, the session communication between all PCM devices in the local area network is realized through an active mechanism, thereby improving the communication efficiency between PCM devices.
[0098] Optionally, the first building module 601 is specifically used to:
[0099] When the communication link between the first PCM device and the server is abnormal, sending a protocol message to each of the second PCM devices and receiving a protocol message sent by each of the second PCM devices;
[0100] Parsing the protocol message sent by each of the second PCM devices to obtain the address information and / or number information of each of the second PCM devices;
[0101] The resolution database is determined based on the address information and / or number information of each of the second PCM devices.
[0102] Optionally, the first determining module 602 is specifically configured to:
[0103] Comparing the number information corresponding to the dial signaling with the number information of the plurality of second PCM devices in the parsing database;
[0104] The second PCM device corresponding to the number information successfully matched with the number information corresponding to the dial signaling is determined as the target PCM device.
[0105] Optionally, the PCM device communication apparatus 600 further includes:
[0106] a judgment module, configured to judge whether the address information of the third PCM device and the address information of the first PCM device belong to the same local area network when the communication link between the first PCM device and the server is normal and a dial-up signaling sent by a user through a third PCM device is received;
[0107] The second determination module is used to determine whether to send a protocol message to the third PCM device based on the determination result.
[0108] Optionally, the second determining module is specifically configured to:
[0109] If the determination result is that the address information of the third PCM device and the address information of the first PCM device belong to the same local area network, determining whether the first PCM has sent number service related information to the third PCM or whether the number service related information is updated after being sent;
[0110] In a case where the first PCM has not sent the number service related information to the third PCM or the number service related information is updated after being sent, a protocol message is sent to the address information of the third PCM device.
[0111] Optionally, the protocol message includes at least one of the following: header information, configuration unit information, and checksum information.
[0112] Optionally, the header information includes at least one of the following: destination MAC address, source MAC address, private frame header and data length; the configuration unit information includes at least one of the following: address information, number of configuration types, configuration type, configuration type length and configuration type data; the checksum information includes at least one of the following: checksum high bit, checksum second high bit, checksum second low bit and checksum low bit.
[0113] Figure 7 is a schematic diagram of the physical structure of an electronic device provided by the present invention, such as Figure 7As shown, the electronic device may include: a processor 710, a communication interface 720, a memory 730 and a communication bus 740, wherein the processor 710, the communication interface 720 and the memory 730 complete mutual communication through the communication bus 740. The processor 710 may call the logic instructions in the memory 730 to execute the PCM device communication method, the method comprising: in the case that the communication link between the first PCM device and the server is abnormal, constructing a parsing database; the parsing database includes the address information and / or number information of at least one second PCM device in the local area network; in the case that the communication link between the first PCM device and the server is abnormal and the user's dial signaling is obtained, determining the target PCM device from multiple second PCM devices based on the number information corresponding to the dial signaling and the number information of each second PCM device in the parsing database; sending a session protocol call request to the address information corresponding to the target PCM; the session protocol call request is used for session communication between the first PCM device and the target PCM device.
[0114] In addition, the logic instructions in the above-mentioned memory 730 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0115] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the PCM device communication method provided by the above-mentioned methods, the method comprising: in the case where the communication link between the first PCM device and the server is abnormal, constructing a resolution database; the resolution database includes address information and / or number information of at least one second PCM device in the local area network; in the case where the communication link between the first PCM device and the server is abnormal and the user's dial-up signaling is obtained, determining a target PCM device from a plurality of second PCM devices based on the number information corresponding to the dial-up signaling and the number information of each of the second PCM devices in the resolution database; sending a session protocol call request to the address information corresponding to the target PCM; the session protocol call request is used for session communication between the first PCM device and the target PCM device.
[0116] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0117] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0118] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A PCM device communication method, characterized in that: The first PCM device used in a local area network includes: In case that the communication link between the first PCM device and the server is abnormal, constructing a parsing database; the parsing database includes address information and / or number information of at least one second PCM device in the local area network; In the case where the communication link between the first PCM device and the server is abnormal and a dial-up signaling of a user is obtained, determining a target PCM device from a plurality of second PCM devices based on number information corresponding to the dial-up signaling and number information of each second PCM device in the parsing database; Sending a session protocol call request to the address information corresponding to the target PCM; the session protocol call request is used for session communication between the first PCM device and the target PCM device; The step of constructing a parsing database when the communication link between the first PCM device and the server is abnormal includes: When the communication link between the first PCM device and the server is abnormal, sending a protocol message to each of the second PCM devices and receiving a protocol message sent by each of the second PCM devices; Parsing the protocol message sent by each of the second PCM devices to obtain the address information and / or number information of each of the second PCM devices; Determining the parsing database based on the address information and / or number information of each of the second PCM devices; The determining a target PCM device from a plurality of second PCM devices based on the number information corresponding to the dial signaling and the number information of each second PCM device in the parsed database comprises: Comparing the number information corresponding to the dial signaling with the number information of the plurality of second PCM devices in the parsing database; The second PCM device corresponding to the number information successfully matched with the number information corresponding to the dial signaling is determined as the target PCM device.
2. The PCM device communication method according to claim 1, characterized in that: The method further comprises: When the communication link between the first PCM device and the server is normal and a dial-up signaling sent by a user through a third PCM device is received, determining whether the address information of the third PCM device and the address information of the first PCM device belong to the same local area network; Based on the judgment result, it is determined whether to send a protocol message to the third PCM device.
3. The PCM device communication method according to claim 2, characterized in that: The determining, based on the judgment result, whether to send a protocol message to the third PCM device comprises: If the determination result is that the address information of the third PCM device and the address information of the first PCM device belong to the same local area network, determining whether the first PCM has sent number service related information to the third PCM or whether the number service related information is updated after being sent; In a case where the first PCM has not sent the number service related information to the third PCM or the number service related information is updated after being sent, a protocol message is sent to the address information of the third PCM device.
4. The PCM device communication method according to any one of claims 1 to 3, characterized in that: The protocol message includes at least one of the following: header information, configuration unit information, and checksum information.
5. The PCM device communication method according to claim 4, characterized in that: The header information includes at least one of the following: destination MAC address, source MAC address, private frame header and data length; the configuration unit information includes at least one of the following: address information, number of configuration types, configuration type, configuration type length and configuration type data; the checksum information includes at least one of the following: checksum high bit, checksum second high bit, checksum second low bit and checksum low bit.
6. A PCM device communication device, characterized in that: The first PCM device used in a local area network includes: A first building module is used to build a parsing database when the communication link between the first PCM device and the server is abnormal; the parsing database includes address information and / or number information of at least one second PCM device in the local area network; a first determining module, configured to determine a target PCM device from a plurality of second PCM devices based on number information corresponding to the dialing signaling and number information of each second PCM device in the parsing database when a communication link between the first PCM device and the server is abnormal and a dialing signaling of a user is obtained; A first sending module, used for sending a session protocol call request to the address information corresponding to the target PCM; the session protocol call request is used for session communication between the first PCM device and the target PCM device; The first building block is specifically used for: When the communication link between the first PCM device and the server is abnormal, sending a protocol message to each of the second PCM devices and receiving a protocol message sent by each of the second PCM devices; Parsing the protocol message sent by each of the second PCM devices to obtain the address information and / or number information of each of the second PCM devices; Determining the parsing database based on the address information and / or number information of each of the second PCM devices; The first determining module is specifically configured to: Comparing the number information corresponding to the dial signaling with the number information of the plurality of second PCM devices in the parsing database; The second PCM device corresponding to the number information successfully matched with the number information corresponding to the dial signaling is determined as the target PCM device.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the PCM device communication method according to any one of claims 1 to 5 is implemented.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the PCM device communication method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
A monitoring system and method for non-standardized inter-network call
CN101146148A
An SHDSL (Single-pair High bit rate Digital Subscriber Line) data frame processing method and device
CN104506273A
Data transmission in radio telephone net work
CN1130333A
Time division multiplex (TDM) switching system especially for pulse code modulated (PCM) telephony signals
CN88102066A
Voice over internet protocol
US20020114318A1
