Eyal Mahalal
Eyal Mahalal

Reputation: 5

Play caller a radio stream with asterisk

I using asterisk with php scripts that use php-agi. What I need to do is to play the caller a radio stream, the stream is coming from dynamic url (It can be changed by the owner of the line). I try MOH (not so good). I try to use MP3Player $agi-exec("MP3Player", $streamUrl); but I get this error "sh: 1: MP3Player: not found"

I use asterisk 1.6

Did any one have a solution for this problem?

Upvotes: 0

Views: 1171

Answers (1)

arheops
arheops

Reputation: 15259

AGI exec command will run MP3Plyaer asterisk COMMAND, which never was created. You should use EAGI script or use moh class with stream.

https://www.voip-info.org/asterisk-eagi/

https://www.voip-info.org/asterisk-config-musiconholdconf/#StreamradiousingMPlayerforMOH

Upvotes: 0

Related Questions