On this macro I keep getting exited non-zero on s,3, but s,3 is doing what it is suppose to do but the macro stops. Is there a way to make a macro ignore errors and continue to s,4? I have the lattes ver of sox 12.17.4. Also if I just run this line from the command line I don't get an error. [root@redhat monitor]# sox in.wav in-rev.wav reverse [root@redhat monitor]# [macro-record-cleanup] exten => s,1,GotoIf($[${CALLFILENAME} = ${FOO}]?11:2) exten => s,2,SetVar(MONITORDIR=/var/spool/asterisk/monitor) exten => s,3,System(/usr/local/bin/sox ${MONITORDIR}/${CALLFILENAME}-in.wav ${MONITORDIR}/${CALLFILENAME}-in-rev.wav reverse) exten => s,4,System(/usr/local/bin/sox ${MONITORDIR}/${CALLFILENAME}-out.wav ${MONITORDIR}/${CALLFILENAME}-out-rev.wav reverse) exten => s,5,System(/bin/rm ${MONITORDIR}/${CALLFILENAME}-in.wav ${MONITORDIR}/${CALLFILENAME}-out.wav) exten => s,6,System(/usr/local/bin/soxmix ${MONITORDIR}/${CALLFILENAME}-in-rev.wav ${MONITORDIR}/${CALLFILENAME}-out-rev.wav ${MONITORDIR}/${CALLFILENAME}-rev.gsm) exten => s,7,System(/bin/rm ${MONITORDIR}/${CALLFILENAME}-in-rev.gsm ${MONITORDIR}/${CALLFILENAME}-out-rev.gsm) exten => s,8,System(/usr/local/bin/sox ${MONITORDIR}/${CALLFILENAME}-rev.gsm ${MONITORDIR}/${CALLFILENAME}.gsm reverse) exten => s,9,System(/bin/rm ${MONITORDIR}/${CALLFILENAME}-rev.gsm) exten => s,10,System(sox ${MONITORDIR}/${CALLFILENAME}.gsm -g ${MONITORDIR}/${CALLFILENAME}.wav exten => s,11,NoOp == Spawn extension (sip, 18005551212, 2) exited non-zero on 'SIP/one-8e46' -- Executing Macro("SIP/one-8e46", "record-cleanup") in new stack -- Executing GotoIf("SIP/one-8e46", "0?11:2") in new stack -- Goto (macro-record-cleanup,s,2) -- Executing SetVar("SIP/one-8e46", "MONITORDIR=/var/spool/asterisk/monitor") in new stack -- Executing System("SIP/one-8e46", "/usr/local/bin/sox /var/spool/asterisk/monitor/11012004-10:40:08-one-18005551212-in.wav /var/spool/asterisk/monitor/11012004-10:40:08-one-18005551212-in-rev.wav reverse") in new stack WARNING[1209277232]: File app_system.c, Line 57 (system_exec): Unable to execute '/usr/local/bin/sox /var/spool/asterisk/monitor/11012004-10:40:08-one-18005551212-in.wav /var/spool/asterisk/monitor/11012004-10:40:08-one-18005551212-in-rev.wav reverse' == Spawn extension (macro-record-cleanup, s, 3) exited non-zero on 'SIP/one-8e46' in macro 'record-cleanup' == Spawn extension (sip, s, 1) exited non-zero on 'SIP/one-8e46' Jimmy Riley Network Administrator VeriCore 985-626-1701 X1103
On Sunday 11 January 2004 11:47, Jimmy Riley wrote:> On this macro I keep getting exited non-zero on s,3, but s,3 is doing > what it is suppose to do but the macro stops. Is there a way to make a > macro ignore errors and continue to s,4? I have the lattes ver of sox > 12.17.4.Are you using RedHat 9?> > Also if I just run this line from the command line I don't get an error. > [root@redhat monitor]# sox in.wav in-rev.wav reverse > [root@redhat monitor]# > > > [macro-record-cleanup] > > exten => s,1,GotoIf($[${CALLFILENAME} = ${FOO}]?11:2) > exten => s,2,SetVar(MONITORDIR=/var/spool/asterisk/monitor) > > exten => s,3,System(/usr/local/bin/sox ${MONITORDIR}/${CALLFILENAME}-in.wav > ${MONITORDIR}/${CALLFILENAME}-in-rev.wav reverse) > exten => s,4,System(/usr/local/bin/sox > ${MONITORDIR}/${CALLFILENAME}-out.wav > ${MONITORDIR}/${CALLFILENAME}-out-rev.wav reverse) > > exten => s,5,System(/bin/rm ${MONITORDIR}/${CALLFILENAME}-in.wav > ${MONITORDIR}/${CALLFILENAME}-out.wav) > > exten => s,6,System(/usr/local/bin/soxmix > ${MONITORDIR}/${CALLFILENAME}-in-rev.wav > ${MONITORDIR}/${CALLFILENAME}-out-rev.wav > ${MONITORDIR}/${CALLFILENAME}-rev.gsm) > > exten => s,7,System(/bin/rm ${MONITORDIR}/${CALLFILENAME}-in-rev.gsm > ${MONITORDIR}/${CALLFILENAME}-out-rev.gsm) > > exten => s,8,System(/usr/local/bin/sox > ${MONITORDIR}/${CALLFILENAME}-rev.gsm ${MONITORDIR}/${CALLFILENAME}.gsm > reverse) > > exten => s,9,System(/bin/rm ${MONITORDIR}/${CALLFILENAME}-rev.gsm) > > exten => s,10,System(sox ${MONITORDIR}/${CALLFILENAME}.gsm -g > ${MONITORDIR}/${CALLFILENAME}.wav > exten => s,11,NoOp > > > > == Spawn extension (sip, 18005551212, 2) exited non-zero on 'SIP/one-8e46' > -- Executing Macro("SIP/one-8e46", "record-cleanup") in new stack > -- Executing GotoIf("SIP/one-8e46", "0?11:2") in new stack > -- Goto (macro-record-cleanup,s,2) > -- Executing SetVar("SIP/one-8e46", > "MONITORDIR=/var/spool/asterisk/monitor") in new stack > -- Executing System("SIP/one-8e46", "/usr/local/bin/sox > /var/spool/asterisk/monitor/11012004-10:40:08-one-18005551212-in.wav > /var/spool/asterisk/monitor/11012004-10:40:08-one-18005551212-in-rev.wav > reverse") in new stack > WARNING[1209277232]: File app_system.c, Line 57 (system_exec): Unable to > execute '/usr/local/bin/sox > /var/spool/asterisk/monitor/11012004-10:40:08-one-18005551212-in.wav > /var/spool/asterisk/monitor/11012004-10:40:08-one-18005551212-in-rev.wav > reverse' > == Spawn extension (macro-record-cleanup, s, 3) exited non-zero on > 'SIP/one-8e46' in macro 'record-cleanup' > == Spawn extension (sip, s, 1) exited non-zero on 'SIP/one-8e46' > > > Jimmy Riley > Network Administrator > VeriCore > 985-626-1701 X1103 > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
Jimmy Riley Network Administrator VeriCore 985-626-1701 X1103 -----Original Message----- From: Andres [mailto:andres@telesip.net] Sent: January 11, 2004 12:31 PM To: asterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] macro error "exited non-zero" On Sunday 11 January 2004 11:47, Jimmy Riley wrote:> On this macro I keep getting exited non-zero on s,3, but s,3 is doing > what it is suppose to do but the macro stops. Is there a way to make a > macro ignore errors and continue to s,4? I have the lattes ver of sox > 12.17.4.Are you using RedHat 9? Yes> > Also if I just run this line from the command line I don't get an error. > [root@redhat monitor]# sox in.wav in-rev.wav reverse > [root@redhat monitor]# > > > [macro-record-cleanup] > > exten => s,1,GotoIf($[${CALLFILENAME} = ${FOO}]?11:2) > exten => s,2,SetVar(MONITORDIR=/var/spool/asterisk/monitor) > > exten => s,3,System(/usr/local/bin/sox${MONITORDIR}/${CALLFILENAME}-in.wav> ${MONITORDIR}/${CALLFILENAME}-in-rev.wav reverse) > exten => s,4,System(/usr/local/bin/sox > ${MONITORDIR}/${CALLFILENAME}-out.wav > ${MONITORDIR}/${CALLFILENAME}-out-rev.wav reverse) > > exten => s,5,System(/bin/rm ${MONITORDIR}/${CALLFILENAME}-in.wav > ${MONITORDIR}/${CALLFILENAME}-out.wav) > > exten => s,6,System(/usr/local/bin/soxmix > ${MONITORDIR}/${CALLFILENAME}-in-rev.wav > ${MONITORDIR}/${CALLFILENAME}-out-rev.wav > ${MONITORDIR}/${CALLFILENAME}-rev.gsm) > > exten => s,7,System(/bin/rm ${MONITORDIR}/${CALLFILENAME}-in-rev.gsm > ${MONITORDIR}/${CALLFILENAME}-out-rev.gsm) > > exten => s,8,System(/usr/local/bin/sox > ${MONITORDIR}/${CALLFILENAME}-rev.gsm ${MONITORDIR}/${CALLFILENAME}.gsm > reverse) > > exten => s,9,System(/bin/rm ${MONITORDIR}/${CALLFILENAME}-rev.gsm) > > exten => s,10,System(sox ${MONITORDIR}/${CALLFILENAME}.gsm -g > ${MONITORDIR}/${CALLFILENAME}.wav > exten => s,11,NoOp > > > > == Spawn extension (sip, 18005551212, 2) exited non-zero on 'SIP/one-8e46' > -- Executing Macro("SIP/one-8e46", "record-cleanup") in new stack > -- Executing GotoIf("SIP/one-8e46", "0?11:2") in new stack > -- Goto (macro-record-cleanup,s,2) > -- Executing SetVar("SIP/one-8e46", > "MONITORDIR=/var/spool/asterisk/monitor") in new stack > -- Executing System("SIP/one-8e46", "/usr/local/bin/sox > /var/spool/asterisk/monitor/11012004-10:40:08-one-18005551212-in.wav > /var/spool/asterisk/monitor/11012004-10:40:08-one-18005551212-in-rev.wav > reverse") in new stack > WARNING[1209277232]: File app_system.c, Line 57 (system_exec): Unable to > execute '/usr/local/bin/sox > /var/spool/asterisk/monitor/11012004-10:40:08-one-18005551212-in.wav > /var/spool/asterisk/monitor/11012004-10:40:08-one-18005551212-in-rev.wav > reverse' > == Spawn extension (macro-record-cleanup, s, 3) exited non-zero on > 'SIP/one-8e46' in macro 'record-cleanup' > == Spawn extension (sip, s, 1) exited non-zero on 'SIP/one-8e46' > > > Jimmy Riley > Network Administrator > VeriCore > 985-626-1701 X1103 > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users_______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users