From: Joshua Colp Date: Mon, 6 Aug 2007 16:34:15 +0000 (+0000) Subject: Merged revisions 78182 via svnmerge from X-Git-Tag: 1.6.0-beta1~3^2~1801 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=54a2d42e2f69ec196dfe66a1fa9ee5b88c3b5041;p=thirdparty%2Fasterisk.git Merged revisions 78182 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r78182 | file | 2007-08-06 13:32:44 -0300 (Mon, 06 Aug 2007) | 2 lines It is possible for a transfer to occur before the remote device has our tag in which case they send none in the transfer. In this case we need to not fail the transfer dialog lookup. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78183 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index a960e9deb1..3cc0a93f2e 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -9471,7 +9471,7 @@ static struct sip_pvt *get_sip_pvt_byid_locked(const char *callid, const char *t (With a forking SIP proxy, several call legs share the call id, but have different tags) */ - if (pedanticsipchecking && (strcmp(fromtag, sip_pvt_ptr->theirtag) || strcmp(totag, ourtag))) + if (pedanticsipchecking && (strcmp(fromtag, sip_pvt_ptr->theirtag) || (!ast_strlen_zero(totag) && strcmp(totag, ourtag)))) match = 0; if (!match) {