How to play background music while call?

after connected call, to end call, one music should be play whole time.

the music should be Call Center Sounds - Work From Home - Office - Ambience - YouTube .

this is possible?

There is a module called Music On Hold which can be played on different place such as queues, ring groups, when on hold, etc.

Check out this guide → Music on Hold User Guide - PBX GUI - Documentation

On the other hand, if you need to just playback the music and nothing else, maybe MoH is not the way but we will need more information about what you are looking for.

I need background music.
while calling , the music should be play…

You can’t easily stream YouTube URLs as MOH, but you can get the source by installing youtube-dl and

youtube-dl https://www.youtube.com/watch\?v\=I0qpNCg4rMo

This will write out to a matroska file that you can convert to an asterisk appropriate wav file with

ffmpeg -i Call\ Center\ Sounds\ -\ Work\ From\ Home\ -\ Office\ -\ \ Ambience-I0qpNCg4rMo.mkv -map 0:1 -acodec pcm_s16le -ac 1 -ar 8000 boringcallcenter.wav

But you will need to respect any copy-write or license that the owner has before using it as a source for MOH.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.