Merged revisions 78182 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Mon, 6 Aug 2007 16:34:15 +0000 (16:34 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 6 Aug 2007 16:34:15 +0000 (16:34 +0000)
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

channels/chan_sip.c

index a960e9d..3cc0a93 100644 (file)
@@ -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) {