I am working on a call center product which is based on RingCentral queues. I’ve created a queue and assigned it a direct phone number. Now, I am using embeddable widget and I am able to receive and accept calls, so this part is working fine.
However, I need to do some calls to my server API based on caller and recipient (direct queue) phone numbers and this is where I have issues. I am using event listener which is looking for a message with following type:
rc-active-call-notify Most of the time it works fine, but sometimes this event is just not being fired, even though I do receive a call and can accept it without any issue.Also, if I just wait on the line, I can actually see that call is being “reset” (I see in browser console Event: Rejected and then Event: Terminated entries, the widget blinks as if it was re-rendered, but the call will still keep on ringing) and after that I do see rc-active-call-notify event. Problem is I have to wait like 10-15 sec which is not realistic in real production use-case.The only event which is stable and I can see it every time is rc-call-ring-notify, but I cant bind to that one because it contains wrong recipient phone number. I need to get queue direct number, while rc-call-ring-notify payload has this instead: company_number*user_extension, e.g. +492280000000*301. Payload only contains the queue name, but I can not bind to it, unfortunately.I also tried to bind to rc-telephony-session-notify event, but faced the same issue.