Pero no lo toma... o sea si le tiro un
aplay -v -D plughw:0,0 /var/lib/asterisk/mohmp3/fpm-sunshine.wav aplay -v -D plughw:0,0 /var/lib/asterisk/mohmp3/fpm-sunshine.wav
el audio se escucha
en el alsa.conf
cat alsa.conf
;
; Open Sound System Console Driver Configuration File
;
[general]
autoanswer=yes
context=from-internal
extension=s
language=es
mohinterpret=default
; To set which ALSA device to use, change this parameter
input_device=default
overridecontext=yes
playbackonly=yes
console list devices
===
=== ---------------------------------------------------------
=== Device Name: default
=== ---> Active: Yes
=== ---> Input Device: default
=== ---> Output Device: default
=== ---> Context: default
=== ---> Extension: s
=== ---> CallerID Num: 2564286000
=== ---> CallerID Name: MyName Here
=== ---> MOH Interpret: default
=== ---> Language: en
=== ---> Parkinglot:
=== ---> Muted: No
=== ---> Auto-Answer: No
=== ---> Override Context: No
=== ---------------------------------------------------------
Pero cuando marco la extensión tira :
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [ 1003@from-internal:1] Answer("SIP/1001-00000014", "") in new stack
-- Executing [ 1003@from-internal:2] Dial("SIP/1001-00000014", "console/default,20,tTwW") in new stack
--- <("<) --- Call to device 'default' on console from 'MyName Here' <2564286000> --- (>")> ---
--- <("<) --- Type 'console answer' to answer, or use the 'autoanswer' option for future calls --- (>")> ---
-- Called console/default
-- Console/default is ringing
[2018-07-20 12:03:16] WARNING[22349][C-0000001a]: channel.c:5128 ast_write: Codec mismatch on channel Console/default setting write format to slin from slin16 native formats (slin16)
--- <("<) --- Hangup on Console --- (>")> ---
== Spawn extension (from-internal, *1003, 2) exited non-zero on 'SIP/1001-00000014'
-- Executing [h@from-internal:1] Hangup("SIP/1001-00000014", "") in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/1001-00000014