Koozali.org: home of the SME Server

Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: bbialy on November 20, 2007, 03:36:26 PM

Title: call recording
Post by: bbialy on November 20, 2007, 03:36:26 PM
Hello,

How to write custom app for call recording

If I wrote something like this in extensions.conf  in trunk section and reload extensions manually [asterisk -rx "extensions reload"] it works

After any Commit I have add it manually to extensions,conf

exten => _0X.,1,SetVar(CALLFILENAME=${CALLERIDNAME}___${TIMESTAMP:0:4}-${TIMESTAMP:4:2}-${TIMESTAMP:9:4}___${EXTEN})
exten => _0X.,2,MixMonitor(${CALLFILENAME}.wav)
exten => _0X.,3,agi(selintra,OutRoute,Out_Suento8)

but if I prepare custom app and attach to specify trunk

exten => _0X.,1,SetVar(CALLFILENAME=${CALLERIDNAME}___${TIMESTAMP:0:4}-${TIMESTAMP:4:2}-${TIMESTAMP:9:4}___${EXTEN})
exten => _0X.,2,MixMonitor(${CALLFILENAME}.wav)

it doesn’t work.

There is another idea
how to add something permanently to extensions.conf or extension.conf template.
Bialy

Title: Re: call recording
Post by: jester on November 20, 2007, 04:20:39 PM
You know there is a call recording option already in SAIL?! It's called 'one touch recording' and you start recording with: *1
It's it in the Selintra wiki here (http://www.selintra.com/docs/cgi-bin/view/Main/DocChapter27). Recordings can be found in the Primary Ibay.

HTH.
Title: Re: call recording
Post by: del on November 20, 2007, 05:42:50 PM
Quote
You know there is a call recording option already in SAIL?! It's called 'one touch recording' and you start recording with: *1
It's it in the Selintra wiki here. Recordings can be found in the Primary Ibay.
I don't think that this is working, I tried it a few months ago http://forums.contribs.org/index.php?topic=36842.0 and I have tried it again today and still nothing shows up in the primary ibay  :?

Del
Title: Re: call recording
Post by: SARK devs on November 21, 2007, 01:33:53 AM
This is due to an incorrect placement of the sox code on the rpm.  Do....

Code: [Select]
yum install sox --enablerepo=base
There is also a slight error in the docs.  Simply press 1 in mid call to start recording.  You will hear an audible beep (the other party will hear nothing).  Your recordings will turn up in a sub-folder in the primary I-Bay.  The folder is called "monitor".

This has been fixed in the 1.4 releases.

Kind Regards

S
Title: Re: call recording
Post by: Franco on November 21, 2007, 01:47:48 AM
Well, let me jump in  :-P
It works on some types of phones but not others! And the same goes about the other party hearing the beep, on some phones they'll will hear a buzz.

This is what I have:
Code: [Select]
[root@sme7 monitor]# rpm -qa | grep sox
sox-12.17.5-3
Title: Re: call recording
Post by: Jawor on November 21, 2007, 02:52:08 AM
Hi everyone

I would love to test call recording using latest 1.4 release but I cannot access selintra.co.uk ftp site using guest login/pass

Has it changed lately?

Title: Re: call recording
Post by: bbialy on November 21, 2007, 09:06:16 AM
i don't want to use one touch.
The recording should be automatic and secret process.
look at extension. it means that all outgoing calls will be recorded.
an that is the way how it should work.

question is how write custom app which will work like this = RECORD ALL OUTGOING CALLS and STORAGE THEM I SPECIFIC DIRECTORY
or another question is how to modify exetnsion tempalate to have such funcionality.

Bialy
Title: Re: call recording
Post by: SARK devs on November 21, 2007, 06:34:50 PM
HI stuntshell.  It's not that you have sox but where it is.  This is because on earlier releases the SAIL rpm installed the sox binary into the wrong directory.  ON later releases the rpm calls for sox as a dependency so it will install correctly. 

Code: [Select]
[root@switch ~]# which sox
/usr/bin/sox

:-)

Best

S

....ftp up soon

Title: Re: call recording
Post by: bbialy on November 23, 2007, 12:02:38 PM
Hello,
it's me again
does anybody have idea how to solve my problem.
i need to record all outgoing calls on SARK/SAIL
Title: Re: call recording
Post by: SARK devs on November 23, 2007, 01:01:52 PM
Hi bbialy

We are aware of your customer's requirement.  We have put your request onto the build list (just as we do with all contribs requests) and we will get 'round to revueing it in due course. 

To put this into some context, yours is the only request we've had for permanent voice recording from the contribs community.  Moreover, we don't believe that it is a very good idea to colocate voice recording and switching on the same platform except for "on-demand", i.e. one-touch, recording applications.  Streaming many simultaneous conversations to disk, as anyone in the recording field will tell you, is very expensive in terms of system overhead and interrupt management. 

In any event, there are any number of discrete solutions (both hardware and software) out there which will do what you require WITHOUT imposing load on the PBX and they'll do it a lot better than Asterisk ever will. All you need is a network switch which can run mirroring (Cisco, Netgear and many other professional quality switches can do this) and the recording platform.  Google for VoiP recording.

Finally, while it isn't normally our place to comment, we note your insistance earlier in this thread that voice recording should be unannounced and secret. In most countries in the West and certainly within the EEC it is illegal to record a voice conversation without informing the recipient that it is either happening or likely to happen.  Contravention of these rules by you or your customer can result in very heavy fines.  While we're sure that you are aware of the laws governing these issues in your own country (you don't say where you are), we just thought it might be worth pointing this out for other subscribers to this list.


I hope this helps answer your question.

Kind Regards

S

 
Title: Re: call recording
Post by: del on November 23, 2007, 03:23:29 PM
Quote
Finally, while it isn't normally our place to comment, we note your insistance earlier in this thread that voice recording should be unannounced and secret. In most countries in the West and certainly within the EEC it is illegal to record a voice conversation without informing the recipient that it is either happening or likely to happen.  Contravention of these rules by you or your customer can result in very heavy fines.  While we're sure that you are aware of the laws governing these issues in your own country (you don't say where you are), we just thought it might be worth pointing this out for other subscribers to this list.

Hence the announcement "This call maybe monitored or recorded for for quality or training purposes" on most greetings  :)

Del
Title: Re: call recording
Post by: bbialy on November 27, 2007, 04:32:25 PM
it doesn't matter if it is legal or what.
This is not a problem.  because such message it easy to play.

Please give me some advise HOW TO WRITE CUSTOM APP.
please

Title: Re: call recording
Post by: bbialy on April 14, 2008, 01:10:04 PM
The problem is solved:
thats how I did it
my default route _00X.
and then customapp:
exten => _0X.,1,MixMonitor(${CALLERID(num)}_${STRFTIME(${EPOCH},,%Y-%m-%d__%H-%M}__${EXTEN}.wav)
exten => _0X.,2,agi(selintra,OutRoute,trunkline)

how it is in your cases look into extensions.conf
what parameters should be in second line you will chceck in your own extensions.conf
regards Bialy

Title: Re: call recording
Post by: SARK devs on April 16, 2008, 02:18:40 AM
OK - I give in... Since you've clearly put some work into this and kindly shared what you've done, here's another way you can do permanent voice recording with SARK/SAIL 

Code: [Select]
db selintra-work setprop global CALLRECORD2 {Inbound|Outbound|Both}
(issue a commit from globals to activate)

It's always been there in the AGI, we just never documented it.  -  However,  I did mean what I said about the fact that you may overwhelm your CPU and IO gear,  Also, it's your responsibility to clear these records down.  SAIL won't check (SARK will, but it does VR a different way).

:P

S