Файл создается, но дублируются команды, не могу понять почему.
Код: Выделить всё
-- Executing [78126400011@dostavka2:1] Dial("SIP/westcall-out-000001a1", "SIP/501&SIP/301&SIP/302&SIP/303&SIP/304,30,G(file12,s,1)") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called SIP/501
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called SIP/301
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called SIP/302
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called SIP/303
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called SIP/304
-- SIP/501-000001a2 connected line has changed. Saving it until answer for SIP/westcall-out-000001a1
-- SIP/301-000001a3 connected line has changed. Saving it until answer for SIP/westcall-out-000001a1
-- SIP/302-000001a4 connected line has changed. Saving it until answer for SIP/westcall-out-000001a1
-- SIP/303-000001a5 connected line has changed. Saving it until answer for SIP/westcall-out-000001a1
-- SIP/304-000001a6 connected line has changed. Saving it until answer for SIP/westcall-out-000001a1
-- SIP/304-000001a6 is ringing
-- SIP/303-000001a5 is ringing
-- SIP/302-000001a4 is ringing
-- SIP/301-000001a3 is ringing
-- SIP/301-000001a3 is ringing
-- SIP/501-000001a2 is ringing
-- SIP/501-000001a2 is ringing
-- SIP/501-000001a2 is ringing
-- SIP/501-000001a2 connected line has changed. Saving it until answer for SIP/westcall-out-000001a1
-- SIP/501-000001a2 answered SIP/westcall-out-000001a1
-- Executing [s@file12:1] System("SIP/westcall-out-000001a1", "touch /var/"501".txt") in new stack
-- Executing [s@file12:2] System("SIP/501-000001a2", "echo "device" >> /var/dostavka/"501".txt") in new stack
-- Executing [s@file12:2] System("SIP/westcall-out-000001a1", "echo "78125348684" >> /var/dostavka/"501".txt") in new stack
-- Executing [s@file12:3] Wait("SIP/501-000001a2", "60") in new stack
-- Executing [s@file12:3] Wait("SIP/westcall-out-000001a1", "60") in new stack
-- Executing [s@file12:4] System("SIP/501-000001a2", "mv /var/dostavka/"501".txt /var/dostavka/old/"501".txt") in new stack
-- Executing [s@file12:4] System("SIP/westcall-out-000001a1", "mv /var/dostavka/"501".txt /var/dostavka/old/"501".txt") in new stack
И осталось сделать так чтобы связывались каналы.