Yate Community Forum

Yate server => Other Yate server issues => Topic started by: dedulka on May 20, 2015, 10:48:22 PM

Title: Record all call
Post by: dedulka 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
Title: Re: Record all call
Post by: cc08 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 !
Title: Re: Record all call
Post by: peter_v 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
Title: Re: Record all call
Post by: marian 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.
Title: Re: Record all call
Post by: peter_v on July 09, 2015, 11:15:57 AM
Thanks,

That answered my question.

Cheers,
Peter
Title: [ YATE 6.0] Record all call
Post by: ganapathi 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
Title: Re: Record all call
Post by: Y2Kot 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?
Title: Re: Record all call
Post by: marian on October 20, 2017, 07:43:09 AM
gsm codec is not available
It is implemented in gsmcodec.yate module
Title: Re: Record all call
Post by: Y2Kot on October 24, 2017, 05:40:18 AM
fixed, thanks
Title: Re: Record all call
Post by: Dam Dat 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?
Title: Re: Record all call
Post by: marian 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.