[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:08:05 UTC 2010


A NOTE has been added to this issue. 
====================================================================== 
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:                     closed
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:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-11-12 01:00 CST
Last Modified:              2010-12-25 04:08 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;
	}

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

---------------------------------------------------------------------- 
 (0129968) svnbot (reporter) - 2010-12-25 04:08
 https://issues.asterisk.org/view.php?id=16228#c129968 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 299627

_U  trunk/
U   trunk/channels/chan_local.c

------------------------------------------------------------------------
r299627 | tilghman | 2010-12-25 04:08:04 -0600 (Sat, 25 Dec 2010) | 26
lines

Merged revisions 299626 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r299626 | tilghman | 2010-12-25 04:07:15 -0600 (Sat, 25 Dec 2010) | 19
lines
  
  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 https://issues.asterisk.org/view.php?id=16228)
       Reported by: jlaguilar
    ........
  ................
................

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-12-25 04:08 svnbot         Checkin                                      
2010-12-25 04:08 svnbot         Note Added: 0129968                          
======================================================================




More information about the asterisk-bugs mailing list