ari icon indicating copy to clipboard operation
ari copied to clipboard

Creating a live recording via channel.Record does not support liverecording.Stop()

Open sheenobu opened this issue 10 years ago • 4 comments

404 Not Found is returned when attempting to Stop a live recording that has been created via channel.Record(...) .

Stopping a live recording via channel.Record can be done via OnTerminate DTMF signal instead, so there is a current workaround.

sheenobu avatar Jun 01 '15 01:06 sheenobu

There is, I believe, a unit test for this. Did you happen to check its implementation?

Ulexus avatar Jun 01 '15 01:06 Ulexus

Yes. The only real different being that RecordRequest is different enough for concern (Name has slashes since it points to a nested file.. attempted to escape filename, format is ulaw instead of wav in my code). I'll check and see if the name formatting is the issue.

sheenobu avatar Jun 02 '15 19:06 sheenobu

@Ulexus : pushed up an offending test. Details are here: http://godoc.org/net/url#URL

Note that the Path field is stored in decoded form: /%47%6f%2f becomes /Go/. A consequence is that it is impossible to tell which slashes in the Path were slashes in the raw URL and which were %2f. This distinction is rarely important, but when it is a client must use other routines to parse the raw URL or construct the parsed URL. For example, an HTTP server can consult req.RequestURI, and an HTTP client can use URL{Host: "example.com", Opaque: "//example.com/Go%2f"} instead of URL{Host: "example.com", Path: "/Go/"}.

sheenobu avatar Jun 02 '15 21:06 sheenobu

note to self: check to see if this is still actually an issue...

Ulexus avatar Sep 27 '19 14:09 Ulexus