<DIV>Elena, your advice is very useful for me. Thank you very much. :-)</DIV>
<DIV>However,i think i should introduce the environment I now used.</DIV>
<DIV> </DIV>
<DIV>First, there are 3 users on the linux, and one kamailio.cfg for each user. I am not the root user. So i don't have the priviledge to write the diretory---->/var/log/messages</DIV>
<DIV> </DIV>
<DIV>According the introduction you provided for me, I want to setup my own log file. But I am not sure whether it will work. The idea is:</DIV>
<DIV> </DIV>
<DIV>1. In kamailio.cfg set "log_facility=LOG_LOCAL5" </DIV>
<DIV> </DIV>
<DIV>2. In syslog.conf set </DIV>
<DIV> # Log anything (except mail) of level info or higher.<BR> # Don't log private authentication messages!<BR> *.info;mail.none;authpriv.none;cron.none;local5.none /var/log/messages</DIV>
<DIV> </DIV>
<DIV>3. In syslog.conf set</DIV>
<DIV> # log messages with LOG_LOCAL5 in /var/log/kamailio.log<BR> local5.* -/home/albert/mylocal/myvar/log/kamailio.log<BR></DIV>
<DIV>Any idea will be appreciated. Thanks in advance.</DIV>
<DIV> </DIV>
<DIV><SIGN signid="1">
<DIV style="FONT-FAMILY: Arial Narrow; COLOR: #909090; FONT-SIZE: 12px">------------------</DIV>
<DIV style="FONT-FAMILY: Verdana; COLOR: #000; FONT-SIZE: 14px"></DIV>
<DIV></DIV>albert.gu</SIGN> </DIV>
<DIV><TINCLUDETAIL>
<DIV> </DIV>
<DIV> </DIV>
<DIV style="COLOR: #000">
<DIV style="PADDING-BOTTOM: 2px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: Arial Narrow; FONT-SIZE: 12px; PADDING-TOP: 2px">------------------ 原始邮件 ------------------</DIV>
<DIV style="PADDING-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV id=menu_sender><B>发件人:</B> "Elena-Ramona Modroiu"<ramona@asipto.com>;</DIV>
<DIV><B>发送时间:</B> 2011年12月21日(星期三) 凌晨4:29</DIV>
<DIV><B>收件人:</B> "SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List"<sr-users@lists.sip-router.org>; <WBR></DIV>
<DIV><B>抄送:</B> "sunny_day"<416415455@qq.com>; <WBR></DIV>
<DIV><B>主题:</B> Re: [SR-Users] 回复: Why? there isn't a syslog.conf under mykamailiodirectory?</DIV></DIV>
<DIV> </DIV>Hi,<BR><BR>regarding the configuration of syslog to write kamailio log messges in a special file, you can find couple of tutorials on kamailio.org wiki sites. One is:<BR><BR><A class=moz-txt-link-freetext href="http://www.kamailio.org/wiki/tutorials/3.2.x/syslog">http://www.kamailio.org/wiki/tutorials/3.2.x/syslog</A> <BR><BR>Regards,<BR>Ramona<BR><BR><BR> On 12/20/11 10:35 AM, sunny_day wrote:
<BLOCKQUOTE cite=mid:tencent_00C4C179240996462CA4895D@qq.com type="cite">
<DIV>I got it . Thank you Michal :)</DIV>
<DIV> </DIV>
<DIV>
<DIV style="FONT-FAMILY: Arial Narrow; COLOR: #909090; FONT-SIZE: 12px">------------------</DIV>
<DIV style="FONT-FAMILY: Verdana; COLOR: #000; FONT-SIZE: 14px">
<DIV>albert.gu</DIV></DIV></DIV>
<DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV style="COLOR: #000">
<DIV style="PADDING-BOTTOM: 2px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: Arial Narrow; FONT-SIZE: 12px; PADDING-TOP: 2px">------------------ 原始邮 件 ------------------</DIV>
<DIV style="PADDING-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV id=menu_sender><B>发件人:</B> "Michal Matyska"<A class=moz-txt-link-rfc2396E href="mailto:michal.matyska@iptel.org"><michal.matyska@iptel.org></A>;</DIV>
<DIV><B>发送时间:</B> 2011年12月20日(星期二) 下午5:20</DIV>
<DIV><B>收件人:</B> "SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - UsersMailing List"<A class=moz-txt-link-rfc2396E href="mailto:sr-users@lists.sip-router.org"><sr-users@lists.sip-router.org></A>; <WBR></DIV>
<DIV><B>主题:</B> Re: [SR-Users] Why? there isn't a syslog.conf under mykamailiodirectory?</DIV></DIV>
<DIV> </DIV>Hi,<BR><BR>use -E option and you'll get all the logs on the sterr.<BR><BR>Michal<BR><BR>sunny_day píše v Út 20. 12. 2011 v 17:10 +0800:<BR>> Olle , Thank you very much for your reply!<BR>> I am not the root user on the unix system. but I want to customize the<BR>> log file for the function: xlog.<BR>> Now, I don't know where to see the content what xlog writes. It can<BR>> help me to debug the script of kamailio.cfg i edited.<BR>> <BR>> what i do is collect the CDRs by dialog and acc modules. Any<BR>> suggestion will be appreciated.<BR>> <BR>> Thanks a lot !<BR>> <BR>> ------------------<BR>> albert.gu<BR>> <BR>> <BR>> ------------------ Original ------------------<BR>> From: "Olle E. Johansson"<A class=moz-txt-link-rfc2396E href="mailto:oej@edvina.net"><oej@edvina.net></A>;<BR>> Date: Tue, Dec 20, 2011 04:57 PM<BR>> To: "SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -<BR>> UsersMailing List"<A class=moz-txt-link-rfc2396E href="mailto:sr-users@lists.sip-router.org"><sr-users@lists.sip-router.org></A>; <BR>> <BR>> Subject: Re: [SR-Users] Why? there isn't a syslog.conf under my<BR>> kamailiodirectory?<BR>> <BR>> <BR>> 20 dec 2011 kl. 05:57 skrev sunny_day:<BR>> <BR>> > There should be a syslog.conf file under the kamailio directory.<BR>> > But I haven't.<BR>> > <BR>> > I only want to see the contents generated by "xlog"<BR>> <BR>> Syslog is a daemon in your operating system. The configuration file is<BR>> propably in the /etc <BR>> directory. Try running "man syslog.conf" for more information about<BR>> that file.<BR>> <BR>> /O<BR>> <BR>> <BR>> _______________________________________________<BR>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing<BR>> list<BR>> <A class=moz-txt-link-abbreviated href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</A> <BR>> <A class=moz-txt-link-freetext href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</A> <BR>> <BR>> _______________________________________________<BR>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<BR>> <A class=moz-txt-link-abbreviated href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</A> <BR>> <A class=moz-txt-link-freetext href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</A> <BR><BR><BR><BR>_______________________________________________<BR>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<BR><A class=moz-txt-link-abbreviated href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</A> <BR><A class=moz-txt-link-freetext href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</A> <BR></DIV></DIV><BR>
<FIELDSET class=mimeAttachmentHeader></FIELDSET> <BR><PRE wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<A class=moz-txt-link-abbreviated href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</A>
<A class=moz-txt-link-freetext href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</A>
</PRE></BLOCKQUOTE><BR></DIV></TINCLUDETAIL></DIV>