herlesupreeth / Kamailio_IMS_Config

Fixed version of Kamailio IMS configuration files for basic calling
45 stars 36 forks source link

how to configure pcscf/scscf/icscf log correctly? #36

Open lglhust opened 6 months ago

lglhust commented 6 months ago

Hi herlesupreeth: I have set up volte environment according to docs/tutorial/02-VoLTE-setup/. Volte is successful. But i don't know how to configure pcscf/scscf/icscf log in different log files and display the log timestamp. I tried to use rsyslog , add following in kamailio_pcscf.cfg/kamailio_scscf.cfg/kamailio_icscf.cfg/: log_facility=LOG_LOCAL0 log_prefix="{$mt $hdr(CSeq) $ci}

And add "local0.* -/var/log/kamailio.log" to /etc/rsyslog.conf. I really get all log with timestamp but only in one log file promiscuously.

Is there other better ways to display timestamp to log and get three logs for pcscf, scscf, icscf respectively? Thanks a lot.

herlesupreeth commented 6 months ago

Hey @lglhust, I havent tinkered with logging much but you can refer to the xlog module in this link - https://kamailio.org/docs/modules/5.3.x/