Author Message
Tanaji_Bhale
Joined: Sep 26, 2016
Messages: 64
Offline
Hi,

I can make call from one-x to avaya communicator & vice-versa but when I try to make call from confxfer sample to one-x/avaya communicator, unfortunately I always get CSTA error:21.

So can someone please guide me on this? I am new to JTAPI/TSAPI and unable to find information on internet.

Below is the log details


2017-06-16 20:16:42,443 [main] TRACE LucentV7ProviderImpl - --> createCall[]: com.avaya.jtapi.tsapi.impl.LucentV7ProviderImpl@15be6bb
2017-06-16 20:16:42,443 [main] TRACE LucentV7ProviderImpl - --> getTSProviderImpl[]: com.avaya.jtapi.tsapi.impl.LucentV7ProviderImpl@15be6bb
2017-06-16 20:16:42,443 [main] TRACE LucentV7ProviderImpl - <-- getTSProviderImpl[]: com.avaya.jtapi.tsapi.impl.LucentV7ProviderImpl@15be6bb
2017-06-16 20:16:42,443 [main] INFO TSCall - Constructing call TSCall[0(nonCallID=4)]@13a3d88 with ID 0 for TSProvider[#1]@15be6bb
2017-06-16 20:16:42,444 [main] TRACE LucentV7CallImpl - com.avaya.jtapi.tsapi.impl.LucentV7CallImpl@15be6bb constructed.
2017-06-16 20:16:42,444 [main] TRACE LucentV7ProviderImpl - <-- createCall[]: com.avaya.jtapi.tsapi.impl.LucentV7ProviderImpl@15be6bb
2017-06-16 20:16:42,444 [main] TRACE LucentV7CallImpl - --> connect[Terminal origterm, Address origaddr, String dialedDigits]: com.avaya.jtapi.tsapi.impl.LucentV7CallImpl@15be6bb
2017-06-16 20:16:42,444 [main] TRACE LucentAddressImpl - --> getTSDevice[]: com.avaya.jtapi.tsapi.impl.LucentAddressImpl@1921e20
2017-06-16 20:16:42,444 [main] TRACE LucentAddressImpl - <-- getTSDevice[]: com.avaya.jtapi.tsapi.impl.LucentAddressImpl@1921e20
2017-06-16 20:16:42,444 [main] TRACE LucentV5TerminalExImpl - --> getTSDevice[]: com.avaya.jtapi.tsapi.impl.LucentV5TerminalExImpl@1921e20
2017-06-16 20:16:42,444 [main] TRACE LucentV5TerminalExImpl - <-- getTSDevice[]: com.avaya.jtapi.tsapi.impl.LucentV5TerminalExImpl@1921e20
2017-06-16 20:16:42,444 [main] INFO TsapiSession - Sent InvokeID 27 for TSProvider[#1]@15be6bb
2017-06-16 20:16:42,444 [main] DEBUG TsapiSession - CSTAQueryDeviceInfo ::=
2017-06-16 20:16:42,444 [main] DEBUG TsapiSession - {
2017-06-16 20:16:42,444 [main] DEBUG TsapiSession - device "3707"
2017-06-16 20:16:42,444 [main] DEBUG TsapiSession - }
2017-06-16 20:16:42,614 [GetEventThread] INFO TsapiSession - Received invokeID 27 for TSProvider[#1]@15be6bb
2017-06-16 20:16:42,614 [GetEventThread] DEBUG TsapiSession - CSTAQueryDeviceInfoConfEvent ::=
2017-06-16 20:16:42,614 [GetEventThread] DEBUG TsapiSession - {
2017-06-16 20:16:42,614 [GetEventThread] DEBUG TsapiSession - device "3707"
2017-06-16 20:16:42,614 [GetEventThread] DEBUG TsapiSession - deviceType 0 < DT_STATION >
2017-06-16 20:16:42,614 [GetEventThread] DEBUG TsapiSession - deviceClass 0x80000000 < DC_VOICE >
2017-06-16 20:16:42,614 [GetEventThread] DEBUG TsapiSession - }
2017-06-16 20:16:42,614 [GetEventThread] DEBUG TsapiSession - TsapiPrivate ::=
2017-06-16 20:16:42,615 [GetEventThread] DEBUG TsapiSession - {
2017-06-16 20:16:42,615 [GetEventThread] DEBUG TsapiSession - vendor "ECS"
2017-06-16 20:16:42,615 [GetEventThread] DEBUG TsapiSession - data 2 0 62 0 30 8 a 1 6 a 1 a 16 0
2017-06-16 20:16:42,615 [GetEventThread] DEBUG TsapiSession - tsType 38
2017-06-16 20:16:42,615 [GetEventThread] DEBUG TsapiSession - }
2017-06-16 20:16:42,615 [GetEventThread] DEBUG LucentPrivateData - LucentV5QueryDeviceInfoConfEvent ::=
2017-06-16 20:16:42,615 [GetEventThread] DEBUG LucentPrivateData - {
2017-06-16 20:16:42,615 [GetEventThread] DEBUG LucentPrivateData - extensionClass 6 < EC_PROPRIETARY >
2017-06-16 20:16:42,615 [GetEventThread] DEBUG LucentPrivateData - associatedClass 10 < EC_OTHER >
2017-06-16 20:16:42,615 [GetEventThread] DEBUG LucentPrivateData - associatedDevice <null>
2017-06-16 20:16:42,615 [GetEventThread] DEBUG LucentPrivateData - }
2017-06-16 20:16:42,615 [GetEventThread] INFO TSInvokeID - Handling INVOKE ID 27 for TSProvider[#1]@15be6bb
2017-06-16 20:16:42,615 [GetEventThread] INFO TSInvokeID - DONE handling INVOKE ID 27 for TSProvider[#1]@15be6bb
2017-06-16 20:16:42,615 [main] INFO TsapiSession - Sent InvokeID 28 for TSProvider[#1]@15be6bb
2017-06-16 20:16:42,615 [main] DEBUG TsapiSession - CSTAMakeCall ::=
2017-06-16 20:16:42,615 [main] DEBUG TsapiSession - {
2017-06-16 20:16:42,615 [main] DEBUG TsapiSession - callingDevice "3706"
2017-06-16 20:16:42,615 [main] DEBUG TsapiSession - calledDevice "3707"
2017-06-16 20:16:42,615 [main] DEBUG TsapiSession - }
2017-06-16 20:16:42,823 [GetEventThread] INFO TsapiSession - Received invokeID 28 for TSProvider[#1]@15be6bb
2017-06-16 20:16:42,823 [GetEventThread] DEBUG TsapiSession - CSTAUniversalFailureConfEvent ::=
2017-06-16 20:16:42,823 [GetEventThread] DEBUG TsapiSession - {
2017-06-16 20:16:42,823 [GetEventThread] DEBUG TsapiSession - error 21 < GENERIC_STATE_INCOMPATIBILITY >
2017-06-16 20:16:42,823 [GetEventThread] DEBUG TsapiSession - }
2017-06-16 20:16:42,824 [GetEventThread] INFO TsapiEventQueue - Putting event CSTAEvent[CSTAUniversalFailureConfEvent]@126aa72. EVENT Q SIZE = 1 MAX Q SIZE = 1 for TSProvider[#1]@15be6bb
2017-06-16 20:16:42,824 [DistributeCSTAEvent] INFO TsapiEventQueue - Getting event CSTAEvent[CSTAUniversalFailureConfEvent]@126aa72 for TSProvider[#1]@15be6bb
2017-06-16 20:16:42,824 [DistributeCSTAEvent] INFO TSInvokeID - Handling INVOKE ID 28 for TSProvider[#1]@15be6bb
2017-06-16 20:16:42,824 [DistributeCSTAEvent] INFO TSInvokeID - DONE handling INVOKE ID 28 for TSProvider[#1]@15be6bb


In app screen I can see below log



16/6/17 7:40:00 PM:T=1:com.avaya.aes.jtapi.confxfer.Login.open(Login.java:70):services[0]='AVAYA#AESTOCM#CSTA#AVAYAAES-01'
16/6/17 7:40:00 PM:T=1:com.avaya.aes.jtapi.confxfer.Login.open(Login.java:70):services[1]='AVAYA#AESTOCM#CSTA-S#AVAYAAES-01'
16/6/17 7:42:46 PM:T=1:com.avaya.aes.jtapi.confxfer.ConferenceTransfer$19.run(ConferenceTransfer.java:2568):providerChangedEvent B
16/6/17 7:42:46 PM:T=1:com.avaya.aes.jtapi.confxfer.ConferenceTransfer.providerChangedEventSWT(ConferenceTransfer.java:2547):event[0]=com.avaya.jtapi.tsapi.impl.events.provider.TsapiProviderOutOfServiceEvent MetaEvent=true
16/6/17 7:42:46 PM:T=1:com.avaya.aes.jtapi.confxfer.ConferenceTransfer.providerChangedEventSWT(ConferenceTransfer.java:2547):event[1]=com.avaya.jtapi.tsapi.impl.events.provider.TsapiPrivateProviderEvent MetaEvent=false
16/6/17 7:42:46 PM:T=1:com.avaya.aes.jtapi.confxfer.ConferenceTransfer$19.run(ConferenceTransfer.java:2568):providerChangedEvent B
16/6/17 7:42:46 PM:T=1:com.avaya.aes.jtapi.confxfer.ConferenceTransfer.providerChangedEventSWT(ConferenceTransfer.java:2539):event[0]=com.avaya.jtapi.tsapi.impl.events.provider.TsapiProviderInServiceEvent MetaEvent=true ProvInServiceEv
16/6/17 7:42:46 PM:T=1:com.avaya.aes.jtapi.confxfer.ConferenceTransfer.handleProviderInService(ConferenceTransfer.java:1819):Service provider AVAYA#AESTOCM#CSTA#AVAYAAES-01 is in service.
16/6/17 7:43:20 PM:T=1:com.avaya.aes.jtapi.confxfer.ConferenceTransfer.providerChangedEventSWT(ConferenceTransfer.java:2547):event[1]=com.avaya.jtapi.tsapi.impl.events.provider.TsapiPrivateProviderEvent MetaEvent=false
16/6/17 7:43:37 PM:T=1:com.avaya.aes.jtapi.confxfer.ConferenceTransfer.makeCall(ConferenceTransfer.java:1550):exception caught com.avaya.jtapi.tsapi.TsapiInvalidStateException: CSTA Error: 21
16/6/17 7:51:54 PM:T=1:com.avaya.aes.jtapi.confxfer.ConferenceTransfer.makeCall(ConferenceTransfer.java:1550):exception caught com.avaya.jtapi.tsapi.TsapiInvalidStateException: CSTA Error: 21
16/6/17 7:59:14 PM:T=1:com.avaya.aes.jtapi.confxfer.ConferenceTransfer.makeCall(ConferenceTransfer.java:1550):exception caught com.avaya.jtapi.tsapi.TsapiInvalidStateException: CSTA Error: 21
16/6/17 8:15:49 PM:T=1:com.avaya.aes.jtapi.confxfer.ConferenceTransfer.makeCall(ConferenceTransfer.java:1550):exception caught com.avaya.jtapi.tsapi.TsapiInvalidStateException: CSTA Error: 21
16/6/17 8:16:42 PM:T=1:com.avaya.aes.jtapi.confxfer.ConferenceTransfer.makeCall(ConferenceTransfer.java:1550):exception caught com.avaya.jtapi.tsapi.TsapiInvalidStateException: CSTA Error: 21




Regards,
Tanaji Bhale.
Tanaji_Bhale
Joined: Sep 26, 2016
Messages: 64
Offline
Can someone please suggest me on this? it's like blocker for me and I don't find much information on internet.

Regards,
Tanaji B.

Tanaji_Bhale
Joined: Sep 26, 2016
Messages: 64
Offline
Hi,

I tried making calls to/from all the sample applications provided in JTAPI SDK but each one gives me CSTA 21 error.
(e.g. CTI Error 21=>UR_AUDIT_FAILURE, A CM audit has detected a problem with the endpoint.)


Please let me know, what am I doing wrong here?

P.S.- tsTest web application work fine only if I make call to extensions(both calling party & called party) which are logged in using Avaya Communicator/One-x communicator, but unfortunately it false if any party logs in using sample application provided.

Thanks in advance.

-Tanaji Bhale.
MartinFlynn
Joined: Nov 30, 2009
Messages: 1922
Offline
For makeCall, "TSAPI for Avaya Communication Manager Programmer's Reference" indicates:

GENERIC_STATE_INCOMPATIBILITY (21) – The originator does not go off-hook within five seconds after originating the call and cannot be forced off-hook.

In order to make a call from a device, Communication Manager must be able to force it off-hook. There are certain rules that control this (e.g. it must be speaker phone enabled)

I know that One-X Communicator can be controlled by TSAPI but, AFAIK, Avaya Communication cannot. This means that you can not use an Avaya Communicator phone to originate a call or to be SSCed into a call. I also suspect that it is not possible to use an Avaya Communicator phone to add another phone into the call using SSC.

Martin
Tanaji_Bhale
Joined: Sep 26, 2016
Messages: 64
Offline
Thank you Martin for help. Yes the problem was in SoftClient and it got resolved.

Regards,
Tanaji Bhale.
Go to:   
Mobile view