" /> IRD - check if vxml exists - Genesys CTI User Forum

Author Topic: IRD - check if vxml exists  (Read 2464 times)

This topic contains a post which is marked as Best Answer. Press here if you would like to see it.

Offline vma

  • Sr. Member
  • ****
  • Posts: 255
  • Karma: 0
IRD - check if vxml exists
« on: May 16, 2019, 12:56:49 PM »
Advertisement
Hi,

Anyone knows if there is anyway to check if a vxml is available on the server before calling the application? I need to play a prompt before calling the app and I don't want to play it if the vxml is not there.

Regards,
vma

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: IRD - check if vxml exists
« Reply #1 on: May 16, 2019, 01:38:27 PM »
You can use the HTTP block and try to GET the content from the web server, if you recieve any valid input you will be sure that the document is available. In other cases, you should suppose web server is out of service. BTW: This can be achieved by using "alternate/backup" webserver.

Offline vma

  • Sr. Member
  • ****
  • Posts: 255
  • Karma: 0
Re: IRD - check if vxml exists
« Reply #2 on: May 16, 2019, 02:05:55 PM »
Hi Kubig,
I guess you mean Web Services block with HTTP option, right? I will give it a try and see how it works.
Actually the vxml is provided by Spitch and the customer wants Speech Recognition to be enabled only on those specific services where the vxml is available rather than being able to enable it from config.

Thanks!
vma

Offline vma

  • Sr. Member
  • ****
  • Posts: 255
  • Karma: 0
Re: IRD - check if vxml exists
« Reply #3 on: May 17, 2019, 12:42:55 PM »
Hello,
I have tried the Web Service block
Request: HTTP
Web Service URL: http://myserver/myfile.vxml
Method name: GET

The URS HTTP logs says the request is successful:
[code]
05/17/19@14:18:51.506: [HTTP Client 0000000000c96780] Received 2715 bytes from server on socket 508:
HTTP/1.1 200 OK
Content-Type: vxml/vxml
Last-Modified: Wed, 22 Aug 2018 09:09:35 GMT
Accept-Ranges: bytes
ETag: "87d6b8d8f739d41:0"
Server: Microsoft-IIS/8.5
X-Powered-By: ASP.NET
Date: Fri, 17 May 2019 12:18:51 GMT
Content-Length: 2467
[/code]

Still in the URS log I get an error and the returned vale is empty:
[code]
2019-05-17T14:18:51.498_I_I_007502dd3051a048 [07:50] HERE IS XDATA
2019-05-17T14:18:51.498_H_I_ [08:10] GET request 92 sent to HTTP Bridge:
URL:    http://myserver/myfile.vxml
Headers:
Content:
Authent: 1 

2019-05-17T14:18:51.498_I_I_007502dd3051a048 [09:04] <<<<<<<<<<<<suspend interp(WAIT_HTTP), func:GetHttpRequestInfoTLS timers:00010
2019-05-17T14:18:51.506_H_E_007502dd3051a048 [08:08] Error in message from HTTP Bridge, refid=92: 0022 No data
2019-05-17T14:18:51.506  Interaction  UATS0010A  URS_1  GCTI-15-21001  interaction 007502dd3051a048 data lookup fails
2019-05-17T14:18:51.506_I_I_007502dd3051a048 [09:05] >>>>>>>>>>>>resume interp(0), func:GetHttpRequestInfoTLS
    _I_E_007502dd3051a048 [09:05] error in strategy: 0022 No data (GetHttpRequestInfoTLS)
    _I_I_007502dd3051a048 [09:04] ASSIGN: VarStrVxml(LOCAL) <- STRING: ""
[/code]
Anyone knows what am I doing wrong?
Thanks!

Offline terry

  • Sr. Member
  • ****
  • Posts: 328
  • Karma: 35
Re: IRD - check if vxml exists
« Reply #4 on: May 18, 2019, 12:48:22 AM »
Looks like nothing wrong by itself.
Most likely it is simply Content-Type vxml is not allowed.
Supported content types I think are text/... and application/....

Marked as best answer by vma on May 28, 2019, 08:43:41 PM

Offline terry

  • Sr. Member
  • ****
  • Posts: 328
  • Karma: 35
Re: IRD - check if vxml exists
« Reply #5 on: May 18, 2019, 05:30:05 PM »
Also you can rely on returned error code.
If web service object return no error or error is 0022 No data (checked with Error segmentation switch on error exit of web service then some web service actually returned something. Real error is when error code is 0013.