Skip to main content

Email Voice recording

Posted by douglas.ross on Mon, 09/10/2012

Hi,

I constantly get asked to move a voice recording from the ogm directory of our tenant, to another tenant or to another tenant on another server. The clients never want to record their own recordings, so we do it on our server.

So I thought, is there a way to clone and edit the voice prompt recording script, to send the recording in a email to who ever does the recordings. And then add the script to a feature code.

Then they can do the recording, get it in an email and upload it to the correct server and tenant.

Regards
Douglas


Submitted by eeman on Tue, 09/11/2012 Permalink

no the tenants are hard partitioned to avoid accidentally doing just that. but when you create a tenant, you can clone another tenant, including their recorded messages.

Submitted by douglas.ross on Tue, 09/11/2012 Permalink

Hi,

I think you misunderstood me. We dont want to copy voice recordings for new tenants.

A client calls in and wants a new recording, but doesn't want to do it themselves.
So we record it using our tenant, with a phone in our office. Now the problem is, that the new voice recording is under our tenant, and we cant move it without going into the server and moving it there.

We dont want to give our dialplan programmers access to the server itself, so now I need to move every file when they record something.

Submitted by chris on Wed, 09/12/2012 Permalink

You could probably clone and modify the tl-web-record script to do this. I would probably just add text arguments for the filename and tenant name and then have the script write the file to the tenant directly rather than email and upload. You should probably add a PIN to the script to make sure other users don't abuse it.

Submitted by douglas.ross on Wed, 09/12/2012 Permalink

Hi,

Initially that is what I did. The problem is, when the tenant is on another server. i used:

exten => s,n,System(scp file root@destip:/file location)

but for some reason this doesnt work from asterisk. When running this command in linux cli it works. Thats why I thought about sending it in a email.

Submitted by eeman on Wed, 09/12/2012 Permalink

when runnning it in linux CLI is it prompting you for a login? perhaps its because you are running asterisk as a non-root user and your certificate is in the root's .ssh/ directory?