Patent ID: 8238341
Filing Date: 2012-08-07
Classification: H04L,H04M

Abstract:
1. A method for processing Voice over Internet Protocol (VoIP) packets in an electronic apparatus, the method comprising the steps of: (a) sending a VoIP packet to a buffer in the electronic apparatus; (b) determining if an arrived VoIP packet arrives out of order according to a sequence number of the arrived VoIP packet and a sequence number of a preceding VoIP packet; (c) determining whether the buffer has a packet having a same sequence number as the sequence number of the arrived VoIP packet, if the arrived VoIP packet arrives out of order; (d) calculating the difference between the sequence number of the arrived VoIP packet and the sequence number of the preceding VoIP packet if the buffer has no such packet having the same sequence number as the arrived VoIP packet; (e) counting a number of pseudo packets needed to be inserted into the buffer according to the calculated difference and generating the number of pseudo packets, the number of the pseudo packets being equal to the difference of the sequence numbers minus one; (f) inserting the number of pseudo packets and the arrived VoIP packet into the buffer; (g) outputting packets in the buffer to an audio controlling module, the output packets comprising the pseudo packets and the VoIP packets; and (h) generating comfort noise if the output packets are the pseudo packets, decompressing the output packets into raw data if the output packets are the VoIP packets, and outputting the comfort noise and the raw data to an audio module for playing.