--- chan_sip.c.trunk.104074.original 2008-02-25 11:37:26.000000000 +0100 +++ chan_sip.c.trunk.104074 2008-02-25 11:40:59.000000000 +0100 @@ -5831,7 +5831,7 @@ found = (!strcmp(p->callid, callid)); else found = (!strcmp(p->callid, callid) && - (!pedanticsipchecking || !tag || ast_strlen_zero(p->theirtag) || !strcmp(p->theirtag, tag))) ; + (!pedanticsipchecking || ast_strlen_zero(tag) || ast_strlen_zero(p->theirtag) || !strcmp(p->theirtag, tag))) ; ast_debug(5, "= %s Their Call ID: %s Their Tag %s Our tag: %s\n", found ? "Found" : "No match", p->callid, p->theirtag, p->tag);