<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Noto Sans'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">I use syslog-ng instead of rsyslog, it logs multi line messages just fine.<br /><br />On Thursday, December 27, 2018 9:14:23 AM EST Andrew Chen wrote:<br /></p>
<p style=" margin-top:12px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px;">Ah ok.  I thought L_INFO was default.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px;">But, as for my other question, why the string manipulation doesn't work here?</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px;">On Thu, Dec 27, 2018 at 3:10 AM Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com"><span style=" text-decoration: underline; color:#2980b9;">miconda@gmail.com</span></a>> wrote:<br /></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:46px; margin-right:40px; -qt-block-indent:0; text-indent:0px;">Hello, </p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:46px; margin-right:40px; -qt-block-indent:0; text-indent:0px;">do you mean that it writes "ERROR" in the prefix of the log message? </p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:46px; margin-right:40px; -qt-block-indent:0; text-indent:0px;">That is the default log level for xlog() function. You can write to another log level by providing it as first parameter: </p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:46px; margin-right:40px; -qt-block-indent:0; text-indent:0px;">xlog("L_INFO", "$mb"); </p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:46px; margin-right:40px; -qt-block-indent:0; text-indent:0px;">Cheers,<br />Daniel<br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:46px; margin-right:40px; -qt-block-indent:0; text-indent:0px;">On 26.12.18 22:24, Andrew Chen wrote:<br /></p>
<p style=" margin-top:12px; margin-bottom:0px; margin-left:86px; margin-right:80px; -qt-block-indent:0; text-indent:0px;">Hey community, </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:86px; margin-right:80px; -qt-block-indent:0; text-indent:0px;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:86px; margin-right:80px; -qt-block-indent:0; text-indent:0px;">I'm currently trying to config our new 5.1.2 kamailio server and I want to xlog $mb.  Whenever I do this, I get an ERROR logged to my syslog  </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:86px; margin-right:80px; -qt-block-indent:0; text-indent:0px;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:86px; margin-right:80px; -qt-block-indent:0; text-indent:0px;">Dec 26 21:15:58 sjomainkama55 /usr/sbin/kamailio[5954]: {1 1 INVITE <padding>@<padding>} ERROR: <script>: INVITE sip:<padding>@<a href="http://sjomainkama55.a.fuzemeeting.com:443"><span style=" text-decoration: underline; color:#2980b9;">sjomainkama55.a.fuzemeeting.com:443</span></a><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:86px; margin-right:80px; -qt-block-indent:0; text-indent:0px;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:86px; margin-right:80px; -qt-block-indent:0; text-indent:0px;">Does anyone know why this is?<br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:86px; margin-right:80px; -qt-block-indent:0; text-indent:0px;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:86px; margin-right:80px; -qt-block-indent:0; text-indent:0px;">Also, I noticed I can't get rid of #012#015 at all.  I modified the rsyslogd.conf file as instructed here: </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:86px; margin-right:80px; -qt-block-indent:0; text-indent:0px;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:86px; margin-right:80px; -qt-block-indent:0; text-indent:0px;">"i need to add the next line to /etc/rsyslog.conf "$EscapeControlCharactersOnReceive off"  <br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:86px; margin-right:80px; -qt-block-indent:0; text-indent:0px;">and when I did this, the control characters disappear but all it printed out was the first line of the SIP message.  I also try to assign $mb to a $var() and do a {re.replace} on  </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:86px; margin-right:80px; -qt-block-indent:0; text-indent:0px;">that string and that didn't work either. </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:86px; margin-right:80px; -qt-block-indent:0; text-indent:0px;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:86px; margin-right:80px; -qt-block-indent:0; text-indent:0px;">I ended up having to create a side script to parse the whole /var/log/syslog and do regex replace the #012#015 with real newline which is not what I really want for me or anyone else who needs to analyze the Kamailio logs. </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:86px; margin-right:80px; -qt-block-indent:0; text-indent:0px;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:86px; margin-right:80px; -qt-block-indent:0; text-indent:0px;">Please advise. </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:86px; margin-right:80px; -qt-block-indent:0; text-indent:0px;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:86px; margin-right:80px; -qt-block-indent:0; text-indent:0px;">Thanks. </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:86px; margin-right:80px; -qt-block-indent:0; text-indent:0px;"><br />-- <br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:86px; margin-right:80px; -qt-block-indent:0; text-indent:0px;">Andy Chen </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:86px; margin-right:80px; -qt-block-indent:0; text-indent:0px;"><a href="mailto:achen@thinkingphones.com"><span style=" text-decoration: underline; color:#2980b9;">achen@</span></a><a href="http://fuze.com"><span style=" text-decoration: underline; color:#2980b9;">fuze.com</span></a><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:86px; margin-right:80px; -qt-block-indent:0; text-indent:0px;"><br /><br /><br /><span style=" font-family:'Arial,sans-serif'; font-size:14px; color:#333333; background-color:#ffffff;">*Confidentiality Notice: The information contained in this e-mail and any<br />attachments may be confidential. If you are not an intended recipient, you<br />are hereby notified that any dissemination, distribution or copying of this<br />e-mail is strictly prohibited. If you have received this e-mail in error,<br />please notify the sender and permanently delete the e-mail and any<br />attachments immediately. You should not retain, copy or use this e-mail or<br />any attachment for any purpose, nor disclose all or any part of the<br />contents to any other person. Thank you.*</span> <br /></p>
<pre style=" margin-top:12px; margin-bottom:0px; margin-left:86px; margin-right:80px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Hack';">_______________________________________________</span></pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:86px; margin-right:80px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Hack';">Kamailio (SER) - Users Mailing List</span></pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:86px; margin-right:80px; -qt-block-indent:0; text-indent:0px;"><a href="mailto:sr-users@lists.kamailio.org"><span style=" font-family:'Hack'; text-decoration: underline; color:#2980b9;">sr-users@lists.kamailio.org</span></a></pre>
<pre style=" margin-top:0px; margin-bottom:12px; margin-left:86px; margin-right:80px; -qt-block-indent:0; text-indent:0px;"><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"><span style=" font-family:'Hack'; text-decoration: underline; color:#2980b9;">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</span></a> </pre>
<pre style=" margin-top:12px; margin-bottom:0px; margin-left:46px; margin-right:40px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Hack';">-- </span></pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:46px; margin-right:40px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Hack';">Daniel-Constantin Mierla -- </span><a href="http://www.asipto.com"><span style=" font-family:'Hack'; text-decoration: underline; color:#2980b9;">www.asipto.com</span></a></pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:46px; margin-right:40px; -qt-block-indent:0; text-indent:0px;"><a href="http://www.twitter.com/miconda"><span style=" font-family:'Hack'; text-decoration: underline; color:#2980b9;">www.twitter.com/miconda</span></a><span style=" font-family:'Hack';"> -- </span><a href="http://www.linkedin.com/in/miconda"><span style=" font-family:'Hack'; text-decoration: underline; color:#2980b9;">www.linkedin.com/in/miconda</span></a></pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:46px; margin-right:40px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Hack';">Kamailio World Conference - May 6-8, 2019 -- </span><a href="http://www.kamailioworld.com"><span style=" font-family:'Hack'; text-decoration: underline; color:#2980b9;">www.kamailioworld.com</span></a></pre>
<pre style=" margin-top:0px; margin-bottom:12px; margin-left:46px; margin-right:40px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Hack';">Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- </span><a href="http://www.asipto.com"><span style=" font-family:'Hack'; text-decoration: underline; color:#2980b9;">www.asipto.com</span></a> </pre>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px;"><br />-- <br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px;">Andy Chen</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px;">Sr. Telephony Lead Engineer</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px;">415 516 5535 (M)</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px;"><a href="mailto:achen@thinkingphones.com"><span style=" text-decoration: underline; color:#2980b9;">achen@</span></a><a href="http://fuze.com"><span style=" text-decoration: underline; color:#2980b9;">fuze.com</span></a></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px;"><br /><br /><span style=" font-family:'Arial,sans-serif'; font-size:14px; color:#333333; background-color:#ffffff;">*Confidentiality Notice: The information contained in this e-mail and any<br />attachments may be confidential. If you are not an intended recipient, you<br />are hereby notified that any dissemination, distribution or copying of this<br />e-mail is strictly prohibited. If you have received this e-mail in error,<br />please notify the sender and permanently delete the e-mail and any<br />attachments immediately. You should not retain, copy or use this e-mail or<br />any attachment for any purpose, nor disclose all or any part of the<br />contents to any other person. Thank you.*</span> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /><br /></p></body></html>