[Home]

Summary:ASTERISK-19265: ESwitch not Converting Variables
Reporter:Alex Tatham (atatham)Labels:
Date Opened:2012-01-28 11:11:48.000-0600Date Closed:2012-01-28 11:44:07.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Resources/res_rtp_asterisk
Versions:1.8.9.0 Frequency of
Occurrence
Constant
Related
Issues:
is duplicated byASTERISK-20589 When using eswitch - variable substitution fails if there is no dialplan executed immediately before the eswitch
Environment:Compiled from source on DebianAttachments:
Description:When processing any extension from the dialplan, using realtime, a variable is not interpreted in the eswitch statement.

For example; when using the syntax below and where the accountcode is 123, I would expect this to generate a query to the database for records in context 123.  Instead the parent context 'testing' is used in the database query.

[testing]
eswitch => Realtime/${CDR(accountcode)}@
Comments:By: Paul Belanger (pabelanger) 2012-01-28 11:43:59.039-0600

Thanks for your comments. This does not appear to be a bug report and we are closing it. We appreciate the difficulties you are facing, but it would make more sense to raise your question in the support tracker, http://www.asterisk.org/support.



By: Alex Tatham (atatham) 2012-02-05 06:11:48.486-0600

Thanks Paul.  I don't really understand.  Reading the documentation the eswitch as appossed to the switch command should interpret the variable and convert it to a value.  This would mean that the above realtime call would search the database for exstensions matching the account code but it does not.  It doesn't therefore appear to be working as it should.