Koozali.org: home of the SME Server

call recording

Offline bbialy

  • ****
  • 105
  • +0/-0
call recording
« 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

Reading with understanding is the hardest thing IN THE WORLD

Offline jester

  • *
  • 496
  • +1/-0
Re: call recording
« Reply #1 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. Recordings can be found in the Primary Ibay.

HTH.

Offline del

  • *
  • 765
  • +0/-0
Re: call recording
« Reply #2 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
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: call recording
« Reply #3 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

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Re: call recording
« Reply #4 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

Offline Jawor

  • *
  • 14
  • +0/-0
Re: call recording
« Reply #5 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?


Offline bbialy

  • ****
  • 105
  • +0/-0
Re: call recording
« Reply #6 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
Reading with understanding is the hardest thing IN THE WORLD

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: call recording
« Reply #7 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


Offline bbialy

  • ****
  • 105
  • +0/-0
Re: call recording
« Reply #8 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
« Last Edit: November 23, 2007, 12:06:56 PM by bbialy »
Reading with understanding is the hardest thing IN THE WORLD

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: call recording
« Reply #9 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

 

Offline del

  • *
  • 765
  • +0/-0
Re: call recording
« Reply #10 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
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline bbialy

  • ****
  • 105
  • +0/-0
Re: call recording
« Reply #11 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

Reading with understanding is the hardest thing IN THE WORLD

Offline bbialy

  • ****
  • 105
  • +0/-0
Re: call recording
« Reply #12 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

« Last Edit: April 14, 2008, 01:11:50 PM by bbialy »
Reading with understanding is the hardest thing IN THE WORLD

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: call recording
« Reply #13 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