mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
dfa121d9d9
o Allow radius and presence modules to be turned off; o don't override CFLAGS; o don't duplicate error messages to the console; o postgresql backend doesn't set NULL flag on results properly, so that don't use VAL_NULL() macros on them; o reconnect to MySQL db when necessary; o relax transaction matching rules, so that it works with wider range of phones; o add some missed sanity checks in usrloc; o ignore incoming UDP messages that are shorter than certain limin (128 bytes). They cannot be SIP messages anyway.
37 lines
1.3 KiB
C
37 lines
1.3 KiB
C
|
|
$FreeBSD$
|
|
|
|
--- modules/tm/t_lookup.c.orig
|
|
+++ modules/tm/t_lookup.c
|
|
@@ -103,8 +103,8 @@
|
|
#include "t_msgbuilder.h" /* for t_lookup_callid */
|
|
|
|
#define EQ_VIA_LEN(_via)\
|
|
- ( (p_msg->via1->bsize-(p_msg->_via->name.s-(p_msg->_via->hdr.s+p_msg->_via->hdr.len)))==\
|
|
- (t_msg->via1->bsize-(t_msg->_via->name.s-(t_msg->_via->hdr.s+t_msg->_via->hdr.len))) )
|
|
+ ( (p_msg->_via->port_str.len > 0 ? (p_msg->_via->port_str.s + p_msg->_via->port_str.len - p_msg->_via->name.s) : p_msg->_via->name.len) ==\
|
|
+ (t_msg->_via->port_str.len > 0 ? (t_msg->_via->port_str.s + t_msg->_via->port_str.len - t_msg->_via->name.s) : t_msg->_via->name.len) )
|
|
|
|
|
|
|
|
@@ -122,7 +122,7 @@
|
|
#define EQ_VIA_STR(_via)\
|
|
( memcmp( t_msg->_via->name.s,\
|
|
p_msg->_via->name.s,\
|
|
- (t_msg->via1->bsize-(t_msg->_via->name.s-(t_msg->_via->hdr.s+t_msg->_via->hdr.len)))\
|
|
+ (t_msg->_via->port_str.len > 0 ? (t_msg->_via->port_str.s+t_msg->_via->port_str.len - t_msg->_via->name.s) : t_msg->_via->name.len) \
|
|
)==0 )
|
|
|
|
|
|
@@ -264,8 +264,10 @@
|
|
if (memcmp(inv_via->host.s, ack_via->host.s,
|
|
ack_via->host.len)!=0)
|
|
return 0;
|
|
+#if 0
|
|
if (inv_via->port!=ack_via->port)
|
|
return 0;
|
|
+#endif
|
|
if (inv_via->transport.len!=ack_via->transport.len)
|
|
return 0;
|
|
if (memcmp(inv_via->transport.s, ack_via->transport.s,
|