VOIP CODEC SIZES

By , October 28, 2013 2:18 AM

Codec BR NEB
G.711 64 Kbps 87.2 Kbps
G.729 8 Kbps 31.2 Kbps
G.723.1 6.4 Kbps 21.9 Kbps
G.723.1 5.3 Kbps 20.8 Kbps
G.726 32 Kbps 55.2 Kbps
G.726 24 Kbps 47.2 Kbps
G.728 16 Kbps 31.5 Kbps
iLBC 15 Kbps 27.7 Kbps

BR = Bit rate
NEB = Nominal Ethernet Bandwidth (one direction)

 

Note: 

Codec Information Bandwidth Calculations
Codec & Bit Rate (Kbps) Codec Sample Size (Bytes) Codec Sample Interval (ms) Mean Opinion Score (MOS) Voice Payload Size (Bytes) Voice Payload Size (ms) Packets Per Second (PPS) Bandwidth MP or FRF.12 (Kbps) Bandwidth w/cRTP MP or FRF.12 (Kbps) Bandwidth Ethernet (Kbps)
G.711 (64 Kbps) 80 Bytes 10 ms 4.1 160 Bytes 20 ms 50 82.8 Kbps 67.6 Kbps 87.2 Kbps
G.729 (8 Kbps) 10 Bytes 10 ms 3.92 20 Bytes 20 ms 50 26.8 Kbps 11.6 Kbps 31.2 Kbps
G.723.1 (6.3 Kbps) 24 Bytes 30 ms 3.9 24 Bytes 30 ms 33.3 18.9 Kbps 8.8 Kbps 21.9 Kbps
G.723.1 (5.3 Kbps) 20 Bytes 30 ms 3.8 20 Bytes 30 ms 33.3 17.9 Kbps 7.7 Kbps 20.8 Kbps
G.726 (32 Kbps) 20 Bytes 5 ms 3.85 80 Bytes 20 ms 50 50.8 Kbps 35.6 Kbps 55.2 Kbps
G.726 (24 Kbps) 15 Bytes 5 ms 60 Bytes 20 ms 50 42.8 Kbps 27.6 Kbps 47.2 Kbps
G.728 (16 Kbps) 10 Bytes 5 ms 3.61 60 Bytes 30 ms 33.3 28.5 Kbps 18.4 Kbps 31.5 Kbps
G722_64k(64 Kbps) 80 Bytes 10 ms 4.13 160 Bytes 20 ms 50 82.8 Kbps 67.6Kbps 87.2 Kbps
ilbc_mode_20(15.2Kbps) 38 Bytes 20 ms NA 38 Bytes 20 ms 50 34.0Kbps 18.8 Kbps 38.4Kbps
ilbc_mode_30(13.33Kbps) 50 Bytes 30 ms NA 50 Bytes 30 ms 33.3 25.867 Kbps 15.73Kbps 28.8 Kbps

 

Explanation of Terms

Codec Bit Rate (Kbps) Based on the codec, this is the number of bits per second that need to be transmitted to deliver a voice call. (codec bit rate = codec sample size / codec sample interval).
Codec Sample Size (Bytes) Based on the codec, this is the number of bytes captured by the Digital Signal Processor (DSP) at each codec sample interval. For example, the G.729 coder operates on sample intervals of 10 ms, corresponding to 10 bytes (80 bits) per sample at a bit rate of 8 Kbps. (codec bit rate = codec sample size / codec sample interval).
Codec Sample Interval (ms) This is the sample interval at which the codec operates. For example, the G.729 coder operates on sample intervals of 10 ms, corresponding to 10 bytes (80 bits) per sample at a bit rate of 8 Kbps. (codec bit rate = codec sample size / codec sample interval).
MOS MOS is a system of grading the voice quality of telephone connections. With MOS, a wide range of listeners judge the quality of a voice sample on a scale of one (bad) to five (excellent). The scores are averaged to provide the MOS for the codec.
Voice Payload Size (Bytes) The voice payload size represents the number of bytes (or bits) that are filled into a packet. The voice payload size must be a multiple of the codec sample size. For example, G.729 packets can use 10, 20, 30, 40, 50, or 60 bytes of voice payload size.
Voice Payload Size (ms) The voice payload size can also be represented in terms of the codec samples. For example, a G.729 voice payload size of 20 ms (two 10 ms codec samples) represents a voice payload of 20 bytes [ (20 bytes * 8) / (20 ms) = 8 Kbps ]
PPS PPS represents the number of packets that need to be transmitted every second in order to deliver the codec bit rate. For example, for a G.729 call with voice payload size per packet of 20 bytes (160 bits), 50 packets need to be transmitted every second [50 pps = (8 Kbps) / (160 bits per packet) ]

 

But because VoIP is symmetrical – a telephone call is, of course, two-way, most people listen as well as talk – the major bottleneck is your upstream bandwidth which is normally only 256 or 398kbs or sometimes 800kbs.

MODS TO ASTERISK

By , October 23, 2013 6:51 PM

Required edit to Callcentric trunk and default configuration options

In your sip.conf, or sip_general_custom.conf, file please make sure that the following values are present. Note that there should only be a single line like the following in the file being edited:

context=incoming

Once the change has been made please save the file.

Next please find your current configured Callcentric trunk, either through the web interface command line or method of your choice. Then make sure that the following values are present in the PEER details:

context=incoming

Then in your register string please make sure that your 1777 number is NOT present at the end of the string, “/1777MYCCID”. Your register string should be formatted in the following manner:

1777MYCCID:SUPERSECRET@callcentric.com

* Where 1777MYCCID is your Callcentric account number and SUPERSECRET is the same password you create when you sign up for your Callcentric account. Optionally you may change your SIP password in your preferences.

Once done save your changes and reload your Asterisk process.

 

PARKING
*70
recover parked call default 71? 70
or if a code is read out to them dial the number eg 71

CALL RECORDING LOCATION MOD
cd /var/spool/asterisk/monitor/
mods to be assigned

FAIL2BAN Exclude
nano /etc/fail2ban/jail.local
ignoreip = 127.0.0.1 192.168.1.0/24 59.167.210.253 118.107.8.103 118.107.8.251

Recordings Fail to List
nano /var/www/html/recordings/includes/main.conf.php
$SETTINGS_MAX_FILES=3000
to
$SETTINGS_MAX_FILES=3000000000000000;

PIAF MYSQL CID STRING
TEST
SELECT CONCAT (patients.LastName, ‘,’, FirstName) FROM patients WHERE patients.PhoneNumber LIKE ‘%[NUMBER]%’ OR patients.MobileNumber LIKE ‘%[NUMBER]%’
LIVE

vSphere client port forwarding

By , October 21, 2013 11:43 PM

Basically, vSphere uses ports 902,903,443 for communication, but I am forwarding more than just those ports.

ASTERISK DEFAULT LOCATIONS and LOCALITY

By , October 21, 2013 6:01 PM

indications.conf

The sounds that people expect from the telephone network vary in different parts of the world. Different countries or regions present different sounds for events such as dialtone, busy signal, ringback, congestion, and so forth.

The indications.conf file defines the parameters for the various sounds that a telephone system might be expected to produce, and allows you to customize them. In the early days of Asterisk this file only contained sounds for a limited number of countries, but it is now quite comprehensive.

To assign the tones common for your region to channels, you can simply assign the tonezone using the CHANNEL() function, and that tonezone will apply for the duration of the call (unless changed later):

Set(CHANNEL(tonezone)=[yourcountry]) ; i.e., uk, de, etc.

However, since signaling from a call could come from various places (from the carrier, from Asterisk, or even from the set itself), you should note that simply setting the tonezone in your dialplan does not guarantee that those tones will be presented in all situations.

 

Table 4.1. asterisk.conf [directories] section

Option Value/Example Notes
astetcdir /etc/asterisk The location where the Asterisk configuration files are stored.
astmoddir /usr/lib/asterisk/modules The location where loadable modules are stored.
astvarlibdir /var/lib/asterisk The base location for variable state information used by various parts of Asterisk. This includes items that are written out by Asterisk at runtime.
astdbdir /var/lib/asterisk Asterisk will store its internal database in this directory as a file called astdb.
astkeydir /var/lib/asterisk Asterisk will use a subdirectory called keys in this directory as the default location for loading keys for encryption.
astdatadir /var/lib/asterisk This is the base directory for system-provided data, such as the sound files that come with Asterisk.
astagidir /var/lib/asterisk/ agi-bin Asterisk will use a subdirectory called agi-bin in this directory as the default location for loading AGI scripts.
astspooldir /var/spool/asterisk The Asterisk spool directory, where voicemail, call recordings, and the call origination spool are stored.
astrundir /var/run/asterisk The location where Asterisk will write out its UNIX control socket as well as its process ID (PID) file.
astlogdir /var/log/asterisk The directory where Asterisk will store its log files.

Telstra activate Max ring time mobile

By , October 19, 2013 3:50 PM

**61*101**30#

Thomas Challenger Thomas Challenger