[asterisk-dev] Changing millisecond sampling rate for console_write in chan_console

Mark Michelson mmichelson at digium.com
Wed Aug 28 12:47:42 CDT 2013


On 08/28/2013 11:56 AM, Ryan Conrad wrote:
> Is there any way to change the SIP channel driver to send in 8 kHz at 
> 10ms?
>

You can try to nudge it that way somewhat. First off, you'll need to set 
"autoframing=yes" in the sip.conf general section. This will allow for 
the ptime sections of SDPs to be honored. Next, when defining your SIP 
peers, you can specify allowed codecs like so:

allow=ulaw:10

This way, the ulaw codec will be offered with a suggested ptime of 10 
instead of the default 20.

Give these things a try. They may be all you need and you may not need 
to alter code any. The problem is that you may find implementations will 
still send you 20 ms segments even though you requested 10.

Mark Michelson



More information about the asterisk-dev mailing list