[SR-Users] In kamailio.log not print log message

Shiv Patidar patidarshiv3 at gmail.com
Wed Mar 9 18:10:14 CET 2016


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 at 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 at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160309/27aaf892/attachment.html>


More information about the sr-users mailing list