[Serusers] exec_msg problem
Sam Lee
sam.lee at super.net.sg
Fri Jul 29 10:29:36 CEST 2005
Tried. It didn't work. :<
Still getting the same error. The result still came out, its just that it is followed by the error message.
101 INVITE : 3902 <sip:3902 at x.x.x.x>;tag=5086b56866af3edo0 to <sip:967258002 at x.x.x.x>
Jul 29 16:26:16 abc /usr/local/sbin/ser[10577]: 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
-----Original Message-----
From: Xavier TRENTIN [mailto:xtrentin at softiphone.net]
Sent: Friday, July 29, 2005 4:11 PM
To: Sam Lee
Subject: Re: [Serusers] exec_msg problem
Try to quote the expression you want to echo like this:
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 at super.net.sg>
> Date:
> Fri, 29 Jul 2005 11:35:53 +0800
> Destinataire:
> <serusers at 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 at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>
>
More information about the sr-users
mailing list