[Asterisk-Users] 'System' application exit with error even if
it performs the job as expected
Martin Pycko
martinp at digium.com
Thu Jul 31 12:37:26 MST 2003
One thing is sure: the system should return with 0 if it's successful.
Read "man system"
regards
Martin
On Thu, 31 Jul 2003, Dan wrote:
> Something even more interesting.
> I have tried to execute the command 'ls' in the following line:
> ...
> exten => s,3,System(ls)
> ...
>
> And this is the result from the console:
>
> -- Executing System("SIP/103-2259", "ls") in new stack
> adsi.conf asterisk.conf iax.conf modem.conf
> oss.conf privacy.conf~ tcpdmp.log
> adtranvofr.conf cdr_mysql.conf indications.conf modules.conf
> oss.conf~ queues.conf telcordia-1.adsi
> agents.conf enum.conf logger.conf modules.conf~
> parking.conf rpt.conf voicemail.conf
> alsa.conf extensions.conf manager.conf musiconhold.conf
> phone.conf rtp.conf vpb.conf
> alsa.conf~ extensions.conf~ meetme.conf musiconhold.conf~
> phone.conf~ sip.conf zapata.conf
> asterisk.adsi festival.conf mgcp.conf oh323.conf
> privacy.conf sip.conf~
> WARNING[1200825920]: File app_system.c, Line 57 (skel_exec): Unable to
> execute 'ls'
> == Spawn extension (macro-record-cleanup, s, 3) exited non-zero on
> 'SIP/103-2259' in macro 'record-cleanup'
> == Spawn extension (fullaccess, h, 1) exited non-zero on 'SIP/103-2259'
>
>
> As you can see, the command was executed successfully, but still that
> warning who make the macro to exit .
>
> Dan
>
>
> ----- Original Message -----
> From: "Dan" <dtoma at fx.ro>
> To: "Asterisk Users" <asterisk-users at lists.digium.com>
> Sent: Thursday, July 31, 2003 7:23 PM
> Subject: [Asterisk-Users] 'System' application exit with error even if it
> performs the job as expected
>
>
> > Hi,
> >
> > When I try to run the command wmix to mix two WAV files recorded by the
> > Monitor application I get the following warning in the console and the
> macro
> > exit at that point.
> > Running the command from a standard system console it works. More, even
> from
> > this macro it works and produce a valid mixed file, but still get that
> error
> > and the macro cannot continue.
> >
> > Why?
> > I have tried even with a simple wmix without any parameter and I get the
> > same error.
> >
> > .....
> > -- Executing System("SIP/103-b7c0", "/usr/local/bin/wmix
> > /var/spool/asterisk/monitor/31072003-19:08:11-103-in.wav
> > /var/spool/asterisk/monitor/31072003-19:08:11-103-out.wav >
> > /var/spool/asterisk/monitor/31072003-19:08:11-103.wav") in new stack
> > WARNING[1200825920]: File app_system.c, Line 57 (skel_exec): Unable to
> > execute '/usr/local/bin/wmix
> > /var/spool/asterisk/monitor/31072003-19:08:11-103-in.wav
> > /var/spool/asterisk/monitor/31072003-19:08:11-103-out.wav >
> > /var/spool/asterisk/monitor/31072003-19:08:11-103.wav'
> > == Spawn extension (macro-record-cleanup, s, 3) exited non-zero on
> > 'SIP/103-b7c0' in macro 'record-cleanup'
> > == Spawn extension (fullaccess, h, 1) exited non-zero on 'SIP/103-b7c0'
> >
> >
> > Thanks,
> > Dan
> >
> >
> > _______________________________________________
> > Asterisk-Users mailing list
> > Asterisk-Users at lists.digium.com
> > 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
>
More information about the asterisk-users
mailing list