Код: Выделить всё
exten => s,1,Answer
exten => s,n,Playback(hello)
exten => s,n,Set(RECORD_FILE=/var/spool/asterisk/monitor/1.wav)
exten => s,n,Playback(beep)
exten => s,n,MixMonitor(${RECORD_FILE},b)
exten => s,n,Wait(3)
exten => s,n,StopMixMonitor()
exten => s,n,Playback(${RECORD_FILE})
exten => s,n,Hangup
Код: Выделить всё
-- Executing [s@sendorder2:3] Set("SIP/fortest-00007db5", "RECORD_FILE=/var/spool/asterisk/monitor/1.wav") in new stack
-- Executing [s@sendorder2:4] Playback("SIP/fortest-00007db5", "beep") in new stack
-- <SIP/fortest-00007db5> Playing 'beep.alaw' (language 'ru')
-- Executing [s@sendorder2:5] MixMonitor("SIP/fortest-00007db5", "/var/spool/asterisk/monitor/1.wav,b") in new stack
-- Executing [s@sendorder2:6] Wait("SIP/fortest-00007db5", "3") in new stack
== Begin MixMonitor Recording SIP/fortest-00007db5
-- Executing [s@sendorder2:7] StopMixMonitor("SIP/fortest-00007db5", "") in new stack
-- Executing [s@sendorder2:8] Playback("SIP/fortest-00007db5", "/var/spool/asterisk/monitor/1.wav") in new stack
[Sep 12 04:19:12] WARNING[16964]: file.c:663 ast_openstream_full: File /var/spool/asterisk/monitor/1.wav does not exist in any format
[Sep 12 04:19:12] WARNING[16964]: file.c:954 ast_streamfile: Unable to open /var/spool/asterisk/monitor/1.wav (format 0x8 (alaw)): No such file or directory
[Sep 12 04:19:12] WARNING[16964]: app_playback.c:475 playback_exec: ast_streamfile failed on SIP/fortest-00007db5 for /var/spool/asterisk/monitor/1.wav
-- Executing [s@sendorder2:9] Hangup("SIP/fortest-00007db5", "") in new stack
== Spawn extension (sendorder2, s 9) exited non-zero on 'SIP/fortest-00007db5'
== End MixMonitor Recording SIP/fortest-00007db5