Hi,
I want to stream live audio via the line in of the asterisk servers sound card to one of the particpants in a conference bridge. I have tried using the ChanSpy application and whispering and using MusicOnHold to feed the sound but that doesn’t work even though I’m using the MOH default class and are only streaming files. There is no sound whispered. But if I instead of MusicOnHold is using the Playback application it works to “whisper” sound to one of the participants only. If I understand it right I must use the MusicOnHold application to be able to feed audio from the sound card?
My test setup looks as follows:
extensions.conf:
[whisper-to-translator]
exten => s,1,Verbose(whisper)
exten => s,n,Answer()
exten => s,n,ChanSpy(SIP/6001,w)
test.call
Channel: Local/s@whisper-to-translator
Application: MusicOnHold
Data:
Have tried a lot of reading and testing but I’m now lost. Would really appriciate help to understand if it is possible to do what I’m trying to accomplish since this is my first try to use Asterisk.
Thanks!
Log:
[2015-06-07 19:51:31] VARNING[22585]: pbx_spool.c:309 safe_append: Unable to set utime on /var/spool/asterisk/outgoing/test.call: Operation not permitted
-- Attempting call on Local/s@whisper-to-translator for application MusicOnHold() (Retry 1)
-- Executing [s@whisper-to-translator:1] Answer("Local/s@whisper-to-translator-00000000;2", "") in new stack
> Channel Local/s@whisper-to-translator-00000000;1 was answered.
> Launching MusicOnHold() on Local/s@whisper-to-translator-00000000;1
-- Started music on hold, class 'default', on Local/s@whisper-to-translator-00000000;1
-- Executing [s@whisper-to-translator:2] ChanSpy("Local/s@whisper-to-translator-00000000;2", "SIP/6001,w") in new stack
-- <Local/s@whisper-to-translator-00000000;2> Playing 'beep.gsm' (language 'en')
-- <Local/s@whisper-to-translator-00000000;2> Playing 'spy-sip.gsm' (language 'en')
-- <Local/s@whisper-to-translator-00000000;2> Playing 'digits/6.gsm' (language 'en')
-- <Local/s@whisper-to-translator-00000000;2> Playing 'digits/0.gsm' (language 'en')
-- <Local/s@whisper-to-translator-00000000;2> Playing 'digits/0.gsm' (language 'en')
-- <Local/s@whisper-to-translator-00000000;2> Playing 'digits/1.gsm' (language 'en')
== Spying on channel SIP/6001-00000000
[2015-06-07 19:51:35] NOTICE[22630][C-00000001]: app_chanspy.c:491 start_spying: Attaching Local/s@whisper-to-translator-00000000;2 to SIP/6001-00000000
[2015-06-07 19:51:35] NOTICE[22630][C-00000001]: app_chanspy.c:491 start_spying: Attaching Local/s@whisper-to-translator-00000000;2 to SIP/6001-00000000
localhost*CLI>