corex: debug message for set rcv/snd sock functions
authorDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 18 Jul 2019 06:46:27 +0000 (08:46 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 18 Jul 2019 06:46:27 +0000 (08:46 +0200)
src/modules/corex/corex_mod.c

index a6a01e9..846043e 100644 (file)
@@ -630,6 +630,8 @@ static int ki_set_socket_helper(sip_msg_t *msg, str *ssock, int smode)
                                ssock->len, ssock->s, smode);
                goto error;
        }
+       LM_DBG("trying to set %s-socket to [%.*s] (%d)\n",
+                               (smode==0)?"snd":"rcv", ssock->len, ssock->s, smode);
        si = grep_sock_info(&host, (unsigned short)port, (unsigned short)proto);
        if (si!=NULL) {
                if(smode==0) {