Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: How can I reduce the time taken by wav file to save in /tmp folder

by kikuchiyo (Hermit)
on Dec 04, 2021 at 18:18 UTC ( [id://11139391]=note: print w/replies, xml ) Need Help??


in reply to How can I reduce the time taken by wav file to save in /tmp folder

It's hard to tell what you are trying to do, chances are that you haven't the slightest idea either, but I'm going to take a shot in the dark:

is the problem that you cannot reliably tell when has Asterisk finished with the recording?

In that case I'd recommend moving any kind of postprocessing out of the dialplan, AGI handlers etc. Instead, do it in a completely separate process, and use inotify with a IN_CLOSE_WRITE event mask to to monitor for files. In my experience once Asterisk closes a recording it doesn't reopen it, so it's safe to do any postprocessing steps (transcoding, speech-to-text, uploading etc.) on it.

  • Comment on Re: How can I reduce the time taken by wav file to save in /tmp folder

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11139391]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 19:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found