summaryrefslogtreecommitdiff
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authorOlle Johansson <oej@edvina.net>2006-06-20 15:46:49 +0000
committerOlle Johansson <oej@edvina.net>2006-06-20 15:46:49 +0000
commit0195279499fa7512db70190cfe82cceeb0e933e0 (patch)
tree53a938c462253f912a4459621638921571cbc93d /channels/chan_sip.c
parent8686c659a665341f45ce2ebecd09ab1d9ecc16a4 (diff)
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
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 28eff5dc1..f1b53aa19 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