[asterisk-users] Monitor() - splitting long calls into several sound files

Kingsley Tart kingsley at skymarket.co.uk
Mon Nov 14 07:34:11 CST 2011


Hi,

I'm not sure whether this is possible but if it is, I'm sure someone on
here might know ...

Is it possible to use Monitor() to record a conversation[1], but make it
start a new pair of wav files at intervals (eg every 15 minutes) if the
calls go on for a long time?

We already have this happening if the callers press a specific key
sequence (which we've defined in features.conf) to pause/resume
recordings but I'd also like to do this automatically during long calls
so that we can split the recordings up into several 'legs'.

The reason for this is that the wav files spool to a ram disk[2] and if
there are quite a few very long calls they can fill the ram disk up. If
we could split long calls into a series of smaller files, we could move
files off the ramdisk once they're no longer being actively written to
and recombine them later once the call has finished.

Any ideas?

[1] we used to use MixMonitor() but we stopped using that for a valid
reason though I can't remember what the reason was now.

[2] if spooling to disk we get audio dropouts when a lot of calls are
being simultaneously recorded

Cheers,
Kingsley.




More information about the asterisk-users mailing list