I have used asterisk MusicOnHold with that I have to point a particlar folder in musiconhold.conf
and during the execution all the tone inside that folder are played for all the users.
But now I have to play a specific sound file for each user uploaded by them.My problem is that how can I play this file for user.Because if he uploads a sound file then I have to manually create a class in musiconhold.conf
pointing to that folder the do moh reload
.
I just want to automate the things to the user just uploads the sound file and during the call of that user in extensions.conf
I can point to that sound file and it will be played without reload or adding context in musiconhold.conf
everytime.
For ex. the way Playback(pathToSoundfil)
works which takes tone path directly is there any function like in musiconhold for directly passing the sound file?
Thanks