[asterisk-users] Recording the Calls to a USB Drive

listuser at spamomania.co.uk listuser at spamomania.co.uk
Thu Dec 24 12:43:19 CST 2009


On Thu, 2009-12-24 at 18:53 +0100, Gergo Csibra wrote:
> Thursday, December 24, 2009, 5:41:46 PM, Danny wrote:
> 
> > Just my opinion; unless you are recording long or many long calls, you
> > should record to your local drive, then copy the files to the USB drive.
> > Asterisk is a very good tool - you don't need to mess it up by introducing
> > an easy "point of failure".
> 
> Yes. I do this since 3 years and work very well.
> 
What would be the problem with mounting the usb disc somewhere like:
/mnt/usbdisk and using something like:

exten => s,2,MixMonitor(/mnt/usbdisc/${STRFTIME(${EPOCH},,%Y%m%d-%H%M%
S)}-${UNIQUEID}.wav,v(0))

???

This should be good for anything capable of being mounted (smb, nfs et
al). That's one of the beautiful things about Linux. It does not care
what the device is - just that it can find it.

Of course, the caveat - if it's not mounted, it can't write - but I'm
sure the excellent developers of Asterisk have coded to catch basic
exceptions like 'file not found'.






More information about the asterisk-users mailing list