[Asterisk-Users] MP3Player problem
Areski
areski at e-group.org
Fri Nov 7 10:20:38 MST 2003
I though to it also, but really I don't know how can I get the pid of a
process ran by asterisk.
I mean, the only think I do it's :print "EXEC MP3Player \"$key\"\n";
Then asterisk take the hand with mp3player applications that will launch
mpg123, etc...
How can I get this pid of the good mpg123 process ? (even if there is
more than one mpg123 running...)
If you can give me a hand or a direction, it would be really great,
Thx,
Areski
On Fri, 2003-11-07 at 17:56, Ernest W. Lessenger wrote:
> At 07:01 AM 11/7/2003, you wrote:
> >Hi !
> >
> >Now I can hear nice mp3 through my phone... Great :P
> >And many thanks for your posts. Now it's working fine... hmmm almost !!!
> >
> >In fact, I m using DialenMP3.agi. It's a real nice agi script...
> >For those which would not know, you will find it here :
> >http://asterisk.gnuinter.net/files/digium/asterisk-ng/agi/
> >
> >What the agi script does, it's "EXEC MP3Player \"$key\"\n";
> >in which the key is the mp3 to play.
> >
> >Well the things weird, really weird, it's that the process, launched by
> >the agi script, is never killed !!! Any ideas to fix that ?!?
>
> You need to...
>
> 1) Set up a signal handler to handle the case when the mp3 player dies
> before you are ready (SIGCHILD)
> 2) Kill the mp3 player before you exit the AGI script (kill <procid>)
>
> I'll help you with this if you need it, it's really not all that hard.
>
> --Ernest
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list