WO2012126310A1 - Method and device for processing double tone multi-frequency - Google Patents
Method and device for processing double tone multi-frequency Download PDFInfo
- Publication number
- WO2012126310A1 WO2012126310A1 PCT/CN2012/071625 CN2012071625W WO2012126310A1 WO 2012126310 A1 WO2012126310 A1 WO 2012126310A1 CN 2012071625 W CN2012071625 W CN 2012071625W WO 2012126310 A1 WO2012126310 A1 WO 2012126310A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- dtmf
- current
- event
- processing
- processed
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M7/00—Arrangements for interconnection between switching centres
- H04M7/12—Arrangements for interconnection between switching centres for working between exchanges having different types of switching equipment, e.g. power-driven and step by step or decimal and non-decimal
- H04M7/1205—Arrangements for interconnection between switching centres for working between exchanges having different types of switching equipment, e.g. power-driven and step by step or decimal and non-decimal where the types of switching equipement comprises PSTN/ISDN equipment and switching equipment of networks other than PSTN/ISDN, e.g. Internet Protocol networks
- H04M7/1295—Details of dual tone multiple frequency signalling
Definitions
- the present invention relates to the field of communications, and in particular, to a method for processing DTMF (Double Tone Multi-Frequency) based on RFC 2833 (Request For Comments 2833) message in NGN (Next Generation Network).
- DTMF Double Tone Multi-Frequency
- RFC 2833 Request For Comments 2833
- NGN Next Generation Network
- NGN is a packet-based packet-based network technology.
- the voice media to be sent is encapsulated into an RTP (Real-time Transport Protocol) packet, and the RTP packet is carried in UDP.
- RTP Real-time Transport Protocol
- UDP User Datagram Protocol
- DTMF as a voice signal, including in-band transmission mode and out-of-band transmission mode; the out-of-band transmission mode is generally encapsulated and transmitted in the RTP packet format of the RFC2833 message format, on the one hand, the voice detection work brought by the in-band transmission of the network voice terminal system is alleviated.
- the burden avoids the problem of DTMF error detection by low bit rate codecs such as G.723.1, thereby improving the ability of the voice terminal device to automatically recognize DTMF.
- Internet Protocol Internet Protocol
- the DTMF report may be caused due to transmission errors of the IP network, network congestion, and the like. If the file is lost, a large transmission delay is caused, so that the DTMF that the user hears is discontinuous, or the processing that cannot stop the DTMF normally stops affecting the voice service.
- the processing of the DTMF transmitted by the voice terminal device based on the RFC2833 message format must have the DTMF start event message, the intermediate event message, and the end event message; wherein, when the DTMF duration is short, the intermediate event
- the message may also be absent; for example: the received DTMF is processed only when the start event message is received; the DTMF is continuously processed when the intermediate event message is received, and the intermediate event message is 50 milliseconds or normal voice time. Interval check processing Once; when processing the end event message, stop processing DTMF.
- the DTMF processing method of the voice terminal device in the prior art can correctly process the DTMF when the network condition is good, such as when network congestion and network transmission errors do not occur; however, when the network condition is poor, it is possible
- the problem that the accuracy of the DTMF processing by the voice terminal device is poor due to the loss of the start event message, the intermediate event message, or the end event message. For example, when the start event message is lost, the voice terminal device cannot start normally.
- the received DTMF performs timely processing and reporting; when the intermediate event message is lost or delayed, the voice terminal device delays or stops processing the DTMF, thereby causing discontinuity in processing the DTMF, and having a breakpoint, bringing the user The discontinuous user experience; when the end event message is lost, the voice terminal device continues to process the DTMF, and the DTMF cannot be stopped, thereby affecting the normal voice service.
- the present invention provides a method and apparatus for processing DTMF to improve the accuracy and success rate of processing DTMF.
- Receiving an event message of the current DTMF to be processed determining an event type of the event message; setting a processing state of the current to-be-processed DTMF according to an event type of the event message;
- the processing status of the current to-be-processed DTMF is set according to the event type of the event message:
- the event type of the event message is an intermediate event message
- the event message is described, and the processing state of the current pending DTMF is set according to the judgment result.
- the processing status of the current to-be-processed DTMF is set according to the determination result: when the event message has been recorded, the corresponding event information that has been recorded is updated according to the event information of the event message, and is retained.
- the current processing status of the current DTMF to be processed when the event message is not recorded, determining whether the end timestamp of the current pending DTMF is greater than the current processing timestamp; when greater than, the current pending DTMF
- the processing status is set to the pending status; otherwise, the processing status of the current pending DTMF is set to the ending status.
- the method further includes:
- event information of the event message includes an event value, a power value, a time stamp, a start event flag, an end event flag, and an event width.
- the event type of the event message is an end event message, setting an end timestamp of the current pending DTMF, and storing event information of the event message;
- the event information of the event message is stored.
- the processing the current pending DTMF is:
- the processing state of the current to-be-processed DTMF is a to-be-processed state, initializing a processing function of the current to-be-processed DTMF, and setting a processing state of the current to-be-processed DTMF to a processing state;
- the processing status of the current to-be-processed DTMF is the processing status, it is determined whether the current pending DTMF has an end timestamp, and the current pending DTMF is processed according to the determination result.
- the processing, according to the determination result, the current to-be-processed DTMF is:
- a determining unit configured to receive an event message of the current DTMF to be processed, and determine an event type of the event message
- a setting unit configured to set a processing state of the current to-be-processed DTMF according to an event type of the event message determined by the determining unit;
- a processing unit configured to process the current to-be-processed DTMF according to a processing state of the current to-be-processed DTMF set by the setting unit.
- the setting unit is specifically configured to: when the event type of the event message is a start event message, set the processing state of the current pending DTMF to a pending state; when the event message is When the event type is the end event message, the processing state of the current pending DTMF is set to the end processing state;
- the event type of the event message is an intermediate event message
- the setting unit is specifically configured to:
- the setting unit is further configured to: when event type of the event message is a start event message, store event information of the event message, where the event information includes an event value, a power value, a timestamp,
- the start event flag, the end event flag, and the event width are further configured to: when the event type of the event message is an end event message, set an end timestamp of the current pending DTMF, and store the event message
- the event information is further used to store the event information of the event message when the event type of the event message is an intermediate event message, and the end timestamp of the current pending DTMF is greater than the current processing timestamp.
- the processing unit is specifically configured to:
- the processing state of the current to-be-processed DTMF is a to-be-processed state, initializing a processing function of the current to-be-processed DTMF, and setting a processing state of the current to-be-processed DTMF to a processing state;
- the processing unit is specifically configured to:
- the processing state of the current to-be-processed DTMF is set according to the event type of the event message; Processing the DTMF processing state, processing the current to-be-processed DTMF; adopting the technical solution of the present invention, regardless of whether the current pending DTMF contains one or more event messages (such as a start event message, an intermediate event message, and an end event)
- the one or more of the messages can be processed correspondingly to the current DTMF to be processed, and there is no problem that the DTMF cannot be correctly processed due to the lack of one of the event messages, thereby overcoming the prior art.
- DTMF lacks any one or more of the start event message, intermediate event message, and end event message and cannot correctly handle the DTMF problem, resulting in lower accuracy and success rate of processing DTMF.
- the problem is lower; therefore, the technical solution of the present invention improves the correctness and success rate of processing DTMF.
- FIG. 1 is a flowchart of a method for processing DTMF according to an embodiment of the present invention
- FIG. 2 is a flowchart of a method for setting a processing state of a DTMF in a buffer receiving queue according to an embodiment of the present invention
- FIG. 3 is a flow chart of a method for processing DTMF in a buffer processing queue according to an embodiment of the present invention
- FIG. 4 is a schematic structural diagram of an apparatus for processing DTMF according to an embodiment of the present invention. detailed description
- an embodiment of the present invention provides a method and an apparatus for processing DTMF, so as to improve accuracy and success rate of processing DTMF; the method for processing DTMF includes: receiving a current DTMF to be processed Event message, determine the The event type of the event message; setting the current pending according to the event type of the event message
- the processing state of the DTMF processing the current pending DTMF according to the processing state of the current to-be-processed DTMF.
- the technical solution of the present invention regardless of whether one or more of the event messages included in the current DTMF to be processed, such as one of the start event message, the intermediate event message, and the end event message, the current The DTMF to be processed is processed accordingly, and there is no problem that the DTMF cannot be correctly processed due to the lack of one of the event messages, thereby overcoming the lack of the start event message, the intermediate event message and the end event in the DTMF in the prior art. Any one or more event messages in the message cannot correctly handle the DTMF problem, resulting in a lower accuracy and lower success rate of processing the DTMF. Therefore, the technical solution of the present invention improves the DTMF. The correctness and success rate of the processing.
- FIG. 1 is a flowchart of a method for processing DTMF according to an embodiment of the present invention.
- the method includes: Step 101: Receive an event message of a current DTMF to be processed, and determine an event type of the event message.
- Step 102 Set a processing state of the current to-be-processed DTMF according to an event type of the event message.
- Step 103 Process the current to-be-processed DTMF according to the processing status of the current to-be-processed DTMF.
- the foregoing process step 102 may include: when the event type of the event message is a start event message, setting a processing state of the current to-be-processed DTMF to a pending state (ie, pending); When the event type of the event message is the end event message, the processing status of the current pending DTMF is set to the end processing state (ie, end); when the event type of the event message is an intermediate event message, Determining whether the event message has been recorded, and setting a processing state of the current pending DTMF according to the determination result.
- the setting the processing status of the current to-be-processed DTMF according to the determination result may specifically include: when the event has been recorded If the event message is not recorded, it is determined whether the end timestamp of the current pending DTMF is greater than the current processing timestamp; And, the processing state of the current to-be-processed DTMF is set to a pending state; if not, the processing state of the current to-be-processed DTMF is set to an ending state.
- the step 102 of the foregoing process may further include: when the event type of the event message is a start event message, storing event information of the event message, where the event information includes an event value, a power value, a timestamp, a start event flag, an end event flag, and an event width; when the event type of the event message is an end event message, setting an end timestamp of the current pending DTMF, and storing the event message Event information: When the event type of the event message is an intermediate event message, and the end timestamp of the current pending DTMF is greater than the current processing timestamp, the event information of the event message is stored.
- the foregoing process step 103 may specifically include: when the processing state of the current to-be-processed DTMF is a waiting processing state, initializing a processing function of the current to-be-processed DTMF, and setting a processing state of the current to-be-processed DTMF to The processing status is being processed; when the processing status of the current to-be-processed DTMF is the processing status, determining whether the current pending DTMF has an end timestamp, and processing the current to-be-processed DTMF according to the determination result.
- the processing the current to-be-processed DTMF according to the determination result may include: when it is determined that the timestamp is not ended and the intermediate event of the current to-be-processed DTMF is received within the set time threshold, continuing to process the The current DTMF to be processed, where the time threshold can be set to 50 milliseconds according to the empirical value; when it is determined that the timestamp is not ended and the intermediate event of the current pending DTMF is not received within the set time threshold Determining whether the event width of the current pending DTMF exceeds a set event width threshold, where the event width threshold may be set to 8 seconds according to an empirical value; if yes, stopping processing the current pending DTMF, if not, Then continue to process the current pending DTMF; when it is determined that there is an end timestamp, judge Whether the current processing timestamp reaches the end timestamp of the current pending DTMF, if it arrives, stops processing the current to-be-processed DTMF, and
- the buffer receiving queue can be used to implement steps 101 to 102 in the above process, and the buffer processing queue is used to implement step 103 in the above process.
- the buffer receiving queue stores the event information of the event message when it is determined that the event message is a start event message, and sets the processing state of the corresponding DTMF to If the event message is an intermediate event message, the following processing is performed: According to the RTP timestamp of the intermediate event message, if the event message has been recorded in the buffer receiving queue, according to the intermediate event message The event information updates the corresponding event information that has been stored, and sets the processing status of the corresponding DTMF to working; if the event message is not recorded in the buffer receiving queue, it is determined that the end time stamp of the current pending DTMF is obtained.
- the processing state of the current pending DTMF is set to pending, otherwise, the processing state of the current pending DTMF is set to end.
- the buffer processing queue periodically or periodically views the buffer receiving queue.
- the buffer processing queue When the processing status of the DTMF currently needing to be processed in the buffer receiving queue is pending, the buffer processing queue initializes the processing function of the DTMF, and the processing status of the DTMF is Set to working; when the processing status of the DTMF currently needing to be processed in the buffer receiving queue is working, determine whether the DTMF has an end timestamp, if there is no end timestamp and the DTMF is not received within the set time threshold In the intermediate event message, it is determined whether the event width according to the DTMF reaches the set event width threshold.
- the set event width threshold is an empirical value of 8 seconds, if the event width threshold is reached, the processing of the DTMF is stopped, and the The processing state of DTMF is set to end, and if the time width threshold is not reached, DTMF continues to be processed.
- Step 201 The buffer receiving queue receives the event packet, and stores the received event packet.
- Step 202 Determine, according to an event flag bit of the event message, an event type of the event message.
- Step 203 When the event type of the event message is a start event message, the event information of the event message is written into the buffer, and the processing state of the corresponding DTMF is set to pending.
- Step 204 When the event type of the event packet is an intermediate event packet, determine whether the event packet has been recorded in the buffer receiving queue. If yes, go to step 206. Otherwise, go to step 207.
- Step 205 When the event type of the event message is an end event message, write event information of the event message into a buffer, and set a processing state of the corresponding DTMF to end, and mark the event End timestamp of DTMF, go to step 210.
- Step 206 Update the timestamp and the event width of the DTMF according to the event information of the event message, and perform step 210.
- Step 207 Determine whether the current timestamp of the DTMF is greater than a current processing timestamp. If yes, go to step 208. Otherwise, go to step 209.
- Step 208 Write the event information of the event message into the buffer, and set the processing status of the corresponding DTMF to pending, and perform step 210.
- Step 209 Discard the DTMF.
- Step 210 ending the process.
- FIG. 3 it is a flowchart of a method for processing DTMF in a buffer processing queue according to an embodiment of the present invention, where the method includes:
- Step 301 View the buffer receiving queue periodically or periodically, and determine the DTMF currently needed to be processed in the buffer receiving queue.
- Step 302 Determine a current processing status of the DTMF.
- Step 303 When the processing state of the DTMF is pending, initialize the processing function of the DTMF, and set the processing state of the DTMF to working, and perform step 301.
- Step 304 When the processing state of the DTMF is working, process the DTMF, and determine whether the DTMF has an end timestamp. If not, execute step 305. Otherwise, go to step 307.
- Step 305 Determine whether the intermediate event message of the DTMF is received within the set time threshold. If yes, execute step 301; otherwise, perform step 306.
- Step 306 Determine whether the event width of the DTMF reaches the set event width threshold. If yes, execute step 308. Otherwise, perform step 301.
- Step 307 Determine whether the current processing timestamp of the DTMF is processed to reach the end timestamp of the DTMF, and if yes, execute step 308; otherwise, perform step 301.
- Step 308 Stop processing the DTMF, and set the processing state of the DTMF to end. Step 309, ending the process.
- the embodiment of the present invention further provides a device for processing DTMF, and the structure of the device is as shown in FIG.
- FIG. 4 is a schematic structural diagram of an apparatus for processing a DTMF according to an embodiment of the present invention, including: a determining unit 41, configured to receive an event message of a current DTMF to be processed, and determine an event type of the event message;
- the setting unit 42 is configured to set a processing state of the current to-be-processed DTMF according to an event type of the event message determined by the determining unit 41;
- the processing unit 43 is configured to process the current to-be-processed DTMF according to the processing status of the current to-be-processed DTMF set by the setting unit 42.
- the setting unit 42 is specifically configured to: when the event type of the event message is a start event message, set a processing state of the current to-be-processed DTMF to a pending state;
- the current pending The processing state of the DTMF is set to the end processing state
- the event type of the event message is an intermediate event message
- the setting unit 42 sets the processing state of the current to-be-processed DTMF according to the determination result, specifically for:
- the setting unit 42 is further configured to: when the event type of the event message is a start event message, storing event information of the event message, where the event information includes an event value, a power value, a time stamp, and a start event flag. And ending the event flag and the event width; and when the event type of the event message is an end event message, setting an end timestamp of the current pending DTMF, and storing event information of the event message; And when the event type of the event message is an intermediate event message, and the end timestamp of the current pending DTMF is greater than the current processing timestamp, the event information of the event message is stored.
- the processing unit 43 is specifically configured to: when the processing state of the current to-be-processed DTMF is a waiting processing state, initialize a processing function of the current to-be-processed DTMF, and the current to-be-processed DTMF The processing status is set to the processing status;
- the processing unit 43 processes the current to-be-processed DTMF according to the determination result, specifically for: When it is judged that there is no end time stamp and the current pending processing is received within the set time threshold
- the processing state of the current to-be-processed DTMF is set according to the event type of the event message; Processing the DTMF processing state, processing the current to-be-processed DTMF; adopting the technical solution of the present invention, regardless of whether the current pending DTMF contains one or more event messages, such as a start event message, an intermediate event message, and an end event.
- One or more of the messages can perform corresponding processing on the current pending DTMF, and there is no problem that the DTMF cannot be correctly processed due to the lack of one of the event messages, thereby overcoming the prior art in DTMF.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Disclosed are a method and device for processing Double Tone Multi-Frequency (DTMF), so as to improve accuracy and success rate for processing DTMF. The method comprises: receiving an event message of DTMF currently to be processed, and determining an event type of the event message; setting, according to the event type of the event message, a processing status of the DTMF currently to be processed; and processing, according to the processing status of the DTMF currently to be processed, the DTMF currently to be processed. By use of the technical solution of the present invention, the accuracy and success rate for processing the DTMF are improved.
Description
一种处理双音多频的方法及装置 技术领域 Method and device for processing dual-tone multi-frequency
本发明涉及通信领域, 尤其涉及对 NGN ( Next Generation Network, 下 一代通信网络)中基于 RFC2833( Request For Comments 2833 )报文的 DTMF ( Double Tone Multi-Frequency , 双音多频)进行处理的方法及装置。 背景技术 The present invention relates to the field of communications, and in particular, to a method for processing DTMF (Double Tone Multi-Frequency) based on RFC 2833 (Request For Comments 2833) message in NGN (Next Generation Network). Device. Background technique
NGN是基于分组包交换的网络技术, 在 NGN中发送语音媒体时, 将 需要发送的语音媒体封装成 RTP ( Real-time Transport Protocol, 实时传输协 议)数据包, 并将该 RTP数据包承载在 UDP ( User Datagram Protocol, 用 户数据协议)报文中进行传输。 DTMF作为语音信号, 包括带内传送方式 和带外传送方式; 带外传送方式一般以 RFC2833报文格式的 RTP报文封 装传送, 一方面减轻网络语音终端系统的带内传输带来的语音检测工作负 担, 另一方面避免如 G.723.1等低比特率编解码器错误检测 DTMF的问题, 从而提高语音终端设备自动识别 DTMF的能力。但是在 IP( Internet Protocol, 因特网协议)电话中,当要传输对可靠性要求较高并以 RFC2833格式存在的 DTMF分组数据报文时, 由于 IP网络传输差错、 网络拥塞等原因而可能导 致 DTMF报文丟失, 带来较大的传输延时, 从而会使用户听到的 DTMF不 连续、 或者不能正常停止 DTMF的处理影响语音业务。 NGN is a packet-based packet-based network technology. When transmitting voice media in NGN, the voice media to be sent is encapsulated into an RTP (Real-time Transport Protocol) packet, and the RTP packet is carried in UDP. (User Datagram Protocol, User Data Protocol) is transmitted in the message. DTMF as a voice signal, including in-band transmission mode and out-of-band transmission mode; the out-of-band transmission mode is generally encapsulated and transmitted in the RTP packet format of the RFC2833 message format, on the one hand, the voice detection work brought by the in-band transmission of the network voice terminal system is alleviated. The burden, on the other hand, avoids the problem of DTMF error detection by low bit rate codecs such as G.723.1, thereby improving the ability of the voice terminal device to automatically recognize DTMF. However, in an Internet Protocol (Internet Protocol), when a DTMF packet data message with high reliability and existing RFC2833 format is to be transmitted, the DTMF report may be caused due to transmission errors of the IP network, network congestion, and the like. If the file is lost, a large transmission delay is caused, so that the DTMF that the user hears is discontinuous, or the processing that cannot stop the DTMF normally stops affecting the voice service.
目前,语音终端设备对基于 RFC2833报文格式传输的 DTMF的处理必 须有该 DTMF的开始事件报文、 中间事件报文和结束事件报文; 其中, 当 DTMF持续时间较短时, 所述中间事件报文也可以没有; 如: 在接收到开 始事件报文时才对接收到的 DTMF进行处理; 在接收到中间事件报文时持 续处理该 DTMF, 中间事件报文以 50毫秒或普通语音的时间间隔查验处理
一次; 在接收到结束事件报文时, 停止处理 DTMF。 现有技术中语音终端 设备的这种处理 DTMF的方式, 在网络状况较好, 如不发生网络拥塞和网 络传输差错的情况时, 能够正确地处理 DTMF; 但是, 在网络状况较差时, 可能会由于开始事件报文、 中间事件报文或结束事件报文丟失而导致语音 终端设备对 DTMF处理的准确性较差问题出现, 例如当开始事件报文丟失 时,语音终端设备则无法正常开始对接收到的 DTMF进行及时处理和上报; 当中间事件报文丟失或延迟时, 语音终端设备则延迟或停止处理该 DTMF, 从而导致对 DTMF进行处理的不连续性, 存在断点, 给用户带来不连续的 用户感受; 当结束事件报文丟失时, 语音终端设备一直持续对该 DTMF进 行处理, 无法对该 DTMF进行停止处理, 从而或影响正常的语音业务。 发明内容 At present, the processing of the DTMF transmitted by the voice terminal device based on the RFC2833 message format must have the DTMF start event message, the intermediate event message, and the end event message; wherein, when the DTMF duration is short, the intermediate event The message may also be absent; for example: the received DTMF is processed only when the start event message is received; the DTMF is continuously processed when the intermediate event message is received, and the intermediate event message is 50 milliseconds or normal voice time. Interval check processing Once; when processing the end event message, stop processing DTMF. The DTMF processing method of the voice terminal device in the prior art can correctly process the DTMF when the network condition is good, such as when network congestion and network transmission errors do not occur; however, when the network condition is poor, it is possible The problem that the accuracy of the DTMF processing by the voice terminal device is poor due to the loss of the start event message, the intermediate event message, or the end event message. For example, when the start event message is lost, the voice terminal device cannot start normally. The received DTMF performs timely processing and reporting; when the intermediate event message is lost or delayed, the voice terminal device delays or stops processing the DTMF, thereby causing discontinuity in processing the DTMF, and having a breakpoint, bringing the user The discontinuous user experience; when the end event message is lost, the voice terminal device continues to process the DTMF, and the DTMF cannot be stopped, thereby affecting the normal voice service. Summary of the invention
针对现有技术存在的上述技术问题, 本发明实施例提供一种处理 DTMF的方法及装置, 以提高处理 DTMF的准确性和成功率。 The present invention provides a method and apparatus for processing DTMF to improve the accuracy and success rate of processing DTMF.
一种处理双音多频(DTMF ) 的方法, 包括: A method of processing dual tone multi-frequency (DTMF), including:
接收当前待处理 DTMF的事件报文,确定出所述事件报文的事件类型; 根据所述事件报文的事件类型设置所述当前待处理 DTMF 的处理状 态; Receiving an event message of the current DTMF to be processed, determining an event type of the event message; setting a processing state of the current to-be-processed DTMF according to an event type of the event message;
根据所述当前待处理 DTMF的处理状态,处理所述当前待处理 DTMF。 其中, 所述根据所述事件报文的事件类型设置所述当前待处理 DTMF 的处理状态为: And processing the current to-be-processed DTMF according to the processing state of the current to-be-processed DTMF. The processing status of the current to-be-processed DTMF is set according to the event type of the event message:
当所述事件报文的事件类型为开始事件报文时, 将所述当前待处理 DTMF的处理状态设置为待处理状态; And when the event type of the event message is a start event message, setting a processing state of the current to-be-processed DTMF to a pending state;
当所述事件报文的事件类型为结束事件报文时, 将所述当前待处理 DTMF的处理状态设置为结束处理状态; And when the event type of the event message is an end event message, setting a processing state of the current to-be-processed DTMF to an end processing state;
当所述事件报文的事件类型为中间事件报文时, 判断是否已经记录所
述事件报文, 并根据判断结果设置所述当前待处理 DTMF的处理状态。 其中, 所述根据判断结果设置所述当前待处理 DTMF的处理状态为: 当已经记录所述事件报文时, 根据所述事件报文的事件信息, 更新已 经记录的相应的事件信息,并保留所述当前待处理 DTMF的正在处理状态; 当未记录所述事件报文时, 判断所述当前待处理 DTMF的结束时间戳 是否大于当前处理时间戳; 当大于时, 将所述当前待处理 DTMF的处理状 态设置为待处理状态; 否则, 将所述当前待处理 DTMF的处理状态设置为 结束状态。 When the event type of the event message is an intermediate event message, it is determined whether the record has been recorded. The event message is described, and the processing state of the current pending DTMF is set according to the judgment result. The processing status of the current to-be-processed DTMF is set according to the determination result: when the event message has been recorded, the corresponding event information that has been recorded is updated according to the event information of the event message, and is retained. The current processing status of the current DTMF to be processed; when the event message is not recorded, determining whether the end timestamp of the current pending DTMF is greater than the current processing timestamp; when greater than, the current pending DTMF The processing status is set to the pending status; otherwise, the processing status of the current pending DTMF is set to the ending status.
进一步地, 所述方法还包括: Further, the method further includes:
当所述事件报文的事件类型为开始事件报文时, 存储所述事件报文的 事件信息, 所述事件信息包括事件值、 功率值、 时间戳、 开始事件标志、 结束事件标志和事件宽度; When the event type of the event message is a start event message, storing event information of the event message, where the event information includes an event value, a power value, a time stamp, a start event flag, an end event flag, and an event width. ;
当所述事件报文的事件类型为结束事件报文时, 设置所述当前待处理 DTMF的结束时间戳, 并存储所述事件报文的事件信息; When the event type of the event message is an end event message, setting an end timestamp of the current pending DTMF, and storing event information of the event message;
当所述事件报文的事件类型为中间事件报文,且所述当前待处理 DTMF 的结束时间戳大于当前处理时间戳时, 存储所述事件报文的事件信息。 When the event type of the event message is an intermediate event message, and the end timestamp of the current pending DTMF is greater than the current processing timestamp, the event information of the event message is stored.
其中, 所述处理所述当前待处理 DTMF为: The processing the current pending DTMF is:
当所述当前待处理 DTMF的处理状态为待处理状态时, 初始化所述当 前待处理 DTMF的处理函数, 并将所述当前待处理 DTMF的处理状态设置 为正在处理状态; And when the processing state of the current to-be-processed DTMF is a to-be-processed state, initializing a processing function of the current to-be-processed DTMF, and setting a processing state of the current to-be-processed DTMF to a processing state;
当所述当前待处理 DTMF的处理状态为正在处理状态时, 判断所述当 前待处理 DTMF是否有结束时间戳, 并根据判断结果处理所述当前待处理 DTMF。 When the processing status of the current to-be-processed DTMF is the processing status, it is determined whether the current pending DTMF has an end timestamp, and the current pending DTMF is processed according to the determination result.
其中, 所述根据判断结果处理所述当前待处理 DTMF为: The processing, according to the determination result, the current to-be-processed DTMF is:
当判断没有结束时间戳且在设定的时间阈值内接收到所述当前待处理
DTMF的中间事件报文时, 继续处理所述当前待处理 DTMF; 当判断没有结束时间戳且在设定的时间阈值内未接收到所述当前待处 理 DTMF的中间事件报文时, 判断所述当前待处理 DTMF的事件宽度是否 超过设置的事件宽度阈值; 当超过时, 停止处理所述当前待处理 DTMF, 否则, 继续处理所述当前待处理 DTMF; When it is judged that there is no end time stamp and the current pending processing is received within the set time threshold When the intermediate event message of the DTMF is sent, the current pending DTMF is processed; when it is determined that the timestamp is not ended and the intermediate event message of the current pending DTMF is not received within the set time threshold, the Whether the current event width of the DTMF to be processed exceeds the set event width threshold; when it is exceeded, the current pending DTMF is stopped, otherwise, the current pending DTMF is processed;
当判断有结束时间戳时, 判断当前处理时间戳是否到达所述当前待处 理 DTMF的结束时间戳, 当到达时, 停止处理所述当前待处理 DTMF, 当 未到达时, 继续处理所述当前待处理 DTMF。 When it is determined that there is an end timestamp, it is determined whether the current processing timestamp reaches the end timestamp of the current pending DTMF, and when it arrives, the current pending DTMF is stopped, and when it does not arrive, the current pending processing is continued. Process DTMF.
一种处理双音多频(DTMF ) 的装置, 包括: A device for processing dual tone multi-frequency (DTMF), comprising:
确定单元, 用于接收当前待处理 DTMF的事件报文, 确定出所述事件 报文的事件类型; a determining unit, configured to receive an event message of the current DTMF to be processed, and determine an event type of the event message;
设置单元, 用于根据所述确定单元确定出的所述事件报文的事件类型, 设置所述当前待处理 DTMF的处理状态; a setting unit, configured to set a processing state of the current to-be-processed DTMF according to an event type of the event message determined by the determining unit;
处理单元, 用于根据所述设置单元设置的所述当前待处理 DTMF的处 理状态, 处理所述当前待处理 DTMF。 And a processing unit, configured to process the current to-be-processed DTMF according to a processing state of the current to-be-processed DTMF set by the setting unit.
其中, 所述设置单元, 具体用于: 当所述事件报文的事件类型为开始 事件报文时, 将所述当前待处理 DTMF的处理状态设置为待处理状态; 当所述事件报文的事件类型为结束事件报文时, 将所述当前待处理 DTMF的处理状态设置为结束处理状态; The setting unit is specifically configured to: when the event type of the event message is a start event message, set the processing state of the current pending DTMF to a pending state; when the event message is When the event type is the end event message, the processing state of the current pending DTMF is set to the end processing state;
当所述事件报文的事件类型为中间事件报文时, 判断是否已经记录所 述事件报文, 并根据判断结果设置所述当前待处理 DTMF的处理状态。 When the event type of the event message is an intermediate event message, it is determined whether the event message has been recorded, and the processing state of the current to-be-processed DTMF is set according to the determination result.
其中, 所述设置单元, 具体用于: The setting unit is specifically configured to:
当已经记录所述事件报文时, 根据所述事件报文的事件信息, 更新已 经记录的相应的事件信息,并保留所述当前待处理 DTMF的正在处理状态; 当未记录所述事件报文时, 判断所述当前待处理 DTMF的结束时间戳
是否大于当前处理时间戳; 当大于时, 将所述当前待处理 DTMF的处理状 态设置为待处理状态; 否则, 将所述当前待处理 DTMF的处理状态设置为 结束状态。 When the event message has been recorded, update the corresponding event information that has been recorded according to the event information of the event message, and retain the current processing status of the currently pending DTMF; when the event message is not recorded Determining an end time stamp of the current pending DTMF Whether it is greater than the current processing timestamp; when it is greater, the processing state of the current to-be-processed DTMF is set to a pending state; otherwise, the processing state of the current to-be-processed DTMF is set to an ending state.
其中, 所述设置单元进一步用于, 在所述事件报文的事件类型为开始 事件报文时, 存储所述事件报文的事件信息, 所述事件信息包括事件值、 功率值、 时间戳、 开始事件标志、 结束事件标志和事件宽度; 还用于在所 述事件报文的事件类型为结束事件报文时, 设置所述当前待处理 DTMF的 结束时间戳, 并存储所述事件报文的事件信息; 还用于在所述事件报文的 事件类型为中间事件报文, 且所述当前待处理 DTMF的结束时间戳大于当 前处理时间戳时, 则存储所述事件报文的事件信息。 The setting unit is further configured to: when event type of the event message is a start event message, store event information of the event message, where the event information includes an event value, a power value, a timestamp, The start event flag, the end event flag, and the event width are further configured to: when the event type of the event message is an end event message, set an end timestamp of the current pending DTMF, and store the event message The event information is further used to store the event information of the event message when the event type of the event message is an intermediate event message, and the end timestamp of the current pending DTMF is greater than the current processing timestamp.
其中, 所述处理单元, 具体用于: The processing unit is specifically configured to:
当所述当前待处理 DTMF的处理状态为待处理状态时, 初始化所述当 前待处理 DTMF的处理函数, 并将所述当前待处理 DTMF的处理状态设置 为正在处理状态; And when the processing state of the current to-be-processed DTMF is a to-be-processed state, initializing a processing function of the current to-be-processed DTMF, and setting a processing state of the current to-be-processed DTMF to a processing state;
当所述当前待处理 DTMF的处理状态为正在处理状态时, 判断所述当 前待处理 DTMF是否有结束时间戳, 并根据判断结果处理所述当前待处理 DTM F。 When the processing status of the current to-be-processed DTMF is in the processing state, it is determined whether the current pending DTMF has an end timestamp, and the current to-be-processed DTM F is processed according to the determination result.
其中, 所述处理单元具体用于: The processing unit is specifically configured to:
当判断没有结束时间戳且在设定的时间阈值内接收到所述当前待处理 DTMF的中间事件报文时, 继续处理所述当前待处理 DTMF; When it is determined that there is no end timestamp and the intermediate event message of the current to-be-processed DTMF is received within the set time threshold, the current pending DTMF is processed;
当判断没有结束时间戳且在设定的时间阈值内未接收到所述当前待处 理 DTMF的中间事件报文时, 判断所述当前待处理 DTMF的事件宽度是否 超过设置的事件宽度阈值; 当超时时, 停止处理所述当前待处理 DTMF, 否则, 继续处理所述当前待处理 DTMF; When it is determined that there is no end timestamp and the intermediate event message of the current pending DTMF is not received within the set time threshold, it is determined whether the event width of the current pending DTMF exceeds the set event width threshold; Temporarily stopping processing the current pending DTMF, otherwise, continuing to process the current pending DTMF;
当判断有结束时间戳时, 判断当前处理时间戳是否到达所述当前待处
理 DTMF的结束时间戳, 当到达时, 停止处理所述当前待处理 DTMF, 当 未到达时, 继续处理所述当前待处理 DTMF。 When it is determined that there is an end timestamp, it is determined whether the current processing timestamp reaches the current waiting time The end timestamp of the DTMF, when it arrives, stops processing the current pending DTMF, and when it does not arrive, continues to process the current pending DTMF.
本发明实施例中 ,针对当前待处理 DTMF,在接收到当前待处理 DTMF 的事件报文时, 根据该事件报文的事件类型设置所述当前待处理 DTMF的 处理状态; 并根据所述当前待处理 DTMF的处理状态, 处理所述当前待处 理 DTMF; 采用本发明技术方案, 不管当前待处理 DTMF所包含的事件报 文为一个还是多个(如开始事件报文、 中间事件报文和结束事件报文中的 一个或多个),都可以对该当前待处理 DTMF进行相应的处理, 不存在由于 缺少其中一个事件报文而无法对 DTMF进行正确处理的问题, 从而克服了 现有技术中在 DTMF中缺少开始事件报文、 中间事件报文和结束事件报文 中的任意一个或多个事件 4艮文而不能正确处理 DTMF的问题, 从而导致对 DTMF进行处理的准确性较低和成功率较低的问题; 因此采用本发明技术 方案, 提高了对 DTMF进行处理的正确性和成功率。 附图说明 In the embodiment of the present invention, for the current DTMF to be processed, when the event message of the current DTMF to be processed is received, the processing state of the current to-be-processed DTMF is set according to the event type of the event message; Processing the DTMF processing state, processing the current to-be-processed DTMF; adopting the technical solution of the present invention, regardless of whether the current pending DTMF contains one or more event messages (such as a start event message, an intermediate event message, and an end event) The one or more of the messages can be processed correspondingly to the current DTMF to be processed, and there is no problem that the DTMF cannot be correctly processed due to the lack of one of the event messages, thereby overcoming the prior art. DTMF lacks any one or more of the start event message, intermediate event message, and end event message and cannot correctly handle the DTMF problem, resulting in lower accuracy and success rate of processing DTMF. The problem is lower; therefore, the technical solution of the present invention improves the correctness and success rate of processing DTMF. DRAWINGS
图 1为本发明实施例中处理 DTMF的方法流程图; 1 is a flowchart of a method for processing DTMF according to an embodiment of the present invention;
图 2为本发明实施例中在緩沖区接收队列中设置 DTMF的处理状态的 方法流程图; 2 is a flowchart of a method for setting a processing state of a DTMF in a buffer receiving queue according to an embodiment of the present invention;
图 3 为本发明实施例中在緩沖区处理队列中处理 DTMF 的方法流程 图; 3 is a flow chart of a method for processing DTMF in a buffer processing queue according to an embodiment of the present invention;
图 4 为本发明实施例中处理 DTMF的装置的结构示意图。 具体实施方式 FIG. 4 is a schematic structural diagram of an apparatus for processing DTMF according to an embodiment of the present invention. detailed description
针对现有技术存在的上述技术问题, 本发明实施例提供一种处理 DTMF的方法及其装置, 以提高对 DTMF进行处理的准确性和成功率; 该 处理 DTMF的方法包括: 接收当前待处理 DTMF的事件报文, 确定出所述
事件报文的事件类型; 根据所述事件报文的事件类型设置所述当前待处理For the above technical problem existing in the prior art, an embodiment of the present invention provides a method and an apparatus for processing DTMF, so as to improve accuracy and success rate of processing DTMF; the method for processing DTMF includes: receiving a current DTMF to be processed Event message, determine the The event type of the event message; setting the current pending according to the event type of the event message
DTMF的处理状态; 根据所述当前待处理 DTMF的处理状态, 处理所述当 前待处理 DTMF。 采用本发明技术方案, 不管当前待处理 DTMF所包含的 事件报文为一个还是多个, 如开始事件报文、 中间事件报文和结束事件报 文中的一个或多个, 都可以对该当前待处理 DTMF进行相应的处理, 不存 在由于缺少其中一个事件报文而无法对 DTMF进行正确处理的问题, 从而 克服了现有技术中在 DTMF中缺少开始事件报文、 中间事件报文和结束事 件报文中的任意一个或多个事件报文而不能正确处理 DTMF的问题, 从而 导致对 DTMF进行处理的准确性较低和成功率较低的问题; 因此采用本发 明技术方案, 提高了对 DTMF进行处理的正确性和成功率。 The processing state of the DTMF; processing the current pending DTMF according to the processing state of the current to-be-processed DTMF. According to the technical solution of the present invention, regardless of whether one or more of the event messages included in the current DTMF to be processed, such as one of the start event message, the intermediate event message, and the end event message, the current The DTMF to be processed is processed accordingly, and there is no problem that the DTMF cannot be correctly processed due to the lack of one of the event messages, thereby overcoming the lack of the start event message, the intermediate event message and the end event in the DTMF in the prior art. Any one or more event messages in the message cannot correctly handle the DTMF problem, resulting in a lower accuracy and lower success rate of processing the DTMF. Therefore, the technical solution of the present invention improves the DTMF. The correctness and success rate of the processing.
下面结合说明书附图对本发明技术方案进行详细的描述。 The technical solution of the present invention will be described in detail below with reference to the accompanying drawings.
参见图 1 , 为本发明实施例中处理 DTMF的方法流程图, 该方法包括: 步驟 101、 接收当前待处理 DTMF的事件报文, 确定出所述事件报文 的事件类型。 FIG. 1 is a flowchart of a method for processing DTMF according to an embodiment of the present invention. The method includes: Step 101: Receive an event message of a current DTMF to be processed, and determine an event type of the event message.
步驟 102、 根据所述事件报文的事件类型设置所述当前待处理 DTMF 的处理状态。 Step 102: Set a processing state of the current to-be-processed DTMF according to an event type of the event message.
步驟 103、 根据所述当前待处理 DTMF的处理状态, 处理所述当前待 处理 DTMF。 Step 103: Process the current to-be-processed DTMF according to the processing status of the current to-be-processed DTMF.
较佳地, 上述流程步驟 102具体可包括: 当所述事件报文的事件类型 为开始事件报文时, 将所述当前待处理 DTMF的处理状态设置为待处理状 态 (即 pending ); 当所述事件报文的事件类型为结束事件报文时, 将所述 当前待处理 DTMF的处理状态设置为结束处理状态(即 end ); 当所述事件 报文的事件类型为中间事件报文时, 判断是否已经记录所述事件报文, 并 根据判断结果设置所述当前待处理 DTMF的处理状态。 所述根据判断结果 设置所述当前待处理 DTMF的处理状态, 可具体包括: 当已经记录所述事
件报文时, 保留所述当前待处理 DTMF的正在处理状态 (即 working ); 当 未记录所述事件报文时, 判断所述当前待处理 DTMF的结束时间戳是否大 于当前处理时间戳; 若是, 则将所述当前待处理 DTMF的处理状态设置为 待处理状态; 若否, 则将所述当前待处理 DTMF的处理状态设置为结束状 态。 Preferably, the foregoing process step 102 may include: when the event type of the event message is a start event message, setting a processing state of the current to-be-processed DTMF to a pending state (ie, pending); When the event type of the event message is the end event message, the processing status of the current pending DTMF is set to the end processing state (ie, end); when the event type of the event message is an intermediate event message, Determining whether the event message has been recorded, and setting a processing state of the current pending DTMF according to the determination result. The setting the processing status of the current to-be-processed DTMF according to the determination result may specifically include: when the event has been recorded If the event message is not recorded, it is determined whether the end timestamp of the current pending DTMF is greater than the current processing timestamp; And, the processing state of the current to-be-processed DTMF is set to a pending state; if not, the processing state of the current to-be-processed DTMF is set to an ending state.
较佳地, 上述流程的步驟 102还可包括: 当所述事件报文的事件类型 为开始事件报文时, 存储所述事件报文的事件信息, 所述事件信息包括事 件值、 功率值、 时间戳、 开始事件标志、 结束事件标志和事件宽度; 当所 述事件报文的事件类型为结束事件报文时, 设置所述当前待处理 DTMF的 结束时间戳, 并存储所述事件报文的事件信息; 当所述事件报文的事件类 型为中间事件报文, 且所述当前待处理 DTMF的结束时间戳大于当前处理 时间戳时, 则存储所述事件报文的事件信息。 Preferably, the step 102 of the foregoing process may further include: when the event type of the event message is a start event message, storing event information of the event message, where the event information includes an event value, a power value, a timestamp, a start event flag, an end event flag, and an event width; when the event type of the event message is an end event message, setting an end timestamp of the current pending DTMF, and storing the event message Event information: When the event type of the event message is an intermediate event message, and the end timestamp of the current pending DTMF is greater than the current processing timestamp, the event information of the event message is stored.
上述流程步驟 103中, 具体可包括: 当所述当前待处理 DTMF的处理 状态为等待处理状态时, 初始化所述当前待处理 DTMF的处理函数, 并将 所述当前待处理 DTMF的处理状态设置为正在处理状态; 当所述当前待处 理 DTMF的处理状态为正在处理状态时, 判断所述当前待处理 DTMF是否 有结束时间戳, 并根据判断结果处理所述当前待处理 DTMF。 The foregoing process step 103 may specifically include: when the processing state of the current to-be-processed DTMF is a waiting processing state, initializing a processing function of the current to-be-processed DTMF, and setting a processing state of the current to-be-processed DTMF to The processing status is being processed; when the processing status of the current to-be-processed DTMF is the processing status, determining whether the current pending DTMF has an end timestamp, and processing the current to-be-processed DTMF according to the determination result.
所述根据判断结果处理所述当前待处理 DTMF, 可包括: 当判断没有 结束时间戳且在设定的时间阈值内接收到所述当前待处理 DTMF的中间事 件才艮文时, 继续处理所述当前待处理 DTMF, 这里, 所述时间阈值可以根 据经验值设置为 50毫秒; 当判断没有结束时间戳且在设定的时间阈值内未 接收到所述当前待处理 DTMF 的中间事件才艮文时, 判断所述当前待处理 DTMF 的事件宽度是否超过设置的事件宽度阈值, 这里, 所述事件宽度阈 值可根据经验值设置为 8秒; 若是, 则停止处理所述当前待处理 DTMF, 若否, 则继续处理所述当前待处理 DTMF; 当判断有结束时间戳时, 判断
当前处理时间戳是否到达所述当前待处理 DTMF的结束时间戳, 若到达, 则停止处理所述当前待处理 DTMF, 若未到达, 则继续处理所述当前待处 理 DTMF。 The processing the current to-be-processed DTMF according to the determination result may include: when it is determined that the timestamp is not ended and the intermediate event of the current to-be-processed DTMF is received within the set time threshold, continuing to process the The current DTMF to be processed, where the time threshold can be set to 50 milliseconds according to the empirical value; when it is determined that the timestamp is not ended and the intermediate event of the current pending DTMF is not received within the set time threshold Determining whether the event width of the current pending DTMF exceeds a set event width threshold, where the event width threshold may be set to 8 seconds according to an empirical value; if yes, stopping processing the current pending DTMF, if not, Then continue to process the current pending DTMF; when it is determined that there is an end timestamp, judge Whether the current processing timestamp reaches the end timestamp of the current pending DTMF, if it arrives, stops processing the current to-be-processed DTMF, and if not, continues to process the current to-be-processed DTMF.
在实际应用中, 可采用緩沖区接收队列实现上述流程中的步驟 101~步 驟 102, 采用緩沖区处理队列来实现上述流程中的步驟 103。 緩沖区接收队 列在接收到基于 RFC2833报文格式的事件报文时, 若判断该事件报文为开 始事件报文时, 存储该事件报文的事件信息, 并将相应的 DTMF的处理状 态设置为 pending; 若判断该事件报文为中间事件报文时, 进行以下处理: 根据该中间事件报文的 RTP时间戳, 若緩沖区接收队列已经记录所述事件 报文时, 根据该中间事件报文的事件信息更新已经存储的相应的事件信息, 并将相应的 DTMF的处理状态设置为 working;若緩沖区接收队列未记录所 述事件报文时, 判断得到所述当前待处理 DTMF的结束时间戳大于当前处 理时间戳时, 将所述当前待处理 DTMF的处理状态设置为 pending, 否则, 将所述当前待处理 DTMF的处理状态设置为 end。 緩沖区处理队列定期或 周期地查看緩沖区接收队列, 当緩沖区接收队列中当前需要处理的 DTMF 的处理状态为 pending时, 緩沖区处理队列初始化该 DTMF的处理函数, 并将该 DTMF的处理状态设置为 working;当緩沖区接收队列中当前需要处 理的 DTMF的处理状态为 working时, 确定该 DTMF是否有结束时间戳, 若没有结束时间戳且在设定的时间阈值内没有收到该 DTMF的中间事件报 文时, 判断根据该 DTMF的事件宽度是否达到设置的事件宽度阈值, 如设 置的事件宽度阈值为经验值 8秒,若达到事件宽度阈值,则停止对该 DTMF 的处理, 并将该 DTMF的处理状态设置为 end, 若未达到时间宽度阈值, 则继续处理 DTMF。 In a practical application, the buffer receiving queue can be used to implement steps 101 to 102 in the above process, and the buffer processing queue is used to implement step 103 in the above process. When receiving the event message based on the RFC2833 message format, the buffer receiving queue stores the event information of the event message when it is determined that the event message is a start event message, and sets the processing state of the corresponding DTMF to If the event message is an intermediate event message, the following processing is performed: According to the RTP timestamp of the intermediate event message, if the event message has been recorded in the buffer receiving queue, according to the intermediate event message The event information updates the corresponding event information that has been stored, and sets the processing status of the corresponding DTMF to working; if the event message is not recorded in the buffer receiving queue, it is determined that the end time stamp of the current pending DTMF is obtained. When the current processing timestamp is greater than the current processing timestamp, the processing state of the current pending DTMF is set to pending, otherwise, the processing state of the current pending DTMF is set to end. The buffer processing queue periodically or periodically views the buffer receiving queue. When the processing status of the DTMF currently needing to be processed in the buffer receiving queue is pending, the buffer processing queue initializes the processing function of the DTMF, and the processing status of the DTMF is Set to working; when the processing status of the DTMF currently needing to be processed in the buffer receiving queue is working, determine whether the DTMF has an end timestamp, if there is no end timestamp and the DTMF is not received within the set time threshold In the intermediate event message, it is determined whether the event width according to the DTMF reaches the set event width threshold. If the set event width threshold is an empirical value of 8 seconds, if the event width threshold is reached, the processing of the DTMF is stopped, and the The processing state of DTMF is set to end, and if the time width threshold is not reached, DTMF continues to be processed.
参见图 2, 为本发明实施例中在緩沖区接收队列中设置 DTMF的处理 状态的方法流程图, 该方法包括步驟:
步驟 201、緩沖区接收队列接收事件报文,并存储该接收到的事件报文。 步驟 202、根据所述事件报文的事件标志位, 判断该事件报文的事件类 型。 2 is a flowchart of a method for setting a processing state of a DTMF in a buffer receiving queue according to an embodiment of the present invention, where the method includes the following steps: Step 201: The buffer receiving queue receives the event packet, and stores the received event packet. Step 202: Determine, according to an event flag bit of the event message, an event type of the event message.
步驟 203、 当所述事件报文的事件类型为开始事件报文时, 将所述事件 报文的事件信息写入到緩沖区中, 并将相应的 DTMF 的处理状态设置为 pending。 Step 203: When the event type of the event message is a start event message, the event information of the event message is written into the buffer, and the processing state of the corresponding DTMF is set to pending.
步驟 204、 当所述事件报文的事件类型为中间事件报文时, 判断緩沖区 接收队列中是否已经记录该事件报文, 若是, 则执行步驟 206, 否则, 执行 步驟 207。 Step 204: When the event type of the event packet is an intermediate event packet, determine whether the event packet has been recorded in the buffer receiving queue. If yes, go to step 206. Otherwise, go to step 207.
步驟 205、 当所述事件报文的事件类型为结束事件报文时, 将所述事件 报文的事件信息写入到緩沖区中, 并将相应的 DTMF 的处理状态设置为 end, 并标记该 DTMF的结束时间戳, 执行步驟 210。 Step 205: When the event type of the event message is an end event message, write event information of the event message into a buffer, and set a processing state of the corresponding DTMF to end, and mark the event End timestamp of DTMF, go to step 210.
步驟 206、 根据所述事件报文的事件信息更新所述 DTMF的时间戳和 事件宽度, 执行步驟 210。 Step 206: Update the timestamp and the event width of the DTMF according to the event information of the event message, and perform step 210.
步驟 207、 判断所述 DTMF当前的时间戳是否大于当前处理时间戳, 若是, 则执行步驟 208, 否则, 执行步驟 209。 Step 207: Determine whether the current timestamp of the DTMF is greater than a current processing timestamp. If yes, go to step 208. Otherwise, go to step 209.
步驟 208、 将所述事件报文的事件信息写入到緩沖区中, 并将相应的 DTMF的处理状态设置为 pending, 执行步驟 210。 Step 208: Write the event information of the event message into the buffer, and set the processing status of the corresponding DTMF to pending, and perform step 210.
步驟 209、 丟弃所述 DTMF。 Step 209: Discard the DTMF.
步驟 210、 结束流程。 Step 210, ending the process.
参见图 3, 为本发明实施例中在緩沖区处理队列中处理 DTMF的方法 流程图, 该方法包括: Referring to FIG. 3, it is a flowchart of a method for processing DTMF in a buffer processing queue according to an embodiment of the present invention, where the method includes:
步驟 301、 定期或周期的查看所述緩沖区接收队列, 并确定出緩沖区接 收队列中当前需要处理的 DTMF。 Step 301: View the buffer receiving queue periodically or periodically, and determine the DTMF currently needed to be processed in the buffer receiving queue.
步驟 302、 判断所述 DTMF当前的处理状态。
步驟 303、 当所述 DTMF的处理状态为 pending时, 初始化该 DTMF 的处理函数, 并将该 DTMF的处理状态设置为 working, 执行步驟 301。 Step 302: Determine a current processing status of the DTMF. Step 303: When the processing state of the DTMF is pending, initialize the processing function of the DTMF, and set the processing state of the DTMF to working, and perform step 301.
步驟 304、 当所述 DTMF的处理状态为 working时, 处理该 DTMF, 并 判断所述 DTMF是否有结束时间戳, 若否, 则执行步驟 305 , 否则, 执行 步驟 307。 Step 304: When the processing state of the DTMF is working, process the DTMF, and determine whether the DTMF has an end timestamp. If not, execute step 305. Otherwise, go to step 307.
步驟 305、 判断在设定的时间阈值内是否接收到所述 DTMF的中间事 件报文, 若是, 则执行步驟 301 , 否则执行步驟 306。 Step 305: Determine whether the intermediate event message of the DTMF is received within the set time threshold. If yes, execute step 301; otherwise, perform step 306.
步驟 306、 判断所述 DTMF的事件宽度是否到达设置的事件宽度阈值, 若是, 则执行步驟 308, 否则, 执行步驟 301。 Step 306: Determine whether the event width of the DTMF reaches the set event width threshold. If yes, execute step 308. Otherwise, perform step 301.
步驟 307、 判断处理 DTMF的当前处理时间戳是否到达所述 DTMF的 结束时间戳, 若是, 则执行步驟 308, 否则, 执行步驟 301。 Step 307: Determine whether the current processing timestamp of the DTMF is processed to reach the end timestamp of the DTMF, and if yes, execute step 308; otherwise, perform step 301.
步驟 308、停止处理所述 DTMF,并将该 DTMF的处理状态设置为 end。 步驟 309、 结束流程。 Step 308: Stop processing the DTMF, and set the processing state of the DTMF to end. Step 309, ending the process.
基于上述方法的相同构思, 本发明实施例还提供一种处理 DTMF的装 置, 该装置的结构如图 4所示。 Based on the same concept of the above method, the embodiment of the present invention further provides a device for processing DTMF, and the structure of the device is as shown in FIG.
参见图 4, 为本发明实施例中处理 DTMF的装置的结构示意图, 包括: 确定单元 41 , 用于接收当前待处理 DTMF的事件报文, 确定出所述事 件报文的事件类型; 4 is a schematic structural diagram of an apparatus for processing a DTMF according to an embodiment of the present invention, including: a determining unit 41, configured to receive an event message of a current DTMF to be processed, and determine an event type of the event message;
设置单元 42,用于根据所述确定单元 41确定出的所述事件报文的事件 类型, 设置所述当前待处理 DTMF的处理状态; The setting unit 42 is configured to set a processing state of the current to-be-processed DTMF according to an event type of the event message determined by the determining unit 41;
处理单元 43,用于根据所述设置单元 42设置的所述当前待处理 DTMF 的处理状态, 处理所述当前待处理 DTMF。 The processing unit 43 is configured to process the current to-be-processed DTMF according to the processing status of the current to-be-processed DTMF set by the setting unit 42.
设置单元 42, 具体用于: 当所述事件报文的事件类型为开始事件报文 时, 将所述当前待处理 DTMF的处理状态设置为待处理状态; The setting unit 42 is specifically configured to: when the event type of the event message is a start event message, set a processing state of the current to-be-processed DTMF to a pending state;
当所述事件报文的事件类型为结束事件报文时, 将所述当前待处理
DTMF的处理状态设置为结束处理状态; When the event type of the event packet is an end event packet, the current pending The processing state of the DTMF is set to the end processing state;
当所述事件报文的事件类型为中间事件报文时, 判断是否已经记录所 述事件报文, 并根据判断结果设置所述当前待处理 DTMF的处理状态。 When the event type of the event message is an intermediate event message, it is determined whether the event message has been recorded, and the processing state of the current to-be-processed DTMF is set according to the determination result.
设置单元 42根据判断结果设置所述当前待处理 DTMF的处理状态,具 体用于: The setting unit 42 sets the processing state of the current to-be-processed DTMF according to the determination result, specifically for:
当已经记录所述事件报文时, 根据所述事件报文的事件信息, 更新已 经记录的相应的事件信息; When the event message has been recorded, updating the corresponding event information that has been recorded according to the event information of the event message;
当未记录所述事件报文时, 判断所述当前待处理 DTMF的结束时间戳 是否大于当前处理时间戳; 若是, 则将所述当前待处理 DTMF的处理状态 设置为待处理状态; 若否, 则将所述当前待处理 DTMF的处理状态设置为 结束状态。 When the event message is not recorded, it is determined whether the end timestamp of the current pending DTMF is greater than the current processing timestamp; if yes, the processing state of the current pending DTMF is set to a pending state; if not, Then, the processing state of the current to-be-processed DTMF is set to an end state.
设置单元 42进一步用于, 在所述事件报文的事件类型为开始事件报文 时, 存储所述事件报文的事件信息, 所述事件信息包括事件值、 功率值、 时间戳、 开始事件标志、 结束事件标志和事件宽度; 还用于在所述事件报 文的事件类型为结束事件报文时, 设置所述当前待处理 DTMF的结束时间 戳, 并存储所述事件报文的事件信息; 还用于在所述事件报文的事件类型 为中间事件报文, 且所述当前待处理 DTMF的结束时间戳大于当前处理时 间戳时, 则存储所述事件报文的事件信息。 The setting unit 42 is further configured to: when the event type of the event message is a start event message, storing event information of the event message, where the event information includes an event value, a power value, a time stamp, and a start event flag. And ending the event flag and the event width; and when the event type of the event message is an end event message, setting an end timestamp of the current pending DTMF, and storing event information of the event message; And when the event type of the event message is an intermediate event message, and the end timestamp of the current pending DTMF is greater than the current processing timestamp, the event information of the event message is stored.
较佳地, 所述处理单元 43, 具体用于: 当所述当前待处理 DTMF的处 理状态为等待处理状态时, 初始化所述当前待处理 DTMF的处理函数, 并 将所述当前待处理 DTMF的处理状态设置为正在处理状态; Preferably, the processing unit 43 is specifically configured to: when the processing state of the current to-be-processed DTMF is a waiting processing state, initialize a processing function of the current to-be-processed DTMF, and the current to-be-processed DTMF The processing status is set to the processing status;
当所述当前待处理 DTMF的处理状态为正在处理状态时, 判断所述当 前待处理 DTMF是否有结束时间戳, 并根据判断结果处理所述当前待处理 DTM F。 When the processing status of the current to-be-processed DTMF is in the processing state, it is determined whether the current pending DTMF has an end timestamp, and the current to-be-processed DTM F is processed according to the determination result.
处理单元 43根据判断结果处理所述当前待处理 DTMF, 具体用于:
当判断没有结束时间戳且在设定的时间阈值内接收到所述当前待处理The processing unit 43 processes the current to-be-processed DTMF according to the determination result, specifically for: When it is judged that there is no end time stamp and the current pending processing is received within the set time threshold
DTMF的中间事件报文时, 继续处理所述当前待处理 DTMF; When the DTMF intermediate event message continues, the current pending DTMF is processed;
当判断没有结束时间戳且在设定的时间阈值内未接收到所述当前待处 理 DTMF的中间事件报文时, 判断所述当前待处理 DTMF的事件宽度是否 超过设置的事件宽度阈值; 若是, 则停止处理所述当前待处理 DTMF, 若 否, 则继续处理所述当前待处理 DTMF; When it is determined that there is no end timestamp and the intermediate event message of the current to-be-processed DTMF is not received within the set time threshold, it is determined whether the event width of the current pending DTMF exceeds the set event width threshold; if yes, Stop processing the current to-be-processed DTMF, and if not, proceed to process the current to-be-processed DTMF;
当判断有结束时间戳时, 判断当前处理时间戳是否到达所述当前待处 理 DTMF的结束时间戳, 若到达, 则停止处理所述当前待处理 DTMF, 若 未到达, 则继续处理所述当前待处理 DTMF。 When it is determined that there is an end timestamp, it is determined whether the current processing timestamp reaches the end timestamp of the current pending DTMF, and if it arrives, the current pending DTMF is stopped, and if not, the current pending processing is continued. Process DTMF.
本发明实施例中 ,针对当前待处理 DTMF,在接收到当前待处理 DTMF 的事件报文时, 根据该事件报文的事件类型设置所述当前待处理 DTMF的 处理状态; 并根据所述当前待处理 DTMF的处理状态, 处理所述当前待处 理 DTMF; 采用本发明技术方案, 不管当前待处理 DTMF所包含的事件报 文为一个还是多个, 如开始事件报文、 中间事件报文和结束事件报文中的 一个或多个, 都可以对该当前待处理 DTMF进行相应的处理, 不存在由于 缺少其中一个事件报文而无法对 DTMF进行正确处理的问题, 从而克服了 现有技术中在 DTMF中缺少开始事件报文、 中间事件报文和结束事件报文 中的任意一个或多个事件报文时, 不能正确处理 DTMF的问题, 从而导致 对 DTMF进行处理的准确性较低和成功率较低的问题; 因此采用本发明技 术方案, 提高了对 DTMF进行处理的正确性和成功率。 In the embodiment of the present invention, for the current DTMF to be processed, when the event message of the current DTMF to be processed is received, the processing state of the current to-be-processed DTMF is set according to the event type of the event message; Processing the DTMF processing state, processing the current to-be-processed DTMF; adopting the technical solution of the present invention, regardless of whether the current pending DTMF contains one or more event messages, such as a start event message, an intermediate event message, and an end event. One or more of the messages can perform corresponding processing on the current pending DTMF, and there is no problem that the DTMF cannot be correctly processed due to the lack of one of the event messages, thereby overcoming the prior art in DTMF. When any one or more event messages in the start event message, the intermediate event message, and the end event message are missing, the problem of DTMF cannot be correctly processed, resulting in lower accuracy and success rate of processing DTMF. Low problem; therefore, the technical solution of the invention improves the correctness and success rate of processing DTMF
显然, 本领域的技术人员可以对本发明进行各种改动和变型而不脱离 本发明的精神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权 利要求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在 内。
It is apparent that those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and modifications of the invention
Claims
1、 一种处理双音多频 DTMF的方法, 其特征在于, 所述方法包括: 接收当前待处理 DTMF的事件报文,确定出所述事件报文的事件类型; 根据所述事件报文的事件类型设置所述当前待处理 DTMF 的处理状 态; A method for processing a dual-tone multi-frequency DTMF, the method comprising: receiving an event message of a current DTMF to be processed, determining an event type of the event message; The event type sets the processing status of the current pending DTMF;
根据所述当前待处理 DTMF的处理状态,处理所述当前待处理 DTMF。 And processing the current to-be-processed DTMF according to the processing state of the current to-be-processed DTMF.
2、 如权利要求 1所述的方法, 其特征在于, 所述根据所述事件报文的 事件类型设置所述当前待处理 DTMF的处理状态为: 2. The method according to claim 1, wherein the processing state of the current pending DTMF is set according to an event type of the event message:
当所述事件报文的事件类型为开始事件报文时, 将所述当前待处理 DTMF的处理状态设置为待处理状态; And when the event type of the event message is a start event message, setting a processing state of the current to-be-processed DTMF to a pending state;
当所述事件报文的事件类型为结束事件报文时, 将所述当前待处理 DTMF的处理状态设置为结束处理状态; And when the event type of the event message is an end event message, setting a processing state of the current to-be-processed DTMF to an end processing state;
当所述事件报文的事件类型为中间事件报文时, 判断是否已经记录所 述事件报文, 并根据判断结果设置所述当前待处理 DTMF的处理状态。 When the event type of the event message is an intermediate event message, it is determined whether the event message has been recorded, and the processing state of the current to-be-processed DTMF is set according to the determination result.
3、 如权利要求 2所述的方法, 其特征在于, 所述根据判断结果设置所 述当前待处理 DTMF的处理状态为: The method according to claim 2, wherein the processing state of the current to-be-processed DTMF is set according to the determination result:
当已经记录所述事件报文时, 根据所述事件报文的事件信息, 更新已 经记录的相应的事件信息,并保留所述当前待处理 DTMF的正在处理状态; 当未记录所述事件报文时, 判断所述当前待处理 DTMF的结束时间戳 是否大于当前处理时间戳; 当大于时, 将所述当前待处理 DTMF的处理状 态设置为待处理状态; 否则, 将所述当前待处理 DTMF的处理状态设置为 结束状态。 When the event message has been recorded, update the corresponding event information that has been recorded according to the event information of the event message, and retain the current processing status of the currently pending DTMF; when the event message is not recorded Determining whether the end timestamp of the current pending DTMF is greater than the current processing timestamp; when greater than, setting the processing state of the current pending DTMF to a pending state; otherwise, the current pending DTMF The processing status is set to the end state.
4、 如权利要求 3所述的方法, 其特征在于, 所述方法还包括: 当所述事件报文的事件类型为开始事件报文时, 存储所述事件报文的 事件信息, 所述事件信息包括事件值、 功率值、 时间戳、 开始事件标志、 结束事件标志和事件宽度; The method of claim 3, wherein the method further comprises: when the event type of the event message is a start event message, storing event information of the event message, the event Information includes event values, power values, time stamps, start event flags, End event flag and event width;
当所述事件报文的事件类型为结束事件报文时, 设置所述当前待处理 When the event type of the event packet is an end event packet, setting the current pending
DTMF的结束时间戳, 并存储所述事件报文的事件信息; End timestamp of the DTMF, and storing event information of the event message;
当所述事件报文的事件类型为中间事件报文,且所述当前待处理 DTMF 的结束时间戳大于当前处理时间戳时, 存储所述事件报文的事件信息。 When the event type of the event message is an intermediate event message, and the end timestamp of the current pending DTMF is greater than the current processing timestamp, the event information of the event message is stored.
5、 如权利要求 2所述的方法, 其特征在于, 所述处理所述当前待处理 DTMF为: 5. The method according to claim 2, wherein the processing the current pending DTMF is:
当所述当前待处理 DTMF的处理状态为待处理状态时, 初始化所述当 前待处理 DTMF的处理函数, 并将所述当前待处理 DTMF的处理状态设置 为正在处理状态; And when the processing state of the current to-be-processed DTMF is a to-be-processed state, initializing a processing function of the current to-be-processed DTMF, and setting a processing state of the current to-be-processed DTMF to a processing state;
当所述当前待处理 DTMF的处理状态为正在处理状态时, 判断所述当 前待处理 DTMF是否有结束时间戳, 并根据判断结果处理所述当前待处理 DTMF。 When the processing status of the current to-be-processed DTMF is the processing status, it is determined whether the current pending DTMF has an end timestamp, and the current pending DTMF is processed according to the determination result.
6、 如权利要求 5所述的方法, 其特征在于, 所述根据判断结果处理所 述当前待处理 DTMF为: The method according to claim 5, wherein the processing the current pending DTMF according to the determination result is:
当判断没有结束时间戳且在设定的时间阈值内接收到所述当前待处理 DTMF的中间事件报文时, 继续处理所述当前待处理 DTMF; When it is determined that there is no end timestamp and the intermediate event message of the current to-be-processed DTMF is received within the set time threshold, the current pending DTMF is processed;
当判断没有结束时间戳且在设定的时间阈值内未接收到所述当前待处 理 DTMF的中间事件报文时, 判断所述当前待处理 DTMF的事件宽度是否 超过设置的事件宽度阈值; 当超过时, 停止处理所述当前待处理 DTMF, 否则, 继续处理所述当前待处理 DTMF; When it is determined that there is no end timestamp and the intermediate event message of the current to-be-processed DTMF is not received within the set time threshold, it is determined whether the event width of the current pending DTMF exceeds the set event width threshold; Stop processing the current pending DTMF, otherwise, continue processing the current to-be-processed DTMF;
当判断有结束时间戳时, 判断当前处理时间戳是否到达所述当前待处 理 DTMF的结束时间戳, 当到达时, 停止处理所述当前待处理 DTMF, 当 未到达时, 继续处理所述当前待处理 DTMF。 When it is determined that there is an end timestamp, it is determined whether the current processing timestamp reaches the end timestamp of the current pending DTMF, and when it arrives, the current pending DTMF is stopped, and when it does not arrive, the current pending processing is continued. Process DTMF.
7、 一种处理双音多频 DTMF的装置, 其特征在于, 所述装置包括: 确定单元, 用于接收当前待处理 DTMF的事件报文, 确定出所述事件 报文的事件类型; 7. A device for processing a dual tone multi-frequency DTMF, the device comprising: a determining unit, configured to receive an event message of the current DTMF to be processed, and determine an event type of the event message;
设置单元, 用于根据所述确定单元确定出的所述事件报文的事件类型, 设置所述当前待处理 DTMF的处理状态; a setting unit, configured to set a processing state of the current to-be-processed DTMF according to an event type of the event message determined by the determining unit;
处理单元, 用于根据所述设置单元设置的所述当前待处理 DTMF的处 理状态, 处理所述当前待处理 DTMF。 And a processing unit, configured to process the current to-be-processed DTMF according to a processing state of the current to-be-processed DTMF set by the setting unit.
8、 如权利要求 7所述的装置, 其特征在于, 所述设置单元, 具体用于: 当所述事件报文的事件类型为开始事件报文时, 将所述当前待处理 DTMF 的处理状态设置为待处理状态; The device according to claim 7, wherein the setting unit is configured to: when the event type of the event message is a start event message, the processing status of the current pending DTMF Set to the pending state;
当所述事件报文的事件类型为结束事件报文时, 将所述当前待处理 DTMF的处理状态设置为结束处理状态; And when the event type of the event message is an end event message, setting a processing state of the current to-be-processed DTMF to an end processing state;
当所述事件报文的事件类型为中间事件报文时, 判断是否已经记录所 述事件报文, 并根据判断结果设置所述当前待处理 DTMF的处理状态。 When the event type of the event message is an intermediate event message, it is determined whether the event message has been recorded, and the processing state of the current to-be-processed DTMF is set according to the determination result.
9、如权利要求 8所述的装置, 其特征在于, 所述设置单元, 具体用于: 当已经记录所述事件报文时, 根据所述事件报文的事件信息, 更新已 经记录的相应的事件信息,并保留所述当前待处理 DTMF的正在处理状态; 当未记录所述事件报文时, 判断所述当前待处理 DTMF的结束时间戳 是否大于当前处理时间戳; 当大于时, 将所述当前待处理 DTMF的处理状 态设置为待处理状态; 否则, 将所述当前待处理 DTMF的处理状态设置为 结束状态。 The device according to claim 8, wherein the setting unit is configured to: when the event message has been recorded, update corresponding records that have been recorded according to event information of the event message Event information, and retaining the current processing status of the current pending DTMF; when the event message is not recorded, determining whether the end timestamp of the current pending DTMF is greater than the current processing timestamp; The processing status of the current pending DTMF is set to the pending status; otherwise, the processing status of the current pending DTMF is set to the ending status.
10、 如权利要求 9所述的装置, 其特征在于, 所述设置单元进一步用 于, 在所述事件报文的事件类型为开始事件报文时, 存储所述事件报文的 事件信息, 所述事件信息包括事件值、 功率值、 时间戳、 开始事件标志、 结束事件标志和事件宽度; 还用于在所述事件报文的事件类型为结束事件 报文时, 设置所述当前待处理 DTMF的结束时间戳, 并存储所述事件报文 的事件信息; 还用于在所述事件报文的事件类型为中间事件报文, 且所述 当前待处理 DTMF的结束时间戳大于当前处理时间戳时, 则存储所述事件 报文的事件信息。 The device according to claim 9, wherein the setting unit is further configured to: when the event type of the event message is a start event message, storing event information of the event message, where The event information includes an event value, a power value, a time stamp, a start event flag, an end event flag, and an event width. The method further includes: setting the current pending DTMF when the event type of the event message is an end event message. End timestamp, and store the event message The event information is further used to store the event information of the event message when the event type of the event message is an intermediate event message, and the end timestamp of the current pending DTMF is greater than the current processing timestamp. .
11、 如权利要求 8 所述的装置, 其特征在于, 所述处理单元, 具体用 于: The device according to claim 8, wherein the processing unit is specifically configured to:
当所述当前待处理 DTMF的处理状态为待处理状态时, 初始化所述当 前待处理 DTMF的处理函数, 并将所述当前待处理 DTMF的处理状态设置 为正在处理状态; And when the processing state of the current to-be-processed DTMF is a to-be-processed state, initializing a processing function of the current to-be-processed DTMF, and setting a processing state of the current to-be-processed DTMF to a processing state;
当所述当前待处理 DTMF的处理状态为正在处理状态时, 判断所述当 前待处理 DTMF是否有结束时间戳, 并根据判断结果处理所述当前待处理 DTM F。 When the processing status of the current to-be-processed DTMF is in the processing state, it is determined whether the current pending DTMF has an end timestamp, and the current to-be-processed DTM F is processed according to the determination result.
12、如权利要求 11所述的装置, 其特征在于, 所述处理单元具体用于: 当判断没有结束时间戳且在设定的时间阈值内接收到所述当前待处理 The device according to claim 11, wherein the processing unit is configured to: when it is determined that the timestamp is not ended, and the current pending is received within a set time threshold
DTMF的中间事件报文时, 继续处理所述当前待处理 DTMF; When the DTMF intermediate event message continues, the current pending DTMF is processed;
当判断没有结束时间戳且在设定的时间阈值内未接收到所述当前待处 理 DTMF的中间事件报文时, 判断所述当前待处理 DTMF的事件宽度是否 超过设置的事件宽度阈值; 当超时时, 停止处理所述当前待处理 DTMF, 否则, 继续处理所述当前待处理 DTMF; When it is determined that there is no end timestamp and the intermediate event message of the current pending DTMF is not received within the set time threshold, it is determined whether the event width of the current pending DTMF exceeds the set event width threshold; Temporarily stopping processing the current pending DTMF, otherwise, continuing to process the current pending DTMF;
当判断有结束时间戳时, 判断当前处理时间戳是否到达所述当前待处 理 DTMF的结束时间戳, 当到达时, 停止处理所述当前待处理 DTMF, 当 未到达时, 继续处理所述当前待处理 DTMF。 When it is determined that there is an end timestamp, it is determined whether the current processing timestamp reaches the end timestamp of the current pending DTMF, and when it arrives, the current pending DTMF is stopped, and when it does not arrive, the current pending processing is continued. Process DTMF.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110067942.8A CN102255793B (en) | 2011-03-21 | 2011-03-21 | Double tone multi-frequency processing method and device |
CN201110067942.8 | 2011-03-21 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2012126310A1 true WO2012126310A1 (en) | 2012-09-27 |
Family
ID=44982798
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2012/071625 WO2012126310A1 (en) | 2011-03-21 | 2012-02-24 | Method and device for processing double tone multi-frequency |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102255793B (en) |
WO (1) | WO2012126310A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102255793B (en) * | 2011-03-21 | 2014-10-29 | 中兴通讯股份有限公司 | Double tone multi-frequency processing method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1893678A (en) * | 2005-07-04 | 2007-01-10 | 中兴通讯股份有限公司 | Method for controlling number-receiving of colling partner or called partner in talking sourse |
CN101179535A (en) * | 2006-11-10 | 2008-05-14 | 华为技术有限公司 | Dual-tone multi-frequency signal processing method and system |
CN101702749A (en) * | 2009-11-03 | 2010-05-05 | 中兴通讯股份有限公司 | Dual tone multiple frequency event frame processing method, system and media gateway |
CN102255793A (en) * | 2011-03-21 | 2011-11-23 | 中兴通讯股份有限公司 | Double tone multi-frequency processing method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1905601A (en) * | 2006-08-01 | 2007-01-31 | 讯凯科技(深圳)有限公司 | Method and system for remote-controlling mobile apparatus |
-
2011
- 2011-03-21 CN CN201110067942.8A patent/CN102255793B/en not_active Expired - Fee Related
-
2012
- 2012-02-24 WO PCT/CN2012/071625 patent/WO2012126310A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1893678A (en) * | 2005-07-04 | 2007-01-10 | 中兴通讯股份有限公司 | Method for controlling number-receiving of colling partner or called partner in talking sourse |
CN101179535A (en) * | 2006-11-10 | 2008-05-14 | 华为技术有限公司 | Dual-tone multi-frequency signal processing method and system |
CN101702749A (en) * | 2009-11-03 | 2010-05-05 | 中兴通讯股份有限公司 | Dual tone multiple frequency event frame processing method, system and media gateway |
CN102255793A (en) * | 2011-03-21 | 2011-11-23 | 中兴通讯股份有限公司 | Double tone multi-frequency processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN102255793B (en) | 2014-10-29 |
CN102255793A (en) | 2011-11-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7688809B2 (en) | Media inactivity detection in VoIP networks | |
JP2003169040A5 (en) | ||
US7453897B2 (en) | Network media playout | |
WO2017005055A1 (en) | Method, server side and system for computing bandwidth of network transmission of streaming media | |
WO2017206767A1 (en) | Method for diagnosing voice delay, gateway device, and computer storage medium | |
CN109644162B (en) | Media buffering | |
JP2010154547A (en) | Cooperation between adaptation of bit rate of packetized data, and retransmission of data packet | |
RU2010110600A (en) | METHOD AND DEVICE FOR TRANSMISSION OF SPEECH INFORMATION WITH COMMUTATION OF CHANNELS ON NETWORKS WITH COMMUTATION OF PACKAGES | |
WO2008043304A1 (en) | Method for detecting qos | |
WO2017215583A1 (en) | Video service quality evaluation method and device | |
WO2014134932A1 (en) | Method and device for estimating temporary storage status | |
CN112436924B (en) | Data transmission method and electronic equipment | |
RU2531571C2 (en) | Video monitoring system and forward error correction (fec) method thereof | |
WO2008032747A1 (en) | Communication device, communication method, and recording medium | |
WO2011022909A1 (en) | Background service process unit, position system and call control method thereof | |
JP4889787B2 (en) | Measuring method, measuring apparatus and computer program | |
CN103166808A (en) | Monitoring method, device and system for Internet protocol television (IPTV) service quality | |
CN101997774A (en) | Recoding method for forwarding time delay and router | |
CN112866345B (en) | Websocket-based streaming media low-delay communication implementation method, electronic device and storage medium | |
WO2012126310A1 (en) | Method and device for processing double tone multi-frequency | |
WO2010072099A1 (en) | Method and apparatus for prediction of time delay of video service | |
CN100542132C (en) | voice transmission method based on transmission control protocol | |
WO2007108907A2 (en) | Synchronization of event processing at a media gateway | |
WO2014019487A1 (en) | Method, apparatus, and network device for data service experience evaluation | |
JP4421563B2 (en) | RTP session disconnection detection method, VoIP gateway device and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 12760999 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 12760999 Country of ref document: EP Kind code of ref document: A1 |