user registration is done successfully but in /var/log/kamailio.log is not print log messages i follow some link but still occur problem i follow this link http://nil.uniza.sk/sip/kamailio/kamailio-logging-how-debian-lenny https://www.kamailio.org/wiki/install/4.0.x/git https://www.kamailio.org/wiki/tutorials/3.2.x/syslog what i am do please help me
On Mon, Mar 07, 2016 at 09:13:05PM +0530, Shiv Patidar wrote:
user registration is done successfully but in /var/log/kamailio.log is not print log messages
Kamailio doesn't log this kind of message unless you tell it to.
Assuming you have the "default" config: ======================================================================= # IP authorization and user authentication route[AUTH] { #!ifdef WITH_AUTH
#!ifdef WITH_IPAUTH if((!is_method("REGISTER")) && allow_source_address()) { # source IP allowed return; } #!endif
if (is_method("REGISTER") || from_uri==myself) { # authenticate requests if (!auth_check("$fd", "subscriber", "1")) { auth_challenge("$fd", "0"); exit; } # user authenticated - remove auth header if(!is_method("REGISTER|PUBLISH")) consume_credentials(); } # if caller is not local subscriber, then check if it calls # a local destination, otherwise deny, not an open relay here if (from_uri!=myself && uri!=myself) { sl_send_reply("403","Not relaying"); exit; }
#!endif return; } ======================================================================= You'll need to add an xlog statement http://kamailio.org/docs/modules/stable/modules/xlog.html#xlog.f.xlog when auth_check is true.
if(!auth_check...) { } else{ xlog("Authenticated: $au"); }
thank you for help i am new and i don't have brief knowledge so please tell me where i add this code and please explain in brief
# IP authorization and user authentication route[AUTH] { #!ifdef WITH_AUTH
#!ifdef WITH_IPAUTH if((!is_method("REGISTER")) && allow_source_address()) { # source IP allowed return; } #!endif
if (is_method("REGISTER") || from_uri==myself) { # authenticate requests if (!auth_check("$fd", "subscriber", "1")) { auth_challenge("$fd", "0"); exit; } # user authenticated - remove auth header if(!is_method("REGISTER|PUBLISH")) consume_credentials(); } # if caller is not local subscriber, then check if it calls # a local destination, otherwise deny, not an open relay here if (from_uri!=myself && uri!=myself) { sl_send_reply("403","Not relaying"); exit; }
#!endif return; }
On Mon, Mar 7, 2016 at 9:50 PM, Daniel Tryba d.tryba@pocos.nl wrote:
On Mon, Mar 07, 2016 at 09:13:05PM +0530, Shiv Patidar wrote:
user registration is done successfully but in /var/log/kamailio.log is
not
print log messages
Kamailio doesn't log this kind of message unless you tell it to.
Assuming you have the "default" config:
# IP authorization and user authentication route[AUTH] { #!ifdef WITH_AUTH
#!ifdef WITH_IPAUTH if((!is_method("REGISTER")) && allow_source_address()) { # source IP allowed return; } #!endif
if (is_method("REGISTER") || from_uri==myself) { # authenticate requests if (!auth_check("$fd", "subscriber", "1")) { auth_challenge("$fd", "0"); exit; } # user authenticated - remove auth header if(!is_method("REGISTER|PUBLISH")) consume_credentials(); } # if caller is not local subscriber, then check if it calls # a local destination, otherwise deny, not an open relay here if (from_uri!=myself && uri!=myself) { sl_send_reply("403","Not relaying"); exit; }
#!endif return; } ======================================================================= You'll need to add an xlog statement http://kamailio.org/docs/modules/stable/modules/xlog.html#xlog.f.xlog when auth_check is true.
if(!auth_check...) { } else{ xlog("Authenticated: $au"); }
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On Mon, Mar 07, 2016 at 11:18:17PM +0530, Shiv Patidar wrote:
thank you for help i am new and i don't have brief knowledge so please tell me where i add this code and please explain in brief
Take a good look at what I wrote, the solution was already in there (it contained the default config and the lines needed to add and where to do that(see the else with the xlog)).
Any further details can't be given unless you tell/show us what your config looks like for authentication.
i did according to you then my log file print this but i want to print user registraction in kamailio.log what i do please help me
/usr/local/sbin/kamailio[25086]:INFO:<core>[main.c:798]:sig_usr():Signal 15 received /usr/local/sbin/kamailio[15085]:INFO:<core>[main.c:798]:sig_usr():Signal 15 received /usr/local/sbin/kamailio[15079]:INFO:<core>[sctp_core.c:53]:sctp_core_destroy():SCTP API not initialized /usr/local/sbin/kamailio[15079]:INFO:<core>[sctp_core.c:75]:sctp_core_check_support():SCTP API not enabled-if you want to use it load sctp module /usr/local/sbin/kamailio[23190]:INFO:rr[../outbound/api.h:54]:ob_load_api():failed to import bind_ob /usr/local/sbin/kamailio[23190]:INFO:rr[rr-mod.c:174]:mod_init():outbound module not available /usr/local/sbin/kamailio[23190]:INFO:usrloc[hslot.c:51]:ul_init_locks():locks aaray size 1024 /usr/local/sbin/kamailio[23190]:INFO:<core>[udp_server.c:150]:probe_max_receive_buffer():SO_RCVBUF is initially 163840 /usr/local/sbin/kamailio[23190]:INFO:<core>[udp_server.c:150]:probe_max_receive_buffer():SO_RCVBUF is finally 327680 /usr/local/sbin/kamailio[23198]:INFO:ctl[io_listener.c:210]:io_listen_loop():io_listen_loop:using epoll_1t as the io watch method (auto detected)
On Mon, Mar 7, 2016 at 9:50 PM, Daniel Tryba d.tryba@pocos.nl wrote:
On Mon, Mar 07, 2016 at 09:13:05PM +0530, Shiv Patidar wrote:
user registration is done successfully but in /var/log/kamailio.log is
not
print log messages
Kamailio doesn't log this kind of message unless you tell it to.
Assuming you have the "default" config:
# IP authorization and user authentication route[AUTH] { #!ifdef WITH_AUTH
#!ifdef WITH_IPAUTH if((!is_method("REGISTER")) && allow_source_address()) { # source IP allowed return; } #!endif
if (is_method("REGISTER") || from_uri==myself) { # authenticate requests if (!auth_check("$fd", "subscriber", "1")) { auth_challenge("$fd", "0"); exit; } # user authenticated - remove auth header if(!is_method("REGISTER|PUBLISH")) consume_credentials(); } # if caller is not local subscriber, then check if it calls # a local destination, otherwise deny, not an open relay here if (from_uri!=myself && uri!=myself) { sl_send_reply("403","Not relaying"); exit; }
#!endif return; } ======================================================================= You'll need to add an xlog statement http://kamailio.org/docs/modules/stable/modules/xlog.html#xlog.f.xlog when auth_check is true.
if(!auth_check...) { } else{ xlog("Authenticated: $au"); }
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
i want to print user registration in kamailio.log file
On Wed, Mar 9, 2016 at 10:40 PM, Shiv Patidar patidarshiv3@gmail.com wrote:
i did according to you then my log file print this but i want to print user registraction in kamailio.log what i do please help me
/usr/local/sbin/kamailio[25086]:INFO:<core>[main.c:798]:sig_usr():Signal 15 received /usr/local/sbin/kamailio[15085]:INFO:<core>[main.c:798]:sig_usr():Signal 15 received /usr/local/sbin/kamailio[15079]:INFO:<core>[sctp_core.c:53]:sctp_core_destroy():SCTP API not initialized /usr/local/sbin/kamailio[15079]:INFO:<core>[sctp_core.c:75]:sctp_core_check_support():SCTP API not enabled-if you want to use it load sctp module /usr/local/sbin/kamailio[23190]:INFO:rr[../outbound/api.h:54]:ob_load_api():failed to import bind_ob /usr/local/sbin/kamailio[23190]:INFO:rr[rr-mod.c:174]:mod_init():outbound module not available /usr/local/sbin/kamailio[23190]:INFO:usrloc[hslot.c:51]:ul_init_locks():locks aaray size 1024 /usr/local/sbin/kamailio[23190]:INFO:<core>[udp_server.c:150]:probe_max_receive_buffer():SO_RCVBUF is initially 163840 /usr/local/sbin/kamailio[23190]:INFO:<core>[udp_server.c:150]:probe_max_receive_buffer():SO_RCVBUF is finally 327680 /usr/local/sbin/kamailio[23198]:INFO:ctl[io_listener.c:210]:io_listen_loop():io_listen_loop:using epoll_1t as the io watch method (auto detected)
On Mon, Mar 7, 2016 at 9:50 PM, Daniel Tryba d.tryba@pocos.nl wrote:
On Mon, Mar 07, 2016 at 09:13:05PM +0530, Shiv Patidar wrote:
user registration is done successfully but in /var/log/kamailio.log is
not
print log messages
Kamailio doesn't log this kind of message unless you tell it to.
Assuming you have the "default" config:
# IP authorization and user authentication route[AUTH] { #!ifdef WITH_AUTH
#!ifdef WITH_IPAUTH if((!is_method("REGISTER")) && allow_source_address()) { # source IP allowed return; } #!endif
if (is_method("REGISTER") || from_uri==myself) { # authenticate requests if (!auth_check("$fd", "subscriber", "1")) { auth_challenge("$fd", "0"); exit; } # user authenticated - remove auth header if(!is_method("REGISTER|PUBLISH")) consume_credentials(); } # if caller is not local subscriber, then check if it calls # a local destination, otherwise deny, not an open relay here if (from_uri!=myself && uri!=myself) { sl_send_reply("403","Not relaying"); exit; }
#!endif return; } ======================================================================= You'll need to add an xlog statement http://kamailio.org/docs/modules/stable/modules/xlog.html#xlog.f.xlog when auth_check is true.
if(!auth_check...) { } else{ xlog("Authenticated: $au"); }
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users