help for function SendRequest and SuspendForEvent.

Help using the function SendRequest. The strategy I declare a variable var1 = Cat[‘event:’,15,‘|connid:’,ConnID,‘|callid:’,CallID,‘|thisdn:’,‘17001’,‘|otherdn:’,‘15001’,‘|return:’,‘ok’]
Call the function SendRequest[15,var1].
The call goes to DN 15001 and routed to an agent selected in the strategy on 17001. On green point function i call function ReleaseCall. I want to keep track of what RequestMakePredictiveCall after the call, the call was delivered to 17002. I think that we should use the SuspendForEvent, but I do not know how? ??? Please help me.

When the call goes to an agent the RP loses control of the call, what it can keep on are just events after the agent released the call.

To track some call (wait event particularly) the strategy must own the call, in other words be started by some event (EvemntRouteRequest, EventRinging, etc) about the call.

Only exception - you know reference id of some request and expecting event with this reference id, for example
ref_id= SendRequest[15,var1].
SuspendForEvent[5000, 0, KVListInit[‘referenceid’, ref_id]].

More details about your case (what exactly information ab out the call going to be intercepted) might be helpful.

Also var1 looks like having a lot of unneeded data. To make predictive call will be enough just to set thisdn and otherdn:
var1= KVListInit[‘thisdn’, 17001, ‘otherdn’, 15001].

What?
What call scenario are you trying to keep track of?
Why do you try to release the call once has been delivered to an agent?
How’s the call delivered to DN 17002??
Why do you use a MakePredictiveCall to reach an agent?

Fra

Thanks, turned out. ;D ;D ;D The documentation for the ‘Events and Models Reference Manual’ there is no mention about the referenceid. :frowning:

Thanks for the reply. Already happened. The call delivered to a simple dial of 17001 from other phone. There is the idea, as it is put there?