Z
Z
zxcxz2018-12-06 19:01:33
Asterisk
zxcxz, 2018-12-06 19:01:33

Recording conversations after translation?

When a call is received, an answer occurs (the conversation is recorded in a file). After the call is transferred, the recording is interrupted. How to make a record written continuously to one file? Thank you.
Asterisk 15.

Log
SIP/102-000001b7 answered Dongle/dongle0-010000001c
-- SIP/102-000001b7 Internal Gosub(rec,s,1(7926*******,+7925*******,s,1)) start
-- Executing [[email protected]:1] GotoIf("SIP/102-000001b7", "1?yes:no") in new stack
-- Goto (rec,s,2)
-- Executing [[email protected]:2] Set("SIP/102-000001b7", "fname=1544111323.569-2018-12-06-18_48-7926*******-+7925*******") in new stack
-- Executing [[email protected]:3] Set("SIP/102-000001b7", "monopt=nice -n 19 /usr/bin/lame -b 32 --silent "/var/calls/1544111323.569-2018-12-06-18_48-7926*******-+7925*******.wav" "/var/calls/1544111323.569-2018-12-06-18_48-7926*******-+7925*******.mp3" && rm -f "/var/calls/1544111323.569-2018-12-06-18_48-7926*******-+7925*******.wav" && chmod o+r "/var/calls/1544111323.569-2018-12-06-18_48-7926*******-+7925*******.mp3"") in new stack
-- Executing [[email protected]:4] Set("SIP/102-000001b7", "CDR(filename)=1544111323.569-2018-12-06-18_48-7926*******-+7925*******.mp3") in new stack
-- Executing [[email protected]:5] Set("SIP/102-000001b7", "CDR(realdst)=+7925*******") in new stack
-- Executing [[email protected]:6] MixMonitor("SIP/102-000001b7", "/var/calls/1544111323.569-2018-12-06-18_48-7926*******-+7925*******.wav,b,nice -n 19 /usr/bin/lame -b 32 --silent "/var/calls/1544111323.569-2018-12-06-18_48-7926*******-+7925*******.wav" "/var/calls/1544111323.569-2018-12-06-18_48-7926*******-+7925*******.mp3" && rm -f "/var/calls/1544111323.569-2018-12-06-18_48-7926*******-+7925*******.wav" && chmod o+r "/var/calls/1544111323.569-2018-12-06-18_48-7926*******-+7925*******.mp3"") in new stack
-- Executing [[email protected]:7] Verbose("SIP/102-000001b7", "Exit record") in new stack
Exit record
-- Executing [[email protected]:8] Return("SIP/102-000001b7", "") in new stack
== Spawn extension (gigaset, , 1) exited non-zero on 'SIP/102-000001b7'
-- SIP/102-000001b7 Internal Gosub(rec,s,1(7926*******,+7925*******,s,1)) complete GOSUB_RETVAL=
-- Channel SIP/102-000001b7 joined 'simple_bridge' basic-bridge <39845a9a-a332-4d27-a139-8a938c80310b>
-- Channel Dongle/dongle0-010000001c joined 'simple_bridge' basic-bridge <39845a9a-a332-4d27-a139-8a938c80310b>
== Begin MixMonitor Recording SIP/102-000001b7
> 0x1e642c0 -- Strict RTP switching to RTP target address 192.168.10.20:5012 as source
-- Channel SIP/102-000001b7: Started DTMF blind transfer.
-- Started music on hold, class 'default', on channel 'Dongle/dongle0-010000001c'
-- Playing 'pbx-transfer.slin' (language 'ru')
> 0x1e642c0 -- Strict RTP learning complete - Locking on source address 192.168.10.20:5012
-- Channel SIP/102-000001b7 left 'simple_bridge' basic-bridge <39845a9a-a332-4d27-a139-8a938c80310b>
== MixMonitor close filestream (mixed)
== Executing [nice -n 19 /usr/bin/lame -b 32 --silent "/var/calls/1544111323.569-2018-12-06-18_48-7926*******-+7925*******.wav" "/var/calls/1544111323.569-2018-12-06-18_48-7926*******-+7925*******.mp3" && rm -f "/var/calls/1544111323.569-2018-12-06-18_48-7926*******-+7925*******.wav" && chmod o+r "/var/calls/1544111323.569-2018-12-06-18_48-7926*******-+7925*******.mp3"]
-- Stopped music on hold on Dongle/dongle0-010000001c
-- Channel Dongle/dongle0-010000001c left 'simple_bridge' basic-bridge <39845a9a-a332-4d27-a139-8a938c80310b>
-- Executing [[email protected]:1] Goto("Dongle/dongle0-010000001c", "autootvet,s,1") in new stack
-- Goto (autootvet,s,1)
-- Executing [[email protected]:1] Answer("Dongle/dongle0-010000001c", "") in new stack
== Begin MixMonitor Recording Dongle/dongle0-010000001c
== End MixMonitor Recording SIP/102-000001b7
== MixMonitor close filestream (mixed)
== End MixMonitor Recording Dongle/dongle0-010000001c

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
D
Denis Sh, 2018-12-06
@Deq56

How do you turn on the recording, in the Dial application itself, or is Sub called separately after picking up the handset?

Z
zxcxz, 2018-12-07
@zxcxz

Via Dial
exten => _XXX,1,Dial(SIP/${EXTEN},,rxXU(rec^${CALLERID(num)}^${EXTEN},s,1))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question