Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: Pioneer on April 08, 2013, 12:33:45 PM

Title: help for function SendRequest and SuspendForEvent.
Post by: Pioneer on April 08, 2013, 12:33:45 PM
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.
Title: Re: help for function SendRequest and SuspendForEvent.
Post by: cavagnaro on April 08, 2013, 05:26:23 PM
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.
Title: Re: help for function SendRequest and SuspendForEvent.
Post by: terry on April 08, 2013, 06:05:52 PM
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].

 


Title: Re: help for function SendRequest and SuspendForEvent.
Post by: Fra on April 10, 2013, 08:51:41 AM
[quote author=Pioneer link=topic=7747.msg33556#msg33556 date=1365424425]

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.
[/quote]
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
Title: Re: help for function SendRequest and SuspendForEvent.
Post by: Pioneer on April 11, 2013, 05:58:15 AM
[quote author=terry link=topic=7747.msg33558#msg33558 date=1365444352]
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].
[/quote]

Thanks, turned out.  ;D ;D ;D The documentation for the 'Events and Models Reference Manual' there is no mention about the referenceid. :-(
Title: Re: help for function SendRequest and SuspendForEvent.
Post by: Pioneer on April 11, 2013, 06:18:57 AM
[quote author=Fra link=topic=7747.msg33569#msg33569 date=1365583901]
How's the call delivered to DN 17002??
Fra
[/quote]

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?