[OpenSIPS-Devel] [opensips] Add listen interface (socket) checking to db based natping. (#127)
Răzvan Crainea
notifications at github.com
Wed Apr 30 18:53:58 CEST 2014
> @@ -130,6 +131,18 @@ static int get_all_db_ucontacts(void *buf, int len, unsigned int flags,
>
> LM_DBG("buf: %p. flags: %d\n", buf, flags);
>
> + if (sockaddr_list_str.s) {
> + i = snprintf(query_socket, sizeof(query_socket), " and socket in (%.*s)",
Is this IN operator compliant with all SQL standards (Postgres, MySQL, etc.)? Or should we convert it to a standard format like "... AND (socket = IP1 or socket = IP2 ...)"?
---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/127/files#r12153160
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20140430/6836bb24/attachment.htm>
More information about the Devel
mailing list