G729|G723.1 VAD/Bitrate/SamplingRate etc... settings

171 views
Skip to first unread message

mser...@gmail.com

unread,
Apr 6, 2014, 9:08:15 AM4/6/14
to asteri...@googlegroups.com
Hello,

I successfully got the right codec .so files for my Asterisk 12.1 setup, and calls are maturing fine with good quality.

I have a few questions related to setting up the codecs' parameters (if that's possible), and a single problem with the G723.1 codec.

Let's start with the problem. The outgoing SDP packet doesn't differ at all when choosing sendrate=63 or sendrate=53, what differs though is the actual RTP packet sent from the Asterisk box once call is connected. In my case when connecting to a carrier in this case, I will see incoming 6.3 packets, but outgoing 5.3 packets - is that a bug in the Asterisk version I'm using (Asterisk 12.1.1), or a known case with no fix?

The other questions are VAD/SamplingRate etc... related - is it possible to play with the outgoing SDP a-line configurations? Such as removing the annexa line, manipulating the silencesupp line, chaning the codecs' sampling rate etc...?

Thank you in advance!
//M

Arkadi Shishlov

unread,
Apr 6, 2014, 11:36:38 AM4/6/14
to asteri...@googlegroups.com
On Sun, Apr 6, 2014 at 4:08 PM, <mser...@gmail.com> wrote:
> Let's start with the problem. The outgoing SDP packet doesn't differ at all
> when choosing sendrate=63 or sendrate=53, what differs though is the actual
> RTP packet sent from the Asterisk box once call is connected. In my case
> when connecting to a carrier in this case, I will see incoming 6.3 packets,
> but outgoing 5.3 packets - is that a bug in the Asterisk version I'm using
> (Asterisk 12.1.1), or a known case with no fix?

I would say there is no fix.
1. Asterisk codec API is 'codec_to_linear(binary): binary' and
'linear_to_codec(binary): binary' in nutshell. There is no way for
codec to participate in negotiation or influence session setup. Also,
no per-peer settings are possible thus global flag.
2. Incoming and outgoing legs of the call knows nothing about each
other. I.e. the coder and decoder are allocated independently by
Asterisk, so the codec cannot match peer settings.
3. IIRC, independently of chosen rate the SDP is the same. Is it different?
4. IIRC again, the peer must decode both codecs if it claims G.723.1 support.

For API details see Asterisk sources include/asterisk/translate.h.

> The other questions are VAD/SamplingRate etc... related - is it possible to
> play with the outgoing SDP a-line configurations? Such as removing the
> annexa line, manipulating the silencesupp line, chaning the codecs' sampling
> rate etc...?

That would be Asterisk SIP stack facilities, not the codec -
consequence of (1) above.

Muhammad El-Sergani

unread,
Apr 6, 2014, 3:20:20 PM4/6/14
to asteri...@googlegroups.com
Hello Arkadi,

Thanks for the feedback and the great info.
Well, the peer decodes both bitrates well - I just found it strange that no hints about the bitrate are there in the SDP, but now I understand, since codecs are not allowed (by design I guess) to change anything in SDP messages.

Outside the G723/G729 scope, is it possible to manipulate outgoing SDP a-lines? I know this is off-topic, just thought to ask if there's a way to do so with Asterisk out-of-the-box. No extra coding. 

Thanks
//M



--
You received this message because you are subscribed to a topic in the Google Groups "Asterisk G.729" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/asterisk-g729/OMAMDJK_n4Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to asterisk-g72...@googlegroups.com.
To post to this group, send email to asteri...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/asterisk-g729/CALGZcDJyfX8u4SeHjt%2B0Uh_o%2BwWUo_4%2BuBLbt3jwXqOywSYVKA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Arkadi Shishlov

unread,
Apr 8, 2014, 6:10:41 AM4/8/14
to asteri...@googlegroups.com
On Sun, Apr 6, 2014 at 10:20 PM, Muhammad El-Sergani <mser...@gmail.com> wrote:
> Outside the G723/G729 scope, is it possible to manipulate outgoing SDP a-lines?

I don't know.
Reply all
Reply to author
Forward
0 new messages