[AsteriskBrasil] Erro ao tentar play em arquivo de som Freepbx

Estefanio Brunhara estefanio em brunhara.com
Segunda Julho 11 16:21:12 BRT 2016


Boa tarde!

 

Tenho um freepbx funcionando normal, estou precisando tantando fazer um
teste simples  no extensions_custom.conf 

 

vim  /etc/asterisk/extensions_custom.conf

 

[from-internal]

exten => 2222,1,Playback(BemVindoBrSky01.gsm)

 

Porém da o erro abaixo:

 

[2016-07-11 15:29:14] WARNING[13597]: file.c:666 ast_openstream_full: File
BemVindo.gsm does not exist in any format

[2016-07-11 15:29:14] WARNING[13597]: file.c:957 ast_streamfile: Unable to
open BemVindoBrSky01.gsm (format 0x4 (ulaw)): No such file or directory

[2016-07-11 15:29:14] WARNING[13597]: app_playback.c:479 playback_exec:
ast_streamfile failed on SIP/1006-00000020 for BemVindo.gsm

 

Já troquei o arquivos para  way, ulaw  gsm, pore da o mesmo erro, então
pensei que o arquivos poderia estar no diretório errado,  então copie para

 

/var/lib/asterisk/sounds

/var/lib/asterisk/sounds/custom

/var/lib/asterisk/sounds/en

/var/lib/asterisk/sounds/en/custon 

 

/usr/share/asterisk/sounds/custom

/usr/share/asterisk/sounds/en

/usr/share/asterisk/sounds/en/custom

 

Existe algum comando CLI que eu possa saber o local certo onde devo gravar o
arquivo de som ?

 

tentei 

exten => 2222,1,Playback(BemVindoBrSky01.way)

exten => 2222,1,Playback(BemVindoBrSky01.ulaw)

exten => 2222,1,Playback(BemVindoBrSky01.gsm)

 

exten => 2222,1,Playback(custom/BemVindoBrSky01.gsm)

exten => 2222,1,Playback(custom/BemVindoBrSky01.way)

exten => 2222,1,Playback(custom/BemVindoBrSky01.ulaw)

 

Então por fim tentei! 

 

exten => 2222,1,Set(GLOBAL(sounds_path)=/var/lib/asterisk/sounds/custom)

exten => 2222,2,Background(${sounds_path}/BemVindo.gsm)

 

    -- Executing [2222 at from-internal:1] Set("SIP/1006-00000006",
"GLOBAL(sounds_path)=/var/lib/asterisk/sounds/custom") in new stack

  == Setting global variable 'sounds_path' to
'/var/lib/asterisk/sounds/custom'

    -- Executing [2222 at from-internal:2] BackGround("SIP/1006-00000006",
"/var/lib/asterisk/sounds/custom/BemVindo.gsm") in new stack

[2016-07-11 16:15:46] WARNING[16267]: file.c:666 ast_openstream_full: File
/var/lib/asterisk/sounds/custom/BemVindo.gsm does not exist in any format

[2016-07-11 16:15:46] WARNING[16267]: file.c:957 ast_streamfile: Unable to
open /var/lib/asterisk/sounds/custom/BemVindo.gsm (format 0x4 (ulaw)): No
such file or directory

 

 

Existe algum comando CLI que eu possa saber o local certo onde devo gravar o
arquivo de som ?

 

 

 

 

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20160711/ba4f8231/attachment.html>


Mais detalhes sobre a lista de discussão AsteriskBrasil