Summary: | ASTERISK-15123: eswitch does not substiotute variables when using Local Channel | ||||
Reporter: | Jose (jlaguilar) | Labels: | |||
Date Opened: | 2009-11-12 01:00:15.000-0600 | Date Closed: | 2010-12-25 04:08:05.000-0600 | ||
Priority: | Minor | Regression? | No | ||
Status: | Closed/Complete | Components: | PBX/pbx_realtime | ||
Versions: | Frequency of Occurrence | ||||
Related Issues: |
| ||||
Environment: | Attachments: | ||||
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; } ****** ADDITIONAL INFORMATION ****** The following would not work: [internal] eswitch => Realtime/internal_${ACCOUNT}@extensions [other_context] exten => 100,1,Set(ACCOUNT=10654) exten => 100,2,Set(__ACCOUNT=10655) exten => 100,3,Dial(Local/${EXTEN}@internal) The MySQL query generated is: SELECT * FROM extensions WHERE exten = '100' AND context = 'internal_' AND priority = '1' | ||||
Comments: | By: Digium Subversion (svnbot) 2010-12-25 04:05:01.000-0600 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 ASTERISK-15123) Reported by: jlaguilar ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=299624 By: Digium Subversion (svnbot) 2010-12-25 04:05:02.000-0600 Repository: asterisk Revision: 299625 _U branches/1.6.2/ U branches/1.6.2/channels/chan_local.c ------------------------------------------------------------------------ r299625 | tilghman | 2010-12-25 04:05:02 -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 ASTERISK-15123) Reported by: jlaguilar ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=299625 By: Digium Subversion (svnbot) 2010-12-25 04:07:16.000-0600 Repository: asterisk Revision: 299626 _U branches/1.8/ U branches/1.8/channels/chan_local.c ------------------------------------------------------------------------ r299626 | tilghman | 2010-12-25 04:07:16 -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 ASTERISK-15123) Reported by: jlaguilar ........ ................ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=299626 By: Digium Subversion (svnbot) 2010-12-25 04:08:05.000-0600 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 ASTERISK-15123) Reported by: jlaguilar ........ ................ ................ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=299627 |