Custom MusicOnHold

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.

How can I kill that process from asterisk view?

I suggest you give us some details, such as how is your MoH class defined, and
what is the script?

Antony.

My class is

[default]
mode=custom
directory=/var/lib/asterisk/mohmp3
application=/usr/sbin/ast-playlinein

And my script is

#!/bin/bash
/usr/bin/arecord -q -c 1 -r 8000 --buffer-size=2048 -f S16_LE -t raw

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