[asterisk-commits] trunk r35125 - /trunk/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Jun 20 08:46:49 MST 2006


Author: oej
Date: Tue Jun 20 10:46:49 2006
New Revision: 35125

URL: http://svn.digium.com/view/asterisk?rev=35125&view=rev
Log:
use correct test for checking if sip domains are enabled or not

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=35125&r1=35124&r2=35125&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Tue Jun 20 10:46:49 2006
@@ -13237,7 +13237,7 @@
 		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



More information about the asterisk-commits mailing list