Search code examples
restcomm

Restcomm Media Player fail to paly file on S3 with error 312


I have a file on AWS S3 that is public: https://s3-eu-west-1.amazonaws.com/voxist-greetings/33631222504/33651291239_95113eed-386b-4264-a4cf-46182faae125COUCOU1.wav

Now when RVD try to play it I get: INFO [org.mobicents.servlet.restcomm.interpreter.VoiceInterpreter] (RestComm-akka.actor.default-dispatcher-8586) MediaGroupResponse, succeeded: false jain.protocol.ip.mgcp.JainIPMgcpException: The IVR request failed with the following error code 312

I don't know why... The same file used to work with another name.

Thanks for any hint on how to debug this.


Solution

  • The problem seems to happen on Media Server side. More specifically, it seems the file cannot be opened for some reason.

    Relevant code line can be found here.

    Can you please take a tcpdump and share it, so we can see the MGCP Play request?

    Hope this helps.

    UPDATE:

    Here is an example:

    enter image description here

    The 200 OK simply indicates that the MGCP transaction completed successfully. Now we need to dissect the notification (NTFY) sent from Media Server to RestComm, mainly the ObservedEvents parameter.

    If you look at the picture, you will see the event triggered is an OperationFailed (of) with ReturnCode (rc) equal to 312, which is an error. Relevant link to specs can be found here.

    To summarise, Media Server receives the request to play the file (in this case a cached version of it) but if fails to open the URL for some reason.

    Is the URL reachable from Media Server side?