how to use is_socket_name()

Denys Pozniak via sr-users <[email protected]>
Newsgroups gmane.comp.voip.ser
Message-ID <CA+x3AxoF5z0vwwKojS0xPoQGmNdzV1=QUcQYsBnAfuePzEzNmw@mail.gmail.com>
Hey!

I don't understand how the *is_socket_name()* function works.
I assigned a name to each socket, but the function works regardless of
which socket the traffic arrives at.

*# kamailio -c*
*Listening on*
*             udp: 1.1.1.1 [1.1.1.1]:5060 name sip_fl_udp*
*             tcp:  1.1.1.1 [1.1.1.1]:5060 name sip_fl_tcp*


*script:*
*    if ( is_socket_name("sip_fl_udp") ) {*
*        xlog("L_WARN", "[test] * proto=$proto -> sip_fl_udp \n");*
*    } else if ( is_socket_name("sip_fl_tcp") ) {*
*        xlog("L_WARN", "[test] * proto=$proto -> sip_fl_tcp \n");*
*    }*


*syslog:*
*<script>: [test] * proto=udp -> sip_fl_udp*
*<script>: [test] * proto=tcp -> sip_fl_udp*



--
BR,
Denys Pozniak

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the sender!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.