The problem was the directory which i was writing the logs, i put the log file in /var/log/asterisk and it worked.
Thanks. On Wed, 2011-07-20 at 13:03 -0500, Jorge Gutiérrez wrote: > > Are you able to execute: log.sh through the asterisk user? > > > On Wed, 20 Jul 2011 14:53:53 -0300, Antonio Modesto > <mode...@isimples.com.br> wrote: > > Good afternoon, > > > > I am trying to use the System() application but it is always > > returning APPERROR in the ${SYSTEMSTATUS} variable, I am trying to run > > this command: > > > > System(/bin/sh /var/spool/asterisk/calllog/log.sh ${FromExt} > > ${exten}); > > > > This is the content of the /var/spool/asterisk/calllog/log.sh: > > > > #!/bin/sh > > # > > # > > > > TIME=$(date "+%d-%m-%Y-%HH-%MM") > > > > SOURCE="$1" > > DST="$2" > > > > echo "$TIME - $SOURCE - $DST" >> teste.log > > > > I tried to insert some info direct into the file using echo but i've got > > the same error. > > > > Is there some secret to use this? haha > > -- > Jorge Gutiérrez > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users -- Atenciosamente, Antônio Modesto Gerente de TI Praça Getúlio Vargas, 77 – Sala 308 – Centro Santo Antônio do Monte – MG – CEP: 35560-000 Tel:(37) 3281-2800 Contato: isimp...@isimples.com.br http://www.isimples.com.br Aviso:Esta mensagem e quaisquer arquivos em anexo podem conter informações confidenciais e/ou privilegiadas. Se você não for o destinatário ou a pessoa autorizada a receber esta mensagem, por favor, não leia, copie, repasse, imprima, guarde, nem tome qualquer ação baseada nessas informações. Notifique o remetente imediatamente por e-mail e apague a mensagem permanentemente. Atenção: embora a Isimples Telecom, tome seus cuidados para garantir a ausência de vírus neste e-mail, a empresa não se responsabiliza por quaisquer perdas ou danos decorrentes do uso da mensagem e seus anexos. A segurança e ausência de erros na transmissão do e-mail não podem ser garantidas, já que as informações podem ser interceptadas, corrompidas, perdidas, destruídas, atrasadas, chegarem incompletas, ou, ainda, conter vírus. Recomendamos checar se o e-mail e seus anexos contém vírus, uma vez que nem a Isimples Telecom ou o remetente se responsabilizam pela transmissão destes.
<<attachment: logo_isimples.png>>
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users