У Вас - Asterisk 12.8.2
а у ТС- Asterisk 13.15.0
discripter писал(а):$req = "Action: Setvar\r\nChannel: $channel\r\nVariable: $key\r\nValue: $value\r\n\r\n";
discripter писал(а):$req = "Action: Redirect\r\nChannel: $channel\r\nContext: $context\r\nExten: $exten\r\nPriority: 1\r\n\r\n";
А что говорит: core show function DENOISE
core show function DENOISE
-= Info about function 'DENOISE' =-
[Synopsis]
Apply noise reduction to audio on a channel.
[Description]
The DENOISE function will apply noise reduction to audio on the channel that it
is executed on. It is very useful for noisy analog lines, especially when
adjusting gains or using AGC. Use 'rx' for audio received from the channel and
'tx' to apply the filter to the audio being sent to the channel.
Examples:
exten => 1,1,Set(DENOISE(rx)=on)
exten => 1,2,Set(DENOISE(tx)=off)
[Syntax]
DENOISE(channeldirection)
[Arguments]
channeldirection
This can be either 'rx' or 'tx' the values that can be set to this are
either 'on' and 'off'
[See Also]
Not available
discripter писал(а):
$req = "Action: Redirect\r\nChannel: $channel\r\nContext: $context\r\nExten: $exten\r\nPriority: 1\r\n\r\n";
говорит только о том, что меняется некая переменная и редиректится какой-то там канал.
Приблизительно как утверждать что $c всегда 4, потому что $a + $b = $c.
убедитесь что DENOISE(rx)=on прогнав вызов через контекст [call-out]
discripter писал(а):есть ли способ во время звонка надежно проверить что ...
отвечу в вашем стиле - способ есть, вот код:
while(){
@listen = $asterisk->read_response;
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 34