Patent ID: 8457011

Claim:
A method for establishing a Voice over Internet Protocol (VoIP) communication using a gateway device, the gateway device in communication with a local user terminal and base station of a wireless telephone system, the method comprising: setting a plurality of coding methods of the VoIP, and setting quality of service (QoS) parameters corresponding to each of the plurality of coding methods; in response to establishing a VoIP phone call with a remote user terminal by the local user terminal, initiating a Session Initiation Protocol (SIP) session between the local user terminal and the remote user terminal to determine a coding method; detecting VoIP packets generated by the local user terminal under the condition that the SIP session is initiated successfully, the VoIP packets comprising Real-time Transport Protocol (RTP) data; determining corresponding QoS parameters according to the determined coding method, and parsing the determined QoS parameters to generate a request packet according to a network protocol of the network between the gateway device and the base station; sending the request packet to the base station to request an establishment of the VoIP phone call; and establishing the VoIP phone call between the local user terminal and the remote user terminal by sending the VoIP packets from the base station to the remote user terminal under the condition that the request succeeds, comprising steps of: determining that the request succeeds according to a response packet sent from the base station to the local user terminal; inputting the RTP data of the VoIP packets into an Extended real-time Polling Service (ertPS) queue, and downloading an uplink schedule from the base station to the gateway device; and sending the VoIP packets to the remote user terminal according to the uplink schedule.