Hi everyone,
I’ve created a custom MusicOnHold class to run a shell script to play from sound card with arecord in Ubuntu.
Everything is ok and use it as MusicOnHold for dial command …
Asterisk log show start of MusicOnHold and after answering the call show stop of MusicOnHold.
BUT at the background by stopping of MusicOnHold, the process of shell script is still running and not killed.