Hi Rene,
There are 6 switches in the environment. 4 of which are Genesys SIP Servers. A pair of SIP switches share the same number range and reside in diferent data centres. These are used for queuing and routing only. No agents are connected to these. The other two are used for Remote agent functionality and one exists in each data centre. It is here we are using Genesys SIP server remote agent features. Remote agents are reachable via routing the call to a DN on one of these switches causes an outdial via a group of MGWs to the PSTN. (Configured as Trunks on the SIP Server)
The two queuing SIP servers have trunks to both remote agent SIP servers and 2 CUCM clusters. A Genesys softphone, when invoked in a specific way, will choose to login and go ready on one of the two remote agent extensions (as outlined in Vinhs post) based on 3 DNs residing in a single place. The remote agent DNs are prefixed by route codes ie
205361 - Internal Extension (CUCM)
17919000205361 - Remote Agent Extension 1
17919001205361 - Remote Agent Extension 2
The prefix is used on trunks to the remote agent SIP servers to ensure call delivery while making the DN similar enough to be recognisable.
Two remote agent SIP servers are needed as we need to cater for a data centre failure. The softphone literaly randomly chooses one of the remote agnt SIP servers when the agent invokes it, they are asked for a PSTN number what is dialed when the SIP server DN is targeted.
I have found a way to resolve the problem as follows:
Instead of attempting to look up the agent or place do the following in a route strategy:
On remote agent DNs in the Annex tab, TServer section set: reject-call-notready=true
In a routing strategy use TRoute to target 17919000+DNIS then from the red exit on this TRoute to 17919001+DNIS
If the agent is not logged in and ready the first TRoute will fail, otherwise SIP server will outdial to the MGW and connect the agent on the PSTN. If not it will attempt to TRoute to the second remote agent SIP server. If this also fails clearly the agent is not logged into Genesys and hence should not recieve a call. At this point I can send the call to voice mail etc.