[prev in list] [next in list] [prev in thread] [next in thread]
List: asterisk-dev
Subject: Re: [asterisk-dev] EAGI audio format
From: John Fawcett <john.ml () erba ! tv>
Date: 2016-06-19 15:41:56
Message-ID: df94f389-9402-7f87-b0a6-d4573c2f16db () erba ! tv
[Download RAW message or body]
On 06/19/2016 02:21 PM, John Fawcett wrote:
> Hi
>
> I noticed that the audio format provided in the file descriptor 3 to an
> EAGI script, at least on my Asterisk 13.9.1 system, always seems to be
> slin - taken from the CHANNEL(audioreadformat) variable. Is it possible
> to change the format of the audio sent to EAGI, for example using sln48?
>
> Looking through the code I could not see where the audioreadformat for
> EAGI was being decided.
>
> thanks for any help
>
> John
>
>
>
H
just following up, I found it:
--- res/res_agi.c.original 2016-06-19 17:39:06.554220638 +0200
+++ res/res_agi.c 2016-06-19 17:39:23.405290623 +0200
@@ -4200,7 +4200,7 @@
return 0;
}
readformat = ao2_bump(ast_channel_readformat(chan));
- if (ast_set_read_format(chan, ast_format_slin)) {
+ if (ast_set_read_format(chan, ast_format_slin48)) {
ast_log(LOG_WARNING, "Unable to set channel '%s' to linear
mode\n", ast_channel_name(chan));
ao2_ref(readformat, -1);
return -1;
Maybe it's worthwhile to make it configurable. I'll file an enhancement.
John
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic