Re: how to use is_socket_name()
Denys Pozniak via sr-users <[email protected]>
| Newsgroups | gmane.comp.voip.ser |
|---|---|
| Message-ID | <CA+x3AxrJi9qeh-o86A6Sa0OA9Z=w1BFd9K8Aye_J_mY_NCGG4Q@mail.gmail.com> |
>Returns 1 (native config true) if the parameter matches a local socket name, otherwise -1 (native config false). Maybe this should be interpreted as *is_socket_name_exist()*? чт, 11 сент. 2025 г. в 10:58, Denys Pozniak <[email protected]>: > 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 > > > -- 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!