Record component

Dedicated forum for the visual 'drag and drop' voice application designer that allows easy creation of advanced voice applications without programming knowledge

Moderators: kevin, 3CX staff

Record component

Postby elantech » Fri Aug 07, 2009 1:47 pm

Record component after recording generate error error.semantic.ecmascript
Only for me?
elantech
New User
 
Posts: 21
Joined: Wed Jan 23, 2008 7:47 am

Re: Record component

Postby elantech » Fri Aug 07, 2009 1:53 pm

Sorry, error was from next component E-Mail Sender.
Let's discuss record component in this topic anywhere :)
elantech
New User
 
Posts: 21
Joined: Wed Jan 23, 2008 7:47 am

Re: Record component

Postby elantech » Fri Aug 07, 2009 1:57 pm

I want to send via email recorded audio.
I should save it to file and send file?
elantech
New User
 
Posts: 21
Joined: Wed Jan 23, 2008 7:47 am

Re: Record component

Postby VAD_Support » Fri Aug 07, 2009 2:08 pm

Yes, you need to save it to a file, and then send the file attached in an e-mail message.
Are you having any problem with that?
VAD_Support
3CX Valued Professional
3CX Valued Professional
 
Posts: 421
Joined: Thu Aug 06, 2009 5:29 pm

Re: Record component

Postby elantech » Fri Aug 07, 2009 2:09 pm

Yes, have :)
When i set the component to save the file, component end with same error.
elantech
New User
 
Posts: 21
Joined: Wed Jan 23, 2008 7:47 am

Re: Record component

Postby VAD_Support » Fri Aug 07, 2009 2:18 pm

If you get the error.semantic.ecmascript error, you probably forgot to quote the file name.
The file name is an expression, so you can create the name dinamically. So, if you want to save the audio to the file Record.wav, you need to quote it like:
'Record.wav'

In the e-mail sender component, when you attach a file, the file name is an expression too. So, you need to add quotes there too.

As a common rule, everywhere you have the expression editor button, what is in the left is an expression, and if you want a constant string, you need to add quotes to it.

Let me know if this helped.
VAD_Support
3CX Valued Professional
3CX Valued Professional
 
Posts: 421
Joined: Thu Aug 06, 2009 5:29 pm

Re: Record component

Postby elantech » Fri Aug 07, 2009 2:27 pm

Thank you!

If i set Filename to 'somefile.wav' all ok.
When to 'c:\somefile.wav' isnot work.
Also i tryed 'c:\\somefile.wav', 'c:/somefile.wav' - not work.
May be it is permission issues?
elantech
New User
 
Posts: 21
Joined: Wed Jan 23, 2008 7:47 am

Re: Record component

Postby VAD_Support » Fri Aug 07, 2009 2:44 pm

The problem is that the VAD callflow is executing as a web application, and the web server does not allow it to write outside the web site... So the file needs to be stored under C:\Documents and Settings\All Users\Application Data\3CX\Data\Http\Interface\ivr.

If you need to save it somewhere else, you will need to temporaly save it in the default folder, and then move it using an External Code Execution component, calling a .NET DLL that moves the file outside the web server folder...
VAD_Support
3CX Valued Professional
3CX Valued Professional
 
Posts: 421
Joined: Thu Aug 06, 2009 5:29 pm

Re: Record component

Postby elantech » Fri Aug 07, 2009 2:48 pm

So, my Record component save to file 'somefile.wav' (i saw this file in the folder of app under program files).
Next Email Sender component can't send this file. In attachement property i setup 'somefile.wav' (without path, with quotas)
Without attachements email sent OK.
What it can be?
elantech
New User
 
Posts: 21
Joined: Wed Jan 23, 2008 7:47 am

Re: Record component

Postby elantech » Fri Aug 07, 2009 3:16 pm

Can you explain how i construct path for saving files and reading?
elantech
New User
 
Posts: 21
Joined: Wed Jan 23, 2008 7:47 am

Re: Record component

Postby elantech » Fri Aug 07, 2009 3:31 pm

Sorry for to many posts.

I found that best way for work with files is to set path for saving and loading like 'Recording\filename.wav'. Files saved under working path of application.
elantech
New User
 
Posts: 21
Joined: Wed Jan 23, 2008 7:47 am

Re: Record component

Postby VAD_Support » Fri Aug 07, 2009 7:25 pm

Hi,

First I suggest that you try to save and read the file under the working folder. To do this, set the "FileName" property of the Record component to 'Record.wav' (with quotes).

In order to send that file as an e-mail attachment, you need to configure the E-mail sender component with a single attachment row:
Name: Record.wav (without quotes)
File: 'Record.wav' (with quotes)

Why setting Name and File? The "Name" is the name of the file that will be received by the user in the e-mail. This is a constant value (not an expression) so it does not need to be quoted. The "File" is the relative path to the file. In this case it is the same than the name because it is in the working directory, but it could contain folders, etc. It must contain quotes because it is an expression.

You can use the expression editor to build an expression and create file names or paths using variables, like the caller number, date and time, etc.

No problem with too many posts, we want to improve this application to be more simple to use, so your feedback is very valuable.

Thanks,
VAD_Support
3CX Valued Professional
3CX Valued Professional
 
Posts: 421
Joined: Thu Aug 06, 2009 5:29 pm

Re: Record component

Postby elantech » Sun Aug 09, 2009 10:05 am

Thank you.

After pressing # component wait about 10sec with silence. It is normal?
elantech
New User
 
Posts: 21
Joined: Wed Jan 23, 2008 7:47 am

Re: Record component

Postby VAD_Support » Mon Aug 10, 2009 1:37 pm

It depends on how you configured the component. If "Terminate by DTMF" is set to true, then it should finish when any DTMF digit is detected. If it is set to false, then it waits to hear "Final Silence" seconds of silence.
VAD_Support
3CX Valued Professional
3CX Valued Professional
 
Posts: 421
Joined: Thu Aug 06, 2009 5:29 pm

Re: Record component

Postby elantech » Mon Aug 10, 2009 1:46 pm

Iam about behavior with "Press DTMF" option.
elantech
New User
 
Posts: 21
Joined: Wed Jan 23, 2008 7:47 am

Next

Return to 3CX Voice Application Designer (VAD)

Who is online

Users browsing this forum: No registered users and 0 guests