Author Topic: Record all call  (Read 17845 times)

dedulka

  • Newbie
  • *
  • Posts: 1
    • View Profile
Record all call
« on: May 20, 2015, 10:48:22 PM »
Good day! Tell me, please, in Yate configure recording of all calls? Internal and external. All documents scanned, but the answer is not found. Thank you

cc08

  • Guest
Re: Record all call
« Reply #1 on: May 25, 2015, 02:27:08 AM »
Hi, dedulka!

You are not closely watched in the archive maillists!

See my variant:
Piece from regexroute.conf
Code: [Select]
[extra]
call.cdr=120,operation
...
[call.cdr]
initialize=echo Start call ${chan} '${caller}' -> '${called}' coming from ${address} with context of ${context}
finalize=echo Finished call ${chan} '${caller}' -> '${called}' duration ${duration}'s with context of ${context}
update=if ${status}^answered$=if ${direction}^incoming$=goto r-answer
...
[r-answer]
.*=echo Answer call ${chan}, '${caller}' -> '${called}', duration of ring ${duration}'s, with context of ${context}
.*=;rec=wave/record//tmp/rec-${caller}-${called}-${billid}
.*=enqueue chan.masquerade;message=chan.record;id=${chan};call=${rec}-A.au;peer=${rec}-B.au


Good luck !

peter_v

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Record all call
« Reply #2 on: July 08, 2015, 08:04:23 AM »
I'm also interested in this feature.

I don't really understand cc08's reply though.
Is he saying that in order to record all calls in Yate one simply has to use the code he posted in regexroute.conf?

Can anyone offer a more detailed explanation as to what exactly I have to do?

Cheers,
Peter

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: Record all call
« Reply #3 on: July 09, 2015, 12:42:58 AM »
See
http://docs.yate.ro/wiki/Chan.record

To record a call leg you must send this message from regexroute (or some script you may write).
When to send this message is up to you.
cc08 does this when the call is answered.

peter_v

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Record all call
« Reply #4 on: July 09, 2015, 11:15:57 AM »
Thanks,

That answered my question.

Cheers,
Peter

ganapathi

  • Full Member
  • ***
  • Posts: 101
    • View Profile
[ YATE 6.0] Record all call
« Reply #5 on: September 24, 2017, 01:46:46 PM »
Hi

Is there any option to record all the calls by using external module in a single Wav file with every channel voice.?


Also as i found this perl file but there is a problem to execute this file and don't know what is the procedure to configure this perl file on yate.

https://gist.github.com/vir/b1a868ef1d4aa5239064/raw/cbbefce066148485dc0db7d02467b79c2fcf9356/record_all_calls.pl

Y2Kot

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Record all call
« Reply #6 on: October 20, 2017, 07:09:47 AM »
I got empty files in temp folder and
Quote
2017-10-20_15:28:50.427852 <WARN> DataTranslator::attachChain [0x7fab8400b350] 'gsm' -> [0x7fabbc012a50] 'slin' failed
2017-10-20_15:28:50.427933 <WARN> DataTranslator::attachChain [0x7fabc40017a0] 'gsm' -> [0x7fabbc012c10] 'slin' failed
in the yate console. Can anyone help me to fix this?

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: Record all call
« Reply #7 on: October 20, 2017, 07:43:09 AM »
gsm codec is not available
It is implemented in gsmcodec.yate module

Y2Kot

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Record all call
« Reply #8 on: October 24, 2017, 05:40:18 AM »
fixed, thanks

Dam Dat

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Record all call
« Reply #9 on: October 11, 2018, 11:08:12 AM »
i successfully recorded calls
but before restart my PC, record files automatically deleted
how can i fix this error?

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: Record all call
« Reply #10 on: October 11, 2018, 11:48:26 PM »
Yate does not delete any recordings.
Check the location you are saving the files: it may be temporary directory cleaned by the OS or a directory mapped into memory whose contents are lost on reboot.