In call files, I’ve noticed I can set channel variables, and it is quite handy. I am wondering if there is a way to pass variables from an existing file outside of an outbound call via call file.
If I had a file that was CALLERID(num).info stored in my /tmp/ folder, is there a way in the dialplan to search for the file based on the incoming callers number matching the file name, then open the matching file, and use the setvar variables inside for that file for that call?
The thought was I could write variables and save them somewhere, then when a caller calls in again, if I could lookup and pull in that file, I could give them different options, based on what happened in previous calls.
Thanks for any insights here.