Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by kikuchiyo (Friar)
on Dec 04, 2021 at 18:18 UTC ( #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? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2022-08-18 01:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?