Author Message
William_Garcia
Joined: Mar 14, 2015
Messages: 6
Offline
Hello everyone,

We developed an application that integrates with TSAPINet library. During the tests we faced a weird situation, a non managed error was throwed by TSAPINet, terminating our application.
Debugging inside the TSAPINet code we discovered the attPrivateData method is the cause. This method is called from another library (ATTPRV32.DLL).

After several tests we remarked a pattern. Before call the referred method, the following buffer is arrived and caused the error:

?0??821195900450
?
00

?
0+
&#x1;&#x4;&#x4;&>09433562397|87257726|SpVoz|||4322792<
&#x1;0??
&#x1;&#x4;0&#x14;&#x16;&#xc;091981164752
&#x1;&#x14;
&#x1;0
&#x16;&#x5;20155
&#x1;
&#x1;&#x16;&#x16;0O
&#x1;&#x2;
&#x1;&#x2;&#x1;&#xb;&#x2;&#x1;&#x14;&#x2;&#x1;
&#x16;&#xf;Transferencia_V0-&#x2;&#x1;T&#x2;&#x1;r&#x2;&#x1;a&#x2;&#x1;n&#x2;&#x1;s&#x2;&#x1;f&#x2;&#x1;e&#x2;&#x1;r&#x2;&#x1;e&#x2;&#x1;n&#x2;&#x1;c&#x2;&#x1;i&#x2;&#x1;a&#x2;&#x1;_&#x2;&#x1;V0

&#x1;?
&#x1;&#x16;&#x16;03
&#x1;&#x4;&#x4;.>09433562397|87257726|SpVoz||||||||||PA|||||S<&#x16;&#x14;000000000000000000000&#x6;&#x1;&#x1;&#x2;&#x1;&#x1;&#x1;00
&#x16;&#x5;20155
&#x1;
&#x1;&#x16;&#x14;000190204114259107180&#x6;&#x1;&#x1;&#x2;&#x1;&#x1;&#x1;0&#x1c;0&#x1a;&#x16;&#x5;32977
&#x1; 0&#xe;&#x2;&#x2; =&#x16;&#x5;32977
&#x1;0
&#x16;&#x5;20155
&#x1;7

To see with all characters access the attachment [buffer_1.txt]


The tests that occurred successfully we remarked a different pattern, the following buffer:

&#x2;?0?&#x1; &#x16;&#x3;821&#x16;&#x3;135&#x16;&#x5;901060&#x13;
&#x1;?
&#x1;&#x2;&#x1;&#x2;&#x1;&#x2;&#x1;&#x16;00

&#x1;?
&#x1;&#x16;&#x16;03
&#x1;&#x4;&#x4;.>07134052831|82054805|TFVel||||||||||BA|||||S<
&#x1;0f
&#x1;0&#x8;&#x16;
&#x1;&#x1e;
&#x1;&#x2;0&#x8;&#x16;
&#x1;&#x1e;
&#x1;&#x2;&#x16;&#x16;0&#x13;
&#x1;?
&#x1;&#x2;&#x1;&#x2;&#x1;&#x2;&#x1;&#x16;00

&#x1;?
&#x1;&#x16;&#x16;0&#x5;
&#x1;?&#x4;&#x16;&#x14;000000000000000000000&#x6;&#x1;&#x1;&#x2;&#x1;&#x1;&#x1;00&#x8;&#x16;
&#x1;&#x1e;
&#x1;&#x1;&#x16;&#x14;000190500014259115370&#x6;&#x1;&#x1;&#x2;&#x1;&#x1;&#x1;00&#x8;&#x16;
&#x1;&#x1e;
&#x1;&#x1;0

To see with all characters access the attachment [buffer_2.txt]


The referred DLL properties:

image


Someone already faced this same situation?
Filename buffer_2.txt [Disk] Download
Filename buffer_1.txt [Disk] Download
MartinFlynn
Joined: Nov 30, 2009
Messages: 1922
Offline
Hi William,

Can you explain what you mean by "attPrivateData method is the cause". Do you mean that TSAPINet cannot handle something that the TSAPI client is giving it, or do you mean that the TSAPI client is throwing some sort of exception?

The data that you attached is encoded so I cannot see what is being sent. If you start TSAPI Spy (a test application that comes with the TSAPI Client), it will show the decoded messages. Please capture the messages that are causing the problem and I will have a look.

Martin

William_Garcia
Joined: Mar 14, 2015
Messages: 6
Offline
Hey Martin,

When this issue was reported we tried debug it. So when debugging, TSAPINet couldnt handle and throwed the System.ExecutionEngineException.
This exception ocurred during calling to "attPrivateData".

Looking the Windows event viewer are logged the follow:
Source: .NET Runtime 2.0 Error Reporting
Description: Faulting application localphone.exe, version 1.1.5.4, stamp 54e7743e, faulting module mscorwks.dll, version 2.0.50727.3655, stamp 5266e523, debug? 0, fault address 0x00026f19.

I've attached the log with 3 calls, the problem occurs in 3rd.
Filename Log_perficall.trc [Disk] Download
MartinFlynn
Joined: Nov 30, 2009
Messages: 1922
Offline
If the problem is that TSAPINet cannot handle data returned by the TSAPI Client then I cannot help you. TSAPINet is not an Avaya product so you will need to get support from it's maintainers.

I notice that the third Delivered event has a much larger private payload than the previous calls. Unfortunately, as it was not decoded, I do not know what it contains. It is possible that the TSAPINet wrapper is not handling the larger buffer properly.

Martin
William_Garcia
Joined: Mar 14, 2015
Messages: 6
Offline
Martin, it occurs in TSAPINet project but when calling a method (attPrivateData) from ATTPRV32.dll
MartinFlynn
Joined: Nov 30, 2009
Messages: 1922
Offline
You seem to be using TSAPI Client version 5.2 which is over 5 years old. Your first step should be to upgrade to the latest version of TSAPI Client. If you are still experiencing a problem, you should open a Tech Support ticket.

Martin
Go to:   
Mobile view