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,
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Check out the new Asterisk community forum at: https://community.asterisk.org/
New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users