A
A
Alexander Semenenko2019-06-21 17:59:44
Asterisk
Alexander Semenenko, 2019-06-21 17:59:44

Why doesn't the Record app record a file if the caller hangs up?

Here is a dialplan:

[mytrunk-in]
exten => 202,1,Dial(PJSIP/101,5)
exten => 202,2,Playback(/sounds/<наш_звуковой_файл>)
exten => 202,3,Set(fname=${STRFTIME(${EPOCH},,%Y%m%d%H%M)}-${CALLERID(number)}-${EXTEN})
exten => 202,4,Record(/monitor/${fname}.wav,0,15,x)
exten => 202,n,Hangup

If the caller waits 15 seconds and the system cuts him off, the file is saved. And if he hangs up the phone, then the file disappears?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2019-06-21
@semenenko88

Because:
However, there is an option

k: Keep recorded file upon hangup.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question