[asterisk-users] macro for recording calls
Fourhundred Thecat
400thecat at gmx.ch
Tue Aug 10 01:38:58 CDT 2021
Hello,
I have defined macro for recording:
[macro-record]
exten => s,1,Set(FILE=${CDR(src)}-${CDR(dst)}.wav)
same => n,MixMonitor(/tmp/${FILE},b,)
same => n,MacroExit
and use it in my dialplan as such:
exten => 1234,1,Macro(record)
....
same => n,Hangup()
it works fine, but the problem is it "records" even empty calls.
ie, the wav file is 44 bytes, and contains only header.
I understand that the recording has to start before the call is
answered. So it cannot know in advance whether the cal will actually
Is there a way to modify my macro, so that I don't record empty calls?
I understand that the recording has to start before the call is
answered. So it cannot know in advance whether the cal will actually be
empty or not.
But anyway, is there some trick for this ?
thank you,
More information about the asterisk-users
mailing list