Apparatus and method for processing voice over internet protocol packets
First Claim
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.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for processing Voice over Internet Protocol (VoIP) packets is provided. The method includes: determining if the 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 of the arrived VoIP packet; determining whether the buffer has a packet having a same sequence number as the arrived VoIP packet if the arrived VoIP packet arrives out of order; calculating the difference between the sequence number of the arrived VoIP packet and that of the preceding VoIP packet if the buffer has no such packet having the same sequence number as the arrived VoIP packet; and counting a number of pseudo packets needed to be inserted into the buffer according to the calculated difference and generating and inserting the number of pseudo packets into the buffer.
-
Citations
13 Claims
-
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. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A system for processing Voice over Internet Protocol (VoIP) packets in an electronic apparatus, the system comprising a real time transport protocol (RTP) module, a buffer, and an audio controlling module, wherein:
-
the RTP module is configured for receiving a plurality of arrived VoIP packets, and sending the arrived VoIP packets to the buffer one by one; the buffer is configured for reordering the arrived VoIP packets by generating pseudo packets while the arrived VoIP arrives out of order, wherein the reordering step comprises steps (b)-(e); (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; the buffer is further configured for inserting the reordered VoIP packets and the generated pseudo packets into the buffer, and outputting packets in the buffer to the audio controlling module, the output packets comprising the pseudo packets and the VoIP packets; and the audio controlling module configured for 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. - View Dependent Claims (11, 12, 13)
-
Specification