PBXes » English » Miscellaneous » RE: Clarification on bandwidth usage...
Print Page | Recommend to Friend | Add Thread to Favorites
Post New Thread Thread is closed
Author
Post « Previous Thread | Next Thread »
itg
Grünschnabel


Registration Date: 15.01.2007
Posts: 32

Clarification on bandwidth usage... Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information Go to the top of this page

I have some questions for better understanding the bandwidth usage and relationship with PBXes.

Question #1:

Who decide which codec use in a conversation ?

In other words.... if i set up my ip phone (or ata) to use a specific code (for example G711), it's certain that it will be used ?

Question #2:
What append when PBXEs receive a calling and connect the two points ?
The audio cross trough PBXEs (increasing the bandwidth usage) or it limits only to connect the caller and the receiver directly ?

Question #3:
Could PBXes modify the codec used before starting a conversation ?

Example:
The caller use G711 codec,
The called support two codecs : G729 and G711
In this situation, which codec will be used for comunication ? G711 ?

Could PBXEs force the G729 codec to reduce bandwidth usage ?

Thanks to all for support

Happy New Year !

28.12.2007 17:44 itgs is offline Search for Posts by itgs Add itgs to your Buddy List
Dia
Premium Account


Registration Date: 03.03.2006
Posts: 1443

Technical answers regarding vocoder selection & Re-Invites Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information Go to the top of this page

Since most of these questions are purely technical, I will answer the part which is rather involved and tedious.

Answer #1:
Your SIP User Agent's "opinion" is very important during the vocoder negotiation of every VoIP call. There can be a couple of outcomes from the negotiation, which I will outline below. In general, if the SIP UA and the SIP Proxy(ies) don't have a common vocoder in their respective SDP messages, the call will fail.

• If you lock your SIP UA (ATA, IP phone, soft-client) to only allow calls with the G.723.1 vocoder, the call will fail since PBXes does not support this vocoder.
• If you lock your SIP UA for calls with only the G.723.1 and G.729 vocoders, the call will fail unless you have purchased a G.729 license.
• If you don't have a G.729 license, but you allowed the G.729 and G.711 vocoders on your SIP UA, and have the "G.729 Passthru" selected in the General Settings section, and the remote SIP UA or Gateway support the G.729 vocoder in their SDP, the call can connect with G.729.
• If you lock your SIP UA to the G.711 vocoder only, and the remote SIP UA or Gateway support the G.711 vocoder in their SDP, the call can connect with G.711.

As you can see from the above cases, the vocoder(s) which will be selected on the originating ATA, play a very important role whether a call connects or not. As a rule of thumb allowing both the G.729 and G.711 vocoders in your SIP UAs and selecting the "G.729 Passthru" option under the General Settings section, will allow most calls to go through.

Answer #2:
When PBXes receives a call, it looks whether the "audio bypass" option is set to Yes, on the Trunk(s) and the Extension(s) from which the call originates or terminates to. If both of them are set to Yes, after the above negotiations are successful, it sends Re-Invites to the appropriate parties and the RTP stream (voice) goes directly between the SIP UAs and/or Gateway. If one of them is set to No the RTP stream goes through the PBXes server.

Sometimes the SIP UAs and/or Gateways do not support Re-Invites, and therefore the "audio bypass" option needs to be set to No, on the extension or the trunk which does not support Re-Invite. In the case which one of them does not support it but the option was set to Yes, one of the callers experiences the dreaded "One-Way Voice" problem, where they can hear him but he cannot hear them, or the exact opposite.

Answer #3:
PBXes cannot modify the setting of the vocoder, since it is pointless if the originating SIP UA does not support a vocoder. What it can do though, is change the order of the vocoders and put G.729 before G.711, but the call will still fail if one of the SIP UAs and/or Gateway does not support at least one of the vocoders in the SDP.

The short answer to the question, which vocoder will be used in a given call, is that it depends on the vocoders of all the parties involved. The shortest answer is, the vocoder which is common to every SIP UA and/or Gateway involved.

Regarding the last question: "Could PBXEs force the G729 codec to reduce bandwidth usage?" the answer is that, it doesn't have to force any vocoder, since each user controls the vocoders it wants to use for every call. So there is no need for enforcing any vocoder, which can cause a lot more problems than it solves.

Caveat
The above answers, cover the technical aspect of vocoder selection and the use of Re-Invites. They do not however cover how the "Usage" statistics are calculated, or anything else related to it. This should be treated as a general explanation of how vocoder selection works and how Re-Invites work in the VoIP universe.

29.12.2007 01:49 Diafora is offline Search for Posts by Diafora Add Diafora to your Buddy List
itg
Grünschnabel


Registration Date: 15.01.2007
Posts: 32

RE: Technical answers regarding vocoder selection & Re-Invites Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information Go to the top of this page

Zitat:
Originally posted by Diafora
Caveat
The above answers, cover the technical aspect of vocoder selection and the use of Re-Invites. They do not however cover how the "Usage" statistics are calculated, or anything else related to it. This should be treated as a general explanation of how vocoder selection works and how Re-Invites work in the VoIP universe.


Thanks Diafora for your explanation.

The only thing I don't understand is why you didn't answer my question #2, that was mainly the reason of my post.

Maybe is there particulary reason I don't know ??? verwirrt

I'm your customer, and I think there is nothing strange for me and all your customers ask to understand which parameters impact on the bandwidth usage to optimize the resources.

For example....:

assuming one hour of conversation between two SIP phones using G729 codec, estimating the well known 16Kbps usage, is it correct to state that your system will calculate an average bandwidth consumption equal to : 16Kbps x 3600 seconds ?

Moreover......

if I set the G729 codec passtrough enable to yes, is it also correct that bandwidth usage I above mentioned, will be strongly reduced ?

Thanks for your answers.
Best regards.

29.12.2007 16:25 itgs is offline Search for Posts by itgs Add itgs to your Buddy List
i-p
Super Moderator


Registration Date: 14.01.2006
Posts: 4775

Pfeil RE: Clarification on bandwidth usage... Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information Go to the top of this page

http://www1.pbxes.com/forum/thread.php?threadid=1299

29.12.2007 16:32 i-p-tel is offline Search for Posts by i-p-tel Add i-p-tel to your Buddy List
 
Post New Thread Thread is closed
Go to:

Powered by Burning Board Lite 1.0.2 © 2001-2004 WoltLab GmbH
English Translation by Satelk