Author Topic: Check if audio resource exists from IRD  (Read 203 times)

Offline vma

  • Full Member
  • ***
  • Posts: 244
  • Karma: 0
Check if audio resource exists from IRD
« on: February 26, 2020, 05:21:47 PM »
Hi guys,
 In GAX I have 4 personalities. For some services I have to provide the audio in 3 languages only so for one personality I don't have a wav file uploaded.
 Is there a way in IRD to check if the audio resource is configured on a specific prompt before loop playing every one of them?

 What I do is to get the Audio ResourceID from GAX and them build the prompt ID as TenantID+ResourceID+PersonalityID and loop through all four and play them. But for some prompt I have to do it for 3 personalities only. How do I skip the one that is not configured?

Regards,
Mihai

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1803
  • Karma: 59
Re: Check if audio resource exists from IRD
« Reply #1 on: February 26, 2020, 06:34:59 PM »
Hi Mihai,

There exists no function to check existence of audio resource. It might be possible using GAX Private API for this purpose but this API is not officially supported and may change without any prior notice.

Media Server should ignore missing treatment and continue with next one, so you should be fine using all four treatments. Possible issue - Media Server may raise and alarm about missing audio file, so you would need to handle this in your monitoring platform.

R.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7131
  • Karma: 56330
Re: Check if audio resource exists from IRD
« Reply #2 on: February 26, 2020, 08:09:01 PM »
You should use ORS and Composer for that. A native HTTP environment. If you get an error like 404 you can do something.
Via IRD you would have to develop some sort of WS to do the job


Enviado de meu SM-N9600 usando o Tapatalk


Offline vma

  • Full Member
  • ***
  • Posts: 244
  • Karma: 0
Re: Check if audio resource exists from IRD
« Reply #3 on: February 26, 2020, 08:32:17 PM »
Due to project restrictions I have to do this in IRD. There is no ORS installed.

The problem is that I can see a very short "On Hold" on the customer Skype phone when playing a non existing prompt. If calling from mobile I can here a very short 'tick'. Is there an options maybe on MCP to place call onhold if prompt is missing?

In SIP logs I can see 603 comming from MCP with error "No matching resources for this service type [Service Type: treatment]" and after that SIP sends a re-invite to the customer with "X-Genesys-CallInfo: mohenabled".

If I can disable this hold sent to customer it would be no issue to mask the 603 error in MessageServer for monitoring.

Mihai

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7131
  • Karma: 56330
Re: Check if audio resource exists from IRD
« Reply #4 on: February 26, 2020, 08:34:58 PM »
No... No such option into MCP... Mcp is just a browser... Not a logic engine.
You need to negotiate with your customer, if he wants that, he needs to start going to the HTTP world


Enviado de meu SM-N9600 usando o Tapatalk