[Asterisk-Users] macro error "exited non-zero"
Andres
andres at telesip.net
Sun Jan 11 13:18:24 MST 2004
On Sunday 11 January 2004 14:11, Jimmy Riley wrote:
> Jimmy Riley
> Network Administrator
> VeriCore
> 985-626-1701 X1103
> -----Original Message-----
> From: Andres [mailto:andres at telesip.net]
> Sent: January 11, 2004 12:31 PM
> To: asterisk-users at 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
Then edit your /etc/init.d/asterisk to include the line:
export LD_ASSUME_KERNEL=2.4.1
before you start the daemon.
I don't know why but it fixed our problem (same as yours)
>
> > Also if I just run this line from the command line I don't get an error.
> > [root at redhat monitor]# sox in.wav in-rev.wav reverse
> > [root at 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 at 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 at 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 at 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
More information about the asterisk-users
mailing list