After bashing the keyboard for the last 3 days, I believe I am nearly there but require some assistance as to the last hurdle.
Essentially, I have a script that has a timer built in and that is applied to the inbound dial-peer. Users hear a prompt and are put through to a CUE IVR system. If they exceed the timer set on the script, the call should disconnect.
Now, from what I have seen, the script never disconnects the call because it is no longer in charge of the call leg (goes to default application), so I used handoff instead of call setup, and handoff return to get the call back but that doesn't work. So I thought of another way of doing it which is via the generation of a syslog message by the TCL script and tie that to EEM.
From the EEM, I want to parse the syslog, get the ani or dnis and clear the call that way. Messy but I believe it will work.
That is where I am at the moment as I don't know how to setup an action to pull out specific information from the syslog such as DNIS and then use that in a variable to carry out an action which has a clear call command within it. So my EEM currently has a trigger which is a specific phrase and from that, the EEM policy goes through its actions but as stated, can't parse that message which triggered the EEM.
%IVR-2-APP_CRIT: Maximum call time reached from calling number 88888888
event manager applet ClearCall
event syslog pattern %IVR-2-APP_CRIT: Maximum call time"
action 01.0 cli command "enable"
action 02.0 cli command (believe parsing for the number 88888888 required here)