Author |
Message |
|
|
KishorePinnamaneni
Joined: Jan 10, 2014
Messages: 1
Offline
|
Established event is showing empty userdata under
ThirdPartyCallController.UserData userdata = e.getOrigCallInfo.getUserData;
userdata.getUserDataAsString
However grabbing e.getXmlDocument shows userdata is available under "EstablishedEvent". We are setting user data from TSAPI application and trying to get it back from DMCC application.
|
|
|
|
|
MartinFlynn
Joined: Nov 30, 2009
Messages: 1922
Online
|
You are trying to get the UserData from the Original call Information (OCI) data in the Established event. For most calls, this data is not populated - it will only be populated for something like a Transfer or Conference.
I suggest you:
1. Upgrade your SDK to the latest version as there were some problems with UserData and the .Net SDK which have been fixed.
2. Use something like the following:
String a1 = e.getUserData.decodeDataToText();
Martin
|
|
|
|
|
KishorePinnamaneni
Joined: Jan 10, 2014
Messages: 1
Offline
|
I am not seeing userData under
e.getOrigCallInfo.getUserData.decodeDataToText()
However it is available in getXmlDocument.?
I am using this to grab userdata
e.getXmlDocument.GetElementsByTagName("userData").Item(0).InnerText
and doing Hex to text conversion.
Why I am not getting the data under
getOrigCallInfo
<?xml version="1.0" encoding="UTF-8"?>
<EstablishedEvent xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed3">
<monitorCrossRefID>20622</monitorCrossRefID>
<establishedConnection>
<callID>9081</callID>
<deviceID typeOfNumber="other" mediaClass="notKnown" bitRate="constant">4376:SWLINK1::0</deviceID>
</establishedConnection>
<answeringDevice>
<deviceIdentifier typeOfNumber="other" mediaClass="notKnown" bitRate="constant">4376:swlink1::0</deviceIdentifier>
</answeringDevice>
<callingDevice>
<deviceIdentifier typeOfNumber="explicitPublic:unknown" mediaClass="notKnown" bitRate="constant">8186444324:SWLINK1::0</deviceIdentifier>
</callingDevice>
<calledDevice>
<deviceIdentifier typeOfNumber="explicitPrivate:localNumber" mediaClass="notKnown" bitRate="constant">3507:SWLINK1::0</deviceIdentifier>
</calledDevice>
<lastRedirectionDevice>
<numberDialed typeOfNumber="explicitPrivate:localNumber" mediaClass="notKnown" bitRate="constant">4380:SWLINK1::0</numberDialed>
</lastRedirectionDevice>
<localConnectionInfo>connected</localConnectionInfo>
<userData>
<string>414E493D383138363434343332343B444E49533D333530373B5256444E3D323130333B414749443D34333B41473D4146493B4C4F423D333B53544154453D43413B4F463D323530353B</string>
</userData>
<cause>newCall</cause>
<networkCallingDevice>
<notKnown/>
</networkCallingDevice>
<networkCalledDevice>
<notKnown/>
</networkCalledDevice>
<callLinkageData>
<globalCallData>
<globalCallLinkageID>
<globallyUniqueCallLinkageID>00001090811367438279</globallyUniqueCallLinkageID>
</globalCallLinkageID>
</globalCallData>
</callLinkageData>
<deviceHistory>
<DeviceHistoryListItem>
<oldDeviceID>
<numberDialed typeOfNumber="other" mediaClass="notKnown" bitRate="constant">4380:SWLINK1::0</numberDialed>
</oldDeviceID>
<eventCause>normal</eventCause>
<oldConnectionID>
<callID>9081</callID>
<deviceID typeOfNumber="other" mediaClass="notKnown" bitRate="constant">4380:SWLINK1::0</deviceID>
</oldConnectionID>
</DeviceHistoryListItem>
</deviceHistory>
<extensions>
<privateData>
<private>
<EstablishedEventPrivateData xmlns:ns1="http://www.avaya.com/csta" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="EstablishedEventPrivateData">
<trunkGroup>3</trunkGroup>
<trunkMember>69</trunkMember>
<acdGroup typeOfNumber="other" mediaClass="notKnown" bitRate="constant">29050:SWLINK1::0</acdGroup>
<userEnteredCode>
<userEnteredCodeType>callPrompter</userEnteredCodeType>
<userEnteredCodeIndicator>entered</userEnteredCodeIndicator>
<data>1</data>
<collectVDN typeOfNumber="other" mediaClass="notKnown" bitRate="constant">2103:SWLINK1::0</collectVDN>
</userEnteredCode>
<reason>none</reason>
<distributingDevice>
<deviceIdentifier typeOfNumber="explicitPrivate:localNumber" mediaClass="notKnown" bitRate="constant">3507:SWLINK1::0</deviceIdentifier>
</distributingDevice>
<distributingVDN>
<deviceIdentifier typeOfNumber="explicitPrivate:localNumber" mediaClass="notKnown" bitRate="constant">2103:SWLINK1::0</deviceIdentifier>
</distributingVDN>
<originalCallInfo>
<reason>4</reason>
<userEnteredCode>
<userEnteredCodeType>callPrompter</userEnteredCodeType>
<userEnteredCodeIndicator>entered</userEnteredCodeIndicator>
<data>1</data>
<collectVDN typeOfNumber="other" mediaClass="notKnown" bitRate="constant">2101:SWLINK1::0</collectVDN>
</userEnteredCode>
<callLinkageData>
<globalCallData>
<globalCallLinkageID>
<globallyUniqueCallLinkageID>00000000000000000000</globallyUniqueCallLinkageID>
</globalCallLinkageID>
</globalCallData>
</callLinkageData>
<deviceHistory>
<DeviceHistoryListItem>
<oldDeviceID>
<numberDialed typeOfNumber="other" mediaClass="notKnown" bitRate="constant">29050:SWLINK1::0</numberDialed>
</oldDeviceID>
<eventCause>redirected</eventCause>
<oldConnectionID>
<callID>9081</callID>
<deviceID typeOfNumber="other" mediaClass="notKnown" bitRate="constant">29050:SWLINK1::0</deviceID>
</oldConnectionID>
</DeviceHistoryListItem>
</deviceHistory>
</originalCallInfo>
</EstablishedEventPrivateData>
</private>
</privateData>
</extensions>
</EstablishedEvent>
|
|
|
|
|
MartinFlynn
Joined: Nov 30, 2009
Messages: 1922
Online
|
There is no UserData in the OriginalCallInfo part of that event. There is UserData is in the event itself. As I said, you should use e.getUserData.decodeDataToText() to get this Userdata.
Martin
|
|
|
|
|
KishorePinnamaneni
Joined: Jan 10, 2014
Messages: 1
Offline
|
I am using 6.2 dll. I am not seeing e.getUserData in the following event. Am I missing something here.
getThirdPartyCallController_OnEstablishedEvent(object sender, ThirdPartyCallController.EstablishedEventArgs e)
|
|
|
|
|
MartinFlynn
Joined: Nov 30, 2009
Messages: 1922
Online
|
What do you see when you use e.getUserData.decodeDataToString(); ?
Martin
|
|
|
|
|
MartinFlynn
Joined: Nov 30, 2009
Messages: 1922
Online
|
I've had a closer look at this. ThirdPartyCallController.EstablishedEventArgs does not have a getUserData method. Therefore, you will need to use getXmlDocument to extract the UUI.
Martin
|
|
|
|
|
KishorePinnamaneni
Joined: Jan 10, 2014
Messages: 1
Offline
|
Thanks. So whatever I did is right.
|
|
|