Hello Nafiz,
In order for the Media Server to play a file you need to send a Play signal, where you specify the URL of the file.
If the file is local then the URL format will be file://path_to_file/filename.wav; otherwise if the file is hosted remotely then the URL format will be
http://something/filename.wav.
This is where the Media Server receives the Play signal and sets the URL (sent as a parameter of the MGCP request):
The underlying AudioPlayer will then process the URL, first guaranteeing that it is not malformed and that the file type is supported: .wav, .gsm, .tone, .mov, .mp4, .3gp. If all is fine, the player will open a stream to the file right away.
Finally, the AudioPlayer is activated so it can start processing the file and transmitting audio to the remote peer:
Let me know if this helps.
Regards,
- H