" /> SendRequest Functioanlity in IRD - Genesys CTI User Forum

Author Topic: SendRequest Functioanlity in IRD  (Read 2567 times)

Offline Raja Sekhar

  • Jr. Member
  • **
  • Posts: 72
  • Karma: -1
  • Genesys Routing Applciation developer
SendRequest Functioanlity in IRD
« on: October 20, 2016, 01:35:26 PM »
Advertisement
Hi Team,

I have seen many Examples using [b]SendRequest[/b] functionality .

As per my observation, The predefined request types like RequestAgentNotready, Etc...  totally 12 requests is mentioned in Document.

If i try to send any other function not defined  from URS , Error occurs.

For example,

Sucessful Request :
Sendrequest[RequestMakeCall, 'request string key-value']

Because RequestMakeCall is mentioned in Reference Doc.[b]request sent to sip server[/b],

Failure Request:
SendRequest['RequestMakePredectiveCall','request string key-value']

because RequestMakePredectiveCall is not mentioned in Doc,The request is [b]not sent to sip server[/b], however i am mentioning the type in Single quotes.


So, is it only possible to send those 12 functions from URS? Please help, i am trying to achieve few predictive functionalities from URS.

Thank you in advance.


Offline terry

  • Sr. Member
  • ****
  • Posts: 328
  • Karma: 35
Re: SendRequest Functioanlity in IRD
« Reply #1 on: October 20, 2016, 08:42:49 PM »
Function SendRequest quite simple (blindly packs provided params into TRequest and sent it) - and it can send any trequest if specified it properly. 

Specifically as first parameter function accepts INTEGER value (not string) indicating request itself.
IRD just has set of named integers (or enums) (true is just 1, RequestMakeCall is 14, etc., doesn't matter in which context these "named integers" are used). Their using just results that corresponding numbers will be used instead.

Version of IRD you using looks like doesn't have defined integer with name RequestMakePredectiveCall - attempt to use it results in interpreting it as string and undefined request.

Either upgrade to new IRD where this integer is defined or use direct numeric value instead (15 for RequestMakePredectiveCall), something like SendRequest[15, 'request string key-values']

In IRD also there is sample of macro (MakePredictiveCallAndRunStrategy) where SendRequest is used to create predictive call. 

Offline Raja Sekhar

  • Jr. Member
  • **
  • Posts: 72
  • Karma: -1
  • Genesys Routing Applciation developer
Re: SendRequest Functioanlity in IRD
« Reply #2 on: October 22, 2016, 11:46:22 AM »
Great, Thank You.