After some more testing, I'm a bit stumped. It seems like QM may be caching the current_terminal so it doesn't have to look it up each time.
If I set a Zap channel in the agent's current terminal from within QM, it shows up in the agenti_noti table and when I monitor the call, it is in the QM_AGENT_EXT asterisk variable. However, if I alter the table directly via the SQL cli client, or update it via the agi script, it does not see the change.
I just tested again. I set the value in the table via the SQL cli and tested it. Does not see the change. Waited several minutes, tried again. No change. Several more mins, tried again. No change. I then went to the config agents page in QM and did not touch anything. Went back to realtime and tried monitoring another call and it saw the change.
QM is definitely caching the agent table. Any way to make it not do that?
I did find this in the config file:
# DO NOT CHANGE
realtime.use_sql_now=false
Now I am curious
-Dennis