Try to quote the expression you want to echo :
exec_msg('echo "$SIP_HF_CSEQ : $SIP_HF_FROM to $SIP_HF_TO">> /var/log/syslog');
Xavier.
Sam Lee a écrit:
Pas de virus detecté dans l'attachement no filename Pas de virus detecté dans l'attachement no filename Pas de virus detecté dans l'attachement no filename
Votre Mail a été vérifié par InterScan. ***********-***********
Sujet: [Serusers] exec_msg problem Expéditeur: "Sam Lee" sam.lee@super.net.sg Date: Fri, 29 Jul 2005 11:35:53 +0800 Destinataire: serusers@lists.iptel.org
Hi,
Have anyone seen this kind of error message before :
ERROR: exec_msg: cmd echo $SIP_HF_CSEQ : $SIP_HF_FROM to $SIP_HF_TO >> /var/log/syslog failed. exit_status=-1, errno=32: Broken pipe
This command is actually in my ser.cfg where i capture this few environmental variables and push them into my /var/log/syslog. It effectively went in, but i still see this error message. Here is the original code in ser.cfg : exec_msg("echo $SIP_HF_CSEQ : $SIP_HF_FROM to $SIP_HF_TO >> /var/log/syslog");
Please help!
Regards, Sam
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers