Patent ID: 7710948

Claim:
A method for transmitting a pulse code modulation (PCM) stream from a transmitting terminal to a receiving terminal through a network in a voice communication system, comprising: at the transmitting terminal, inputting data to be transmitted; generating a prefixed idle code string of a first predetermined length located before the data to be transmitted, which prefixed idle code string includes consecutive 8-bit idle codes; generating a postfixed idle code string of a second predetermined length located after the data to be transmitted, which postfixed idle code string includes consecutive 8-bit idle codes; switching between a voice PCM stream and a data PCM stream comprising the prefixed idle code string, the data to be transmitted and the postfixed idle code string, to transmit to the receiving terminal; at the receiving terminal, receiving a PCM stream from the transmitting terminal; detecting the prefixed idle code string and the postfixed idle code string from a received PCM stream; and receiving the data located between the prefixed idle code string and the postfixed idle code string, wherein each of the prefixed idle code string and the postfixed idle code string comprises a given number of consecutive idle codes and detecting the prefixed idle code string and the postfixed idle code string comprises: counting a number of consecutive idle codes; determining whether the number of consecutive idle codes reaches the given number; and when the number of consecutive idle codes is equal to the given number, switching an operation mode between a voice communication mode and a data communication mode.