[asterisk-bugs] [Asterisk 0016228]: eswitch does not substiotute variables when using Local Channel

Asterisk Bug Tracker noreply at bugs.digium.com
Sat Dec 25 10:05:01 UTC 2010


The following issue has been ASSIGNED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16228 
====================================================================== 
Reported By:                jlaguilar
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   16228
Category:                   PBX/pbx_realtime
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.6.1.9 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-11-12 01:00 CST
Last Modified:              2010-12-25 04:05 CST
====================================================================== 
Summary:                    eswitch does not substiotute variables when using
Local Channel
Description: 
When using a Local Channel to call an extension on another context that is
being switched (eswitched), variable substitution would not work.

It seems Local Channel calls the "sat_exists_extension" function with a
NULL channel and therefore variable substitution is always NULL.

Line 535 of chan_local.c:

	if (!sat_exists_extension(NULL, p->chan->context, p->chan->exten, 1,
p->owner->cid.cid_num)) {
		ast_log(LOG_NOTICE, "No such extension/context %s@%s while calling Local
channel\n", p->chan->exten, p->chan->context);
		ast_mutex_unlock(&p->lock);
		return -1;
	}

====================================================================== 

---------------------------------------------------------------------- 
 (0129965) svnbot (reporter) - 2010-12-25 04:05
 https://issues.asterisk.org/view.php?id=16228#c129965 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 299624

U   branches/1.4/channels/chan_local.c

------------------------------------------------------------------------
r299624 | tilghman | 2010-12-25 04:05:00 -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 https://issues.asterisk.org/view.php?id=16228)
 Reported by: jlaguilar

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=299624 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-12-25 04:05 svnbot         Checkin                                      
2010-12-25 04:05 svnbot         Note Added: 0129965                          
2010-12-25 04:05 svnbot         Status                   acknowledged =>
assigned
2010-12-25 04:05 svnbot         Assigned To               => tilghman        
======================================================================




More information about the asterisk-bugs mailing list