|
@@ -191,9 +191,11 @@ int t_lookup_request( struct sip_msg* p_msg , int leave_new_locked )
|
|
/* To only the uri and ... */
|
|
/* To only the uri and ... */
|
|
if (get_to(t_msg)->uri.len!=get_to(p_msg)->uri.len)
|
|
if (get_to(t_msg)->uri.len!=get_to(p_msg)->uri.len)
|
|
continue;
|
|
continue;
|
|
|
|
+#ifdef TOTAG
|
|
/* ... its to-tag compared to reply's tag */
|
|
/* ... its to-tag compared to reply's tag */
|
|
if (p_cell->uas.to_tag.len!=get_to(p_msg)->tag_value.len)
|
|
if (p_cell->uas.to_tag.len!=get_to(p_msg)->tag_value.len)
|
|
continue;
|
|
continue;
|
|
|
|
+#endif
|
|
|
|
|
|
/* we first skip r-uri and Via and proceed with
|
|
/* we first skip r-uri and Via and proceed with
|
|
content of other header-fields */
|
|
content of other header-fields */
|
|
@@ -205,12 +207,14 @@ int t_lookup_request( struct sip_msg* p_msg , int leave_new_locked )
|
|
if (!EQ_STR(from)) continue;
|
|
if (!EQ_STR(from)) continue;
|
|
if (memcmp(get_to(t_msg)->uri.s, get_to(p_msg)->uri.s,
|
|
if (memcmp(get_to(t_msg)->uri.s, get_to(p_msg)->uri.s,
|
|
get_to(t_msg)->uri.len)!=0) continue;
|
|
get_to(t_msg)->uri.len)!=0) continue;
|
|
|
|
+#ifdef TOTAG
|
|
if (
|
|
if (
|
|
#ifdef _BUG
|
|
#ifdef _BUG
|
|
p_cell->uas.to_tag.len!=0 /* to-tags empty */ ||
|
|
p_cell->uas.to_tag.len!=0 /* to-tags empty */ ||
|
|
#endif
|
|
#endif
|
|
memcmp(p_cell->uas.to_tag.s, get_to(p_msg)->tag_value.s,
|
|
memcmp(p_cell->uas.to_tag.s, get_to(p_msg)->tag_value.s,
|
|
p_cell->uas.to_tag.len)!=0) continue;
|
|
p_cell->uas.to_tag.len)!=0) continue;
|
|
|
|
+#endif
|
|
|
|
|
|
/* ok, now only r-uri or via can mismatch; they must match
|
|
/* ok, now only r-uri or via can mismatch; they must match
|
|
for non-2xx; if it is a 2xx, we don't try to match
|
|
for non-2xx; if it is a 2xx, we don't try to match
|