allow in
dialogue INVITE with to tag.
for example: A calls B. B forwards the call to C. If C sends the BYE,
this will be loose route, but the From: header contains domain B, the
To: header contains domain A, and the domin in the request
URI contains
the IP address of A. Thus, if you will check for domain C it
will fail.
See the key words "in dialogue INVITE". I was trying to address one
particular SIP method here. I did mentioned to check other method as well.
Besides, there was no mentioning of uri check here, just to tag!