Возник еще один вопрос.
Ситуация - номер 1444 звонит на 5000, они разговаривают, после чего 5000 переводит разговор на 5001.
Записи перепутаны местами, т.е. в п.1 запись 5000 -> 5001, а в п.2 1444 -> 5000
здесь видно, что макрос перепутал имена записей.
== Using SIP RTP CoS mark 5
-- Executing [5000@spb_lomo_inc:1] StopMixMonitor("SIP/SPB_Lomo-0000004f", "") in new stack
-- Executing [5000@spb_lomo_inc:2] Gosub("SIP/SPB_Lomo-0000004f", "recording,~~s~~,1(1444,5000)") in new stack
-- Executing [~~s~~@recording:1] MSet("SIP/SPB_Lomo-0000004f", "LOCAL(calling)=1444") in new stack
-- Executing [~~s~~@recording:2] MSet("SIP/SPB_Lomo-0000004f", "LOCAL(called)=5000") in new stack
-- Executing [~~s~~@recording:3] GotoIf("SIP/SPB_Lomo-0000004f", "1?4:9") in new stack
-- Goto (recording,~~s~~,4)
-- Executing [~~s~~@recording:4] Set("SIP/SPB_Lomo-0000004f", "fname=1415874238.79-2014-11-13-13_23-1444-5000") in new stack
-- Executing [~~s~~@recording:5] Set("SIP/SPB_Lomo-0000004f", "monopt=nice -n 19 /usr/bin/lame -b 32 --silent "/records/wav/1415874238.79-2014-11-13-13_23-1444-5000.wav" "/records/mp3/1415874238.79-2014-11-13-13_23-1444-5000.mp3" && rm -f "/records/wav/1415874238.79-2014-11-13-13_23-1444-5000.wav" && chmod o+r "/records/mp3/1415874238.79-2014-11-13-13_23-1444-5000.mp3"") in new stack
-- Executing [~~s~~@recording:6] Set("SIP/SPB_Lomo-0000004f", "CDR(filename)=1415874238.79-2014-11-13-13_23-1444-5000.mp3") in new stack
-- Executing [~~s~~@recording:7] Set("SIP/SPB_Lomo-0000004f", "CDR(realdst)=5000") in new stack
-- Executing [~~s~~@recording:8] MixMonitor("SIP/SPB_Lomo-0000004f", "/records/wav/1415874238.79-2014-11-13-13_23-1444-5000.wav,b,nice -n 19 /usr/bin/lame -b 32 --silent "/records/wav/1415874238.79-2014-11-13-13_23-1444-5000.wav" "/records/mp3/1415874238.79-2014-11-13-13_23-1444-5000.mp3" && rm -f "/records/wav/1415874238.79-2014-11-13-13_23-1444-5000.wav" && chmod o+r "/records/mp3/1415874238.79-2014-11-13-13_23-1444-5000.mp3"") in new stack
-- Executing [~~s~~@recording:9] NoOp("SIP/SPB_Lomo-0000004f", "Finish if_recording_23") in new stack
-- Executing [~~s~~@recording:10] Return("SIP/SPB_Lomo-0000004f", "") in new stack
-- Executing [5000@spb_lomo_inc:3] Dial("SIP/SPB_Lomo-0000004f", "SIP/5000") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/5000
== Begin MixMonitor Recording SIP/SPB_Lomo-0000004f
-- SIP/5000-00000050 is ringing
-- SIP/5000-00000050 answered SIP/SPB_Lomo-0000004f
-- Started music on hold, class 'default', on SIP/SPB_Lomo-0000004f
== Using SIP RTP CoS mark 5
-- Executing [5001@internal:1] StopMixMonitor("SIP/5000-00000051", "") in new stack
-- Executing [5001@internal:2] Gosub("SIP/5000-00000051", "recording,~~s~~,1(5000,5001)") in new stack
-- Executing [~~s~~@recording:1] MSet("SIP/5000-00000051", "LOCAL(calling)=5000") in new stack
-- Executing [~~s~~@recording:2] MSet("SIP/5000-00000051", "LOCAL(called)=5001") in new stack
-- Executing [~~s~~@recording:3] GotoIf("SIP/5000-00000051", "1?4:9") in new stack
-- Goto (recording,~~s~~,4)
-- Executing [~~s~~@recording:4] Set("SIP/5000-00000051", "fname=1415874254.81-2014-11-13-13_24-5000-5001") in new stack
-- Executing [~~s~~@recording:5] Set("SIP/5000-00000051", "monopt=nice -n 19 /usr/bin/lame -b 32 --silent "/records/wav/1415874254.81-2014-11-13-13_24-5000-5001.wav" "/records/mp3/1415874254.81-2014-11-13-13_24-5000-5001.mp3" && rm -f "/records/wav/1415874254.81-2014-11-13-13_24-5000-5001.wav" && chmod o+r "/records/mp3/1415874254.81-2014-11-13-13_24-5000-5001.mp3"") in new stack
-- Executing [~~s~~@recording:6] Set("SIP/5000-00000051", "CDR(filename)=1415874254.81-2014-11-13-13_24-5000-5001.mp3") in new stack
-- Executing [~~s~~@recording:7] Set("SIP/5000-00000051", "CDR(realdst)=5001") in new stack
-- Executing [~~s~~@recording:8] MixMonitor("SIP/5000-00000051", "/records/wav/1415874254.81-2014-11-13-13_24-5000-5001.wav,b,nice -n 19 /usr/bin/lame -b 32 --silent "/records/wav/1415874254.81-2014-11-13-13_24-5000-5001.wav" "/records/mp3/1415874254.81-2014-11-13-13_24-5000-5001.mp3" && rm -f "/records/wav/1415874254.81-2014-11-13-13_24-5000-5001.wav" && chmod o+r "/records/mp3/1415874254.81-2014-11-13-13_24-5000-5001.mp3"") in new stack
-- Executing [~~s~~@recording:9] NoOp("SIP/5000-00000051", "Finish if_recording_23") in new stack
-- Executing [~~s~~@recording:10] Return("SIP/5000-00000051", "") in new stack
-- Executing [5001@internal:3] Dial("SIP/5000-00000051", "SIP/5001") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/5001
== Begin MixMonitor Recording SIP/5000-00000051
-- SIP/5001-00000052 is ringing
-- SIP/5001-00000052 is ringing
-- SIP/5001-00000052 answered SIP/5000-00000051
-- Stopped music on hold on SIP/SPB_Lomo-0000004f
== Spawn extension (spb_lomo_inc, 5000, 3) exited non-zero on 'SIP/5000-00000051<ZOMBIE>'
== MixMonitor close filestream (mixed)
== Spawn extension (internal, 5001, 3) exited non-zero on 'SIP/SPB_Lomo-0000004f'
== MixMonitor close filestream (mixed)
== Executing [nice -n 19 /usr/bin/lame -b 32 --silent "/records/wav/1415874254.81-2014-11-13-13_24-5000-5001.wav" "/records/mp3/1415874254.81-2014-11-13-13_24-5000-5001.mp3" && rm -f "/records/wav/1415874254.81-2014-11-13-13_24-5000-5001.wav" && chmod o+r "/records/mp3/1415874254.81-2014-11-13-13_24-5000-5001.mp3"]
== Executing [nice -n 19 /usr/bin/lame -b 32 --silent "/records/wav/1415874238.79-2014-11-13-13_23-1444-5000.wav" "/records/mp3/1415874238.79-2014-11-13-13_23-1444-5000.mp3" && rm -f "/records/wav/1415874238.79-2014-11-13-13_23-1444-5000.wav" && chmod o+r "/records/mp3/1415874238.79-2014-11-13-13_23-1444-5000.mp3"]
== End MixMonitor Recording SIP/5000-00000051
== End MixMonitor Recording SIP/SPB_Lomo-0000004f