use correct test for checking if sip domains are enabled or not
authorOlle Johansson <oej@edvina.net>
Tue, 20 Jun 2006 15:46:49 +0000 (15:46 +0000)
committerOlle Johansson <oej@edvina.net>
Tue, 20 Jun 2006 15:46:49 +0000 (15:46 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35125 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 28eff5d..f1b53aa 100644 (file)
@@ -13237,7 +13237,7 @@ static int handle_request_refer(struct sip_pvt *p, struct sip_request *req, int
                p->refer->localtransfer = 1;
                if (sipdebug && option_debug > 2)
                        ast_log(LOG_DEBUG, "This SIP transfer is local : %s\n", p->refer->refer_to_domain);
-       } else if (!allow_external_domains) {
+       } else if (AST_LIST_EMPTY(&domain_list)) {
                /* This PBX don't bother with SIP domains, so all transfers are local */
                p->refer->localtransfer = 1;
        } else