" /> How to check not connected server status from IRD - Genesys CTI User Forum

Author Topic: How to check not connected server status from IRD  (Read 3196 times)

Offline vma

  • Sr. Member
  • ****
  • Posts: 255
  • Karma: 0
How to check not connected server status from IRD
« on: March 08, 2012, 05:26:30 PM »
Advertisement
Hi guys,
I have two Data Centers and the SBC is sending calls to both in round robin. It is configured that if one of them responds with "503 Service Unavailable" it will redirect the call to the other DC.
First thing I do in my strategy is to check the health of the DC and if not I respond with 503. For example if I have a StatServer running.
I realized that even if I use ServerStatus function, the backup StatServer will always respond with -1 as it's not in the connections tab of the router. Is there any other way to do this? Other than just asking a statistic (like StatAgentsTotal) and see if it responds?
Can I see somehow if the any of the RM_P,RM_B is up? Also MCP1 or MCP2?

And question no.2
Can I reject the call if router is down?
Regards,
Mihai
« Last Edit: March 08, 2012, 05:51:22 PM by vma »

Offline kubikle

  • Full Member
  • ***
  • Posts: 140
  • Karma: 7
Re: How to check not connected server status from IRD
« Reply #1 on: March 08, 2012, 06:16:43 PM »
Just in case - names of servers used in strategies functions (including ServerStatus) supposed to be names of "primary" ones (those that listed in connection list of URS application). URS under hood will use primary or backup one depending which one it manage to connect to. If ServerStatus[primary server] returns 1 that means URS is connected either with primary or with backup server (but not possible to find out which one). And if it returns -1 then there is no connection not with primary not with backup server.

Offline vma

  • Sr. Member
  • ****
  • Posts: 255
  • Karma: 0
Re: How to check not connected server status from IRD
« Reply #2 on: March 08, 2012, 06:51:48 PM »
already tried that and it's not working.
I asked about StatServer_P in ServerStatus function and returned -1 when Primary was down and back-up was up.

Offline kubikle

  • Full Member
  • ***
  • Posts: 140
  • Karma: 7
Re: How to check not connected server status from IRD
« Reply #3 on: March 08, 2012, 07:53:54 PM »
Strange, it is worked in my case.
Sorry, but just in case - did you check in URS log that it successfully connects to backup before ServerStatus was called
(meaning that recoonecting take some time - up to 2*Reconnect Timeout after server was started and ServerStatus function returns not status of server itself but status of connection between router and the server)?