Author Topic: Sending Tlib Event from Genesys Composer  (Read 3872 times)

Offline anurag.gusain

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Sending Tlib Event from Genesys Composer
« on: December 10, 2018, 03:30:12 PM »
Hi All,

I want to send Tlib even from ORS to SIP notifying a call for an Agent which should further reflect as missed call under Agent WDE.
Also i do not want my call to move out from call flow, rather it send "Tlib" event and move to next block which is force route to Voicemail.

I am using Genesys Composer.

Can someone help me out which block and event should i use for this functionality.

Regards,
Anurag Gusain

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: Sending Tlib Event from Genesys Composer
« Reply #1 on: December 10, 2018, 04:30:34 PM »
Can't do that basically because if call was in queue when abandoned there was no agent selected yet for that call. Even if you see only one agent at the group.
So, to whom would you send that event to?
Tlib can be achieved via URS HTTP interface, but not what you want as the flow makes it impossible.


Enviado de meu E6633 usando o Tapatalk


Offline anurag.gusain

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: Sending Tlib Event from Genesys Composer
« Reply #2 on: December 11, 2018, 11:22:50 AM »
Can't we use SCXML State block ?

Was reading somewhere that we can use this block to send Event.

Can anyone explain me if having detail around this block

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: Sending Tlib Event from Genesys Composer
« Reply #3 on: December 11, 2018, 12:11:32 PM »
Have you read that the difficulty is not the code but your logic?

Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: Sending Tlib Event from Genesys Composer
« Reply #4 on: December 11, 2018, 12:39:29 PM »
I don't know through Composer, but here, through IRD, what we do to achieve a similar functionality is to load an strategy on the Extension DNs waiting for the EventEstablished. If it times out, we create a new custom interaction (missed call) and place it into an Interaction Queue that has an associated strategy which puts into the agent's workbin so he is aware that he missed a call.

[quote]Also i do not want my call to move out from call flow, rather it send "Tlib" event and move to next block which is force route to Voicemail.[/quote]
Again, speaking about IRD (maybe you can find something on how to migrate to Composer on this link: https://docs.genesys.com/Documentation/Composer/8.1.2/Migration/MiscFunc ), another way to do this is to use the function OnRouteError[232, 'strategy_error'] (the error 232 is "no answer at DN"). This makes the strategy to resume through the Red Port of the Target Select object on IRD.

I know it is not Composer, but maybe this helps you to at least find out a way to do it on composer.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: Sending Tlib Event from Genesys Composer
« Reply #5 on: December 11, 2018, 12:49:20 PM »
But this doesn't satisfy his idea to send then to the agent voice mail.
The agent yet didn't miss a call because as queue no agent wasn't selected to target, this is a step before that to happen.

Enviado de meu E6633 usando o Tapatalk


Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: Sending Tlib Event from Genesys Composer
« Reply #6 on: December 11, 2018, 12:56:17 PM »
[quote author=cavagnaro link=topic=11212.msg51045#msg51045 date=1544532560]
But this doesn't satisfy his idea to send then to the agent voice mail.
The agent yet didn't miss a call because as queue no agent wasn't selected to target, this is a step before that to happen.

Enviado de meu E6633 usando o Tapatalk


[/quote]
Not really, if it is not an auto-answer situation, the user could have left the computer without setting Not Ready and missed a call, or something like this. Here, we do have some customers in that kind of scenario.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: Sending Tlib Event from Genesys Composer
« Reply #7 on: December 11, 2018, 01:01:54 PM »
He says he doesn't want to move call out of callflow, so call is at RP yet.
Also says that he wants to send the event as abandoned to a WDE, not that the call abandoned there.
Sounds to me we are talking about different scenarios here.
And of course, abandon at WDE can be controlled like you say or via TServer options too.


Enviado de meu E6633 usando o Tapatalk


Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: Sending Tlib Event from Genesys Composer
« Reply #8 on: December 11, 2018, 01:06:52 PM »
True. Could be, and could be not. If you can detail a little better the scenario that you are thinking, anurag.gusain, could help on finding what can be done for that.

One thing is for sure: if you need your strategy to keep running, you should set the option "divert-on-ringing" to false on that routing point or on SIP Server.

Offline anurag.gusain

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: Sending Tlib Event from Genesys Composer
« Reply #9 on: December 11, 2018, 02:06:30 PM »
Let me brief in detail what the requirement is:

Problem Desc (for DID Agents): If Agent is not at desk and customer dials in, Composer routs call to VM (Voicemail). If customer drops VM, it is easy for agent to reach out to customer. But in some scenarios Customer is disconnecting the call as soon as they land to VM.

Requirement: To capture calls route to VM as a miss call under WDE "Teamcommunication"

Call 1: DID call routed to the Agent and Agent answers it.

Call 2: DID call which routed to VM as Agent is already on another call. (This call needs to be captured before sending it to VM)
Which block and configuration should i use.


Below is high level call flow i an using:

Check Agent Status.
If busy or logged off > Do a Force Route to VM.
End the call.






Offline anurag.gusain

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: Sending Tlib Event from Genesys Composer
« Reply #10 on: December 11, 2018, 04:02:26 PM »
In short i need to broadcase information to WDE that there was a call for which so that it reflects in its Miss call history

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: Sending Tlib Event from Genesys Composer
« Reply #11 on: December 11, 2018, 05:19:42 PM »
U can send a UserEvent and then develop something at WDE to capture it or send it as a Broadcast or private message maybe.
But no way to force an Event Abandon at extension

Enviado de meu E6633 usando o Tapatalk


Offline anurag.gusain

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: Sending Tlib Event from Genesys Composer
« Reply #12 on: December 13, 2018, 01:16:32 PM »
i used scxml State block and wrote script but its not working.. Below is the script which i used..
Can you validate and update is something i am missing. Using the below script again the call is moving out of flow

<script>
Var extension = "Extension number";
var switchname = "switchname";
var myuserdata = {"Info": "some message"};
var myreason = {"Reason": "Miss call"};
var myevent = { "AttributeThisDN":extension, "AttributeConnID": connectionID};
var dest = {"switch":switchname, "dn":s_extension};
</script>
<ixn:userevent requestid="v_reqid" resource= "dest" event = "myevent" udata= "myuserdata" reason="myreason"/>