[asterisk-commits] tilghman: branch 1.8 r299626 - in /branches/1.8: ./ channels/chan_local.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Dec 25 10:07:18 UTC 2010


Author: tilghman
Date: Sat Dec 25 04:07:15 2010
New Revision: 299626

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=299626
Log:
Merged revisions 299625 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r299625 | tilghman | 2010-12-25 04:05:00 -0600 (Sat, 25 Dec 2010) | 12 lines
  
  Merged revisions 299624 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r299624 | tilghman | 2010-12-25 04:04:06 -0600 (Sat, 25 Dec 2010) | 5 lines
    
    Move check for extension existence below variable inheritance, due to the possible use of an eswitch.
    
    (closes issue #16228)
     Reported by: jlaguilar
  ........
................

Modified:
    branches/1.8/   (props changed)
    branches/1.8/channels/chan_local.c

Propchange: branches/1.8/
------------------------------------------------------------------------------
Binary property 'branch-1.6.2-merged' - no diff available.

Modified: branches/1.8/channels/chan_local.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_local.c?view=diff&rev=299626&r1=299625&r2=299626
==============================================================================
--- branches/1.8/channels/chan_local.c (original)
+++ branches/1.8/channels/chan_local.c Sat Dec 25 04:07:15 2010
@@ -795,15 +795,6 @@
 
 	ast_channel_cc_params_init(p->chan, ast_channel_get_cc_config_params(p->owner));
 
-	if (!ast_exists_extension(NULL, p->chan->context, p->chan->exten, 1,
-		S_COR(p->owner->caller.id.number.valid, p->owner->caller.id.number.str, NULL))) {
-		ast_log(LOG_NOTICE, "No such extension/context %s@%s while calling Local channel\n", p->chan->exten, p->chan->context);
-		ao2_unlock(p);
-		ast_channel_unlock(p->chan);
-		ao2_ref(p, -1);
-		return -1;
-	}
-
 	/* Make sure we inherit the ANSWERED_ELSEWHERE flag if it's set on the queue/dial call request in the dialplan */
 	if (ast_test_flag(ast, AST_FLAG_ANSWERED_ELSEWHERE)) {
 		ast_set_flag(p->chan, AST_FLAG_ANSWERED_ELSEWHERE);
@@ -829,6 +820,15 @@
 		*slash = '\0';
 	}
 	ast_set_cc_interfaces_chanvar(p->chan, reduced_dest);
+
+	if (!ast_exists_extension(p->chan, p->chan->context, p->chan->exten, 1,
+		S_COR(p->owner->caller.id.number.valid, p->owner->caller.id.number.str, NULL))) {
+		ast_log(LOG_NOTICE, "No such extension/context %s@%s while calling Local channel\n", p->chan->exten, p->chan->context);
+		ao2_unlock(p);
+		ast_channel_unlock(p->chan);
+		ao2_ref(p, -1);
+		return -1;
+	}
 
 	/* Start switch on sub channel */
 	if (!(res = ast_pbx_start(p->chan)))




More information about the asterisk-commits mailing list