[Serusers] exec_msg problem
Sam Lee
sam.lee at super.net.sg
Fri Jul 29 17:33:52 CEST 2005
The problem is solved. Already post a reply earlier on with the solution. It was becos the function don't seem to like my syntax.
Anyway, thanks for the response!
-----Original Message-----
From: serusers-bounces at iptel.org [mailto:serusers-bounces at lists.iptel.org] On Behalf Of Thomas Britis
Sent: Friday, July 29, 2005 8:10 PM
To: serusers at lists.iptel.org
Subject: Re: [Serusers] exec_msg problem
Do you run ser as root ?
$ l /var/log/syslog
-rw-r----- 1 root root 115568 2005-07-28 18:50 /var/log/syslog
If you're not root, so you can't write to /var/log/syslog.
Sam Lee wrote:
> 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
>>
>>
>
>
>
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
>
--
Thomas Storino Britis
TCNet Inf e Telecom LTDA
_______________________________________________
Serusers mailing list
serusers at lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
More information about the sr-users
mailing list