G.729 codec

G.729 codec G.729 is a codec with low bandwidth requirements; it provides good audio quality. The codec encodes audio in frames of 10 ms long. Given a sampling frequency of 8 kHz, a 10 ms frame contains 80 audio samples. The codec algorithm encodes each frame into 10 bytes, so the resulting bitrate is 8 … Read more

C Program to find GCD of N Numbers

C program for GCD

C Program to find GCD of N Numbers #include<stdio.h> int main() { printf(“\n\n\t\tC Program for Greatest Common Divisor(GCD)\n\n\n”); int x, y =- 1; printf(“Enter numbers. To exit enter 0\n”); while(1) // infinite loop to take input { scanf(“%d”, &x); if(x < 1) break; else if(y ==- 1) // only 1 number entered, its GCD is … Read more

G.711 Codec

VoIP-Codecs

G.711 Codec G.711 is a codec that was introduced by ITU in 1972 for use in digital telephony. The codec has two variants: A-Law is being used in Europe and in international telephone links, uLaw is used in the U.S.A. and Japan. G.711 uses a logarithmic compression. It squeezes each 16-bit sample to 8 bits, thus it achieves a … Read more

Basic Call Flow – SIP

peer to peer sip flow

Basic Call Flow – SIP Key terms used in SIP: It is important to familiarize with these terms in order to understand basic SIP call flow. Here are few of them: Call flow: It’s a flow diagram of SIP messages — shows an ideal way how a media session carried over two endpoints. Its a … Read more

SIP : Session Initiation Protocol

sip_layers

SIP : Session Initiation Protocol Session Initiation Protocol (SIP) is one of the most common protocols used in VoIP technology. It is an application layer protocol that works in conjunction with other application layer protocols to control multimedia communication sessions over the Internet. SIP Endpoint Communication What is VoIP Technology Before moving further, let us … Read more

SIP – Headers

sip header

SIP – Headers A header is a component of a SIP message that conveys information about the message. It is structured as a sequence of header fields. SIP header fields in most cases follow the same rules as HTTP header fields. Header fields are defined as Header: field, where Header is used to represent the header … Read more

C program to Change the Text Background Color

C program to Change the Text Background Color

C program to Change the Text Background Color Few important points regarding this program are: SetConsoleTextAttribute: Sets the attributes of characters written to the console screen buffer by the WriteFile or WriteConsole function, or echoed by the ReadFile or ReadConsole function. This function affects text written after the function call. Syntax: BOOL WINAPI SetConsoleTextAttribute(_In_ HANDLE hConsoleOutput , _In_ WORD wAttributes); Below is the … Read more