PureEngage On-Premises

 View Only

Sign Up

  • 1.  EventUserEvent is not received when sending RequestDistributeUserEvent

    Posted 09-25-2015 07:39
    After the EventReleased is received, I want to attach some data for future reporting purpose. I sent RequestDistributeUserEvent to my DN itself with some KeyValuePair:

    KeyValueCollection info = new KeyValueCollection();
    info.Add("CallDroppedBy", "Agent");
    info.Add("CallTimeExceeded", "No");

    CommonProperties commonProp = CommonProperties.Create();
    commonProp.ConnID = connID1;
    commonProp.ThisDN = thisDN;
    commonProp.UserData = info;

    RequestDistributeUserEvent reqDistributeUserEvent = RequestDistributeUserEvent.Create(thisDN, commonProp);
    IMessage reqDUEResponse = tServerProtocol.Request(reqDistributeUserEvent);
    RequestResponse_Router(reqDUEResponse);

    When I debug my application (by the way, I'm using C#.NET to develop an agent desktop), I found that the Request is sent, but I received EventACK with no userdata. How can I receive EventUserEvent with the userdata that I attached so that it can be used for reporting purpose later?

    Also, I found that no RequestDistributeUserEvent and EventUserEvent (or even EventACK) can be found in SIP Server log. Is is because when a DN send RequestDistributeUserEvent to itself, no EventUserEvent received but EventACK is received?  


  • 2.  RE: EventUserEvent is not received when sending RequestDistributeUserEvent

    Posted 09-25-2015 11:23
    It is not possible attach data to the interaction, which does not exist at the moment. For attach data during the interaction use the RequestUpdateUserData.


  • 3.  RE: EventUserEvent is not received when sending RequestDistributeUserEvent

    Posted 09-26-2015 03:53
    Let say I received an Event:

    'EventAttachedDataChanged' ('85')
    message attributes:
    AttributeThisDN [str] = "13005"
    AttributeDNIS [str] = "9999"
    AttributePropagatedCallType [int] = 1 [Internal]
    AttributeConnID [long] = 006A026F401154D0
    AttributeUserData [bstr] = KVList:
    'CallUUID' [str] = "CVHLQ55KB50HH77LLE2253SFEC00017J"   
    'RPVQID' [str] = "MJLPGIELHH1SHE3RR75D1B94UK00005C"
    AttributeCallID [int] = 16784583
    AttributeEventSequenceNumber [long] = 223430
    AttributeThisDNRole [int] = 1 [RoleOrigination]
    Time = ComplexClass(TimeStamp):
    AttributeTimeinuSecs [int] = 541000
    AttributeTimeinSecs [int] = 1443239011
    AttributeCallType [int] = 1 [Internal]
    AttributeThirdPartyDN [str] = "9999"
    AttributeCallUuid [str] = "CVHLQ55KB50HH77LLE2253SFEC00017J"

    How can I update the value of RPVQID? I want it to be updated when I receive the EventReleased. As what I've tried as shown below, it doesn't work.

    KeyValueCollection updateInfo = new KeyValueCollection();
    updateInfo.Add("RPVQID", "Agent");

    RequestReleaseCall reqReleaseCall = RequestReleaseCall.Create(thisDN, connID1);
    IMessage reqRCResponse = tServerProtocol.Request(reqReleaseCall);

    RequestUpdateUserData abc = RequestUpdateUserData.Create(thisDN, connID1, updateInfo );
    IMessage def = tServerProtocol.Request(abc);

     


  • 4.  RE: EventUserEvent is not received when sending RequestDistributeUserEvent

    Posted 09-29-2015 08:05
    I was probably wrong, the UserEvent should be used for achieve your needs.


  • 5.  RE: EventUserEvent is not received when sending RequestDistributeUserEvent

    Posted 09-29-2015 21:35
    Hi, Jakub is right.
    at the beginning please dont use Request(), you should use Send() and your code must contain handler for receiving IMessages.
    so to your question. its not possible to attache some data to released voice interaction. if you synchronously send request to update attached data you receive only ack and asynchronously you receive eventattacheddatachanged and thats it. you have to handle Received event and you will see in you example that you will receive EventError

    R