[Home]

Summary:ASTERISK-11952: switch => Realtime/context@failmy doesn't accept variables in context
Reporter:Chris Maciejewski (chris-mac)Labels:
Date Opened:2008-05-01 06:02:37Date Closed:2011-06-07 14:03:18
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Resources/res_realtime
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:My dialplan:
[ivr]
exten => s,1,Ringing
exten => s,n,Set(MENU_ID=29)
exten => s,n,NoOp(MENU_ID: ${MENU_ID})
exten => s,n,Wait(2)
exten => s,n,Answer()
switch => Realtime/menu-${MENU_ID}@ivr

SQL query passed to MySQL server - DEBUG output:
DEBUG[1348] res_config_mysql.c: MySQL RealTime: Retrieve SQL:
SELECT * FROM ivr WHERE exten = 's' AND context = 'menu-' AND priority = '6'

NOTE: "context = 'menu-'" should be "context = 'menu-29'" in the above query.
Comments:By: Tilghman Lesher (tilghman) 2008-05-01 07:17:19

Use "eswitch" or "lswitch" if you want variables evaluated at runtime.  See extensions.conf.sample for more information.