[Serusers] Broken Pipe Error

Jiri Kuthan jiri at iptel.org
Tue Jan 6 23:05:13 CET 2004


I'm not sure what the reason could be. I remember some similar error occured
because the shell script interpreted command-line parameter in an unexpected
way (as a shell command?). That's where I would begin looking at.

-jiri

At 10:43 PM 1/4/2004, Andres wrote:
>Hi,
>
>When we need to dump register requests to a file, we use the following command 
>inside ser.cfg:
>
>if (method=="REGISTER") {
>                exec_msg("echo `date` - From: $SIP_HF_FROM To: $SIP_HF_TO  
>Contact: $SIP_HF_CONTACT Src_IP: $SIP_SRCIP User_Agent: $SIP_HF_USER_AGENT >> 
>/var/log/ser/ser_register.log");
>};
>
>The command executes just fine every time and generates the info in the flat 
>file but the SYSLOG shows this error:
>
>Jan  4 16:40:35 wailea /usr/local/sbin/ser[15344]: ERROR: exec_msg: cmd echo 
>`date` - From: $SIP_HF_FROM To: $SIP_HF_TO  Contact: $SIP_HF_CONTACT Src_IP: 
>$SIP_SRCIP User_Agent: $SIP_HF_USER_AGENT >> /var/log/ser/ser_register.log 
>failed. exit_status=-1, errno=32: Broken pipe
>
>This error only appears on RH9.0.  It does not appear under Solaris 2.8 or 
>RH7.3.
>
>Any idea how we can fix this?
>
>Regards,
>Andres
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers

--
Jiri Kuthan            http://iptel.org/~jiri/ 




More information about the sr-users mailing list