From: Olle Johansson Date: Tue, 20 Jun 2006 15:46:49 +0000 (+0000) Subject: use correct test for checking if sip domains are enabled or not X-Git-Tag: 1.4.0-beta1~835 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0195279499fa7512db70190cfe82cceeb0e933e0;p=thirdparty%2Fasterisk.git use correct test for checking if sip domains are enabled or not git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35125 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 28eff5dc10..f1b53aa19f 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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