Skip to main content

Recording Conversations

Posted by cbbs70a on Mon, 06/01/2009

All;
I have just come across an issue where a customer wants to automatically email all recorded conversations to himself. Not that big of a deal, except that I havecome across a problem with the filename itself. I have the following:

${TOUCH_MONITOR} = in-300-2009-06-01-13:03:02-3016943084

but in the monitor directory, the file is actually called:

auto-1243875787-in-300-2009-06-01-13:03:02-3016943084.wav

I am not sure where the "auto-nnnnnnnnnn" came from or why it is not the same as what TOUCH_MONITOR has.

In the dialplan I have TOUCH_MONITOR=${FNAME}-${DIALED_NUMBER}-${STRFTIME(,,%F-%T)}-${CALLERID(num)}${TL_DASH}${tenant})

I am running V6.0.1.70 and STE.

I must be missing something obvious.
Thanks
FSD


Submitted by eeman on Mon, 06/01/2009 Permalink

i dont think the file combined. 1243875787 is a epoch timestamp. did you use #9 to start/stop recording? TOUCH_MONITOR is only used for features.conf's one touch recording. Also what version of asterisk? theres been some features.conf bugs as of late.

Submitted by cbbs70a on Mon, 06/01/2009 Permalink

Thanks for the response. Yes, I figured nnnnnnnnnn was an epoch timestamp. By watching what was created in the monitor directory while I activated one-touch, I saw two files created. One was called

auto-epoch-in-ext-date-time-callerid-in.wav and auto-epoch-in-ext-date-time-callerid-out.wav.

That was mixed into the single file above, auto-epoch-in-ext-date-time-callerid.wav. In this case, I am using the Thirdlane ISO STE which uses Asterisk 1.4.23.1 with TL 6.0.1.70. On this system, automon is defined as *4 in features.conf. My problem with this is that after the call is over, I need to automatically e-mail the administrator the file. My idea was to get the filename from TOUCH_MONITOR, but that is not the case here. Any insight at all would be greatly appreciated. The only thing that is non-standard is in extensions.conf where I have under GLOBALS:

DYNAMIC_FEATURES=automon. but commenting that out did nothing.

Regards;

FSD