Hi Jarda,
We are fixing the anonymous trigger issue / license usage in the
upcoming Beta probably within 2 weeks.
I will test your JTAPI push and keep you informed about its status.
regards,
Ram
Cisco Developer Services
http://developer.cisco.com/ -----Original Message-----
From: Jaroslav Martan (jmartan)
Sent: Wednesday, June 18, 2008 3:36 PM
To: Ramgopal Chockalingam -X (rchockal - Infosys at Cisco)
Cc: cuae-beta@developer.cisco.com
Subject: Re: [Cuae-beta] Unexpected JTAPI behavior
Hi Ram,
seen inline.
Ramgopal Chockalingam -X (rchockal - Infosys at Cisco) wrote:
Hi Jarda,
For the first issue, application instances are started based on the
triggering parameter... I think you are referring the logs being
printed
in the app server, will look into that errors. Do you see licenses are
being utilized for these unwarranted script instances ?
Apparently the licenses are being utilized, however if the application
is triggered by JTAPI, it just runs "beginCuaeScript", finds out there
is no handler for the event and exits.
After http trigger I see:
2008:06:18::17:54:12(34): Info: EPM Handle bridge message with method
name registerApplication
2008:06:18::17:54:12(40): Info: EPM Application HttpMakeCall, partition
Default registered
2008:06:18::17:54:24(06): Verbose: LM License check PASS: licensed: 6,
running: 0.
2008:06:18::17:54:24(06): Verbose: EPM Handle event message -
Metreos.Providers.Http.GotRequest
2008:06:18::17:54:24(06): Verbose: EPM Handle SendBeginCuaeScript
After subsequent JTAPI triggers this appears in AppServer log:
2008:06:18::17:54:26(93): Info: JTP Added JTapi call
1000003<->DfwNjysPl6nwk5kh
2008:06:18::17:54:26(93): Info: JTP Sending third-party IncomingCall
for: 1000003
2008:06:18::17:54:26(93): Verbose: LM License check PASS: licensed: 6,
running: 1.
2008:06:18::17:54:26(93): Verbose: R No handler registered for
incoming event:
InternalMessage:
Type: EventMessage
Message ID: Metreos.Providers.JTapi.JTapiIncomingCall
Routing GUID: f49c918a-d733-4e1c-9e3f-6948bcdda861
Source: JTapiProvider
Actually I don't mind receiving additional events, I like the idea of
"anonymous" script. But I think it would be great to have an option to
filter the events on the CUAE server side (using regular expressions?).
For the second issue, what do you see in the app server logs related
to
JTAPISendXSIData ? At the client side I assume your Java app just
hang
after printing the "Send Execute" traces... BTW., hope you have
configured that device in the JTAPI Monitored device pool.
The device is configured (otherwise I would receive no JTAPI events).
For jTapiGetDeviceStatus I see this:
2008:06:18::18:03:38(50): Info: EPM Handle CUAE provider action message
with method name jTapiGetDeviceStatus
2008:06:18::18:03:38(53): Verbose: JTP Sent GetDeviceStatus.
deviceName:SEP001DA21A2384
2008:06:18::18:03:38(53): Verbose: JTP GetDeviceStatus request sent,
waiting for response from stack...CallId:1000004,
DeviceNameSEP001DA21A2384
2008:06:18::18:03:38(54): Verbose: JTP Got 58(DeviceStatus) message from
v6.1.
2008:06:18::18:03:38(56): Verbose: JTP Field: 5(DeviceName) =
SEP001DA21A2384
2008:06:18::18:03:38(56): Verbose: JTP Field: 40(CallId) = 1000004
2008:06:18::18:03:38(56): Verbose: JTP Field: 59(DeviceStatus) = 1
2008:06:18::18:03:38(56): Verbose: JTP Field: 63(ResultCode) = 0
2008:06:18::18:03:38(56): Verbose: JTP Received DeviceStatus message
from JTAPI service
2008:06:18::18:03:38(57): Verbose: JTP Received OnDeviceStatus message
from JTAPI proxy
2008:06:18::18:03:38(57): Verbose: JTP Updating transaction
results1000004
2008:06:18::18:03:38(57): Verbose: JTP Releasing lock on device
SEP001DA21A2384
2008:06:18::18:03:38(59): Verbose: JTP Got response for GetDeviceStatus
message; released the lock: CallId:1000004
For jTapiSendXSIData I see:
2008:06:18::18:16:42(56): Info: EPM Handle CUAE provider action message
with method name jTapiSendXSIData
2008:06:18::18:16:42(60): Verbose: JTP Sent SendXSIData.
deviceName:SEP001DA21A2384, deviceType:CtiMonitored
2008:06:18::18:16:42(81): Verbose: JTP Got 35(InitiatedCall) message
from v6.1.
2008:06:18::18:16:42(81): Verbose: JTP Field: 5(DeviceName) =
SEP001DA21A2384
2008:06:18::18:16:42(81): Verbose: JTP Field: 6(DeviceType) = 6
2008:06:18::18:16:42(81): Verbose: JTP Field: 40(CallId) =
988Q56cyjBsnz3ld
2008:06:18::18:16:42(81): Verbose: JTP Field: 42(From) = 2245
2008:06:18::18:16:42(90): Verbose: JTP PropOnCallInitiated - entry
StackCallId 988Q56cyjBsnz3ld : DevName SEP001DA21A2384
2008:06:18::18:16:42(92): Info: JTP Added JTapi call
1000001<->988Q56cyjBsnz3ld
2008:06:18::18:16:42(92): Info: JTP Sending third-party CallInitiated
for: 1000001
2008:06:18::18:16:42(92): Verbose: LM License check PASS: licensed: 6,
running: 1.
2008:06:18::18:16:42(93): Verbose: R No handler registered for
incoming event:
InternalMessage:
Type: EventMessage
Message ID: Metreos.Providers.JTapi.JTapiCallInitiated
Routing GUID: 16080790-a578-40c4-a194-6888843884e1
Source: JTapiProvider
SourceType: Provider
If you want to take a look at the logs, the server is accessible at
Cisco internal network (in our lab) at 10.62.8.131.
Jarda
regards,
Ram
Cisco Developer Services
http://developer.cisco.com/-----Original Message-----
From: cuae-beta-bounces@developer.cisco.com
mailto:cuae-beta-bounces@developer.cisco.com On Behalf Of JAROSLAV
MARTAN
Sent: Wednesday, June 18, 2008 11:30 AM
To: cuae-beta@developer.cisco.com
Subject: [Cuae-beta] Unexpected JTAPI behavior
Hi,
I'm trying to play with CUAE 2.5.0.7057. In the .etch configuration I
included:
mixin cisco.uc.cuae.legacy.Http
mixin cisco.uc.cuae.legacy.CallControl
mixin cisco.uc.cuae.legacy.MediaControl
mixin cisco.uc.cuae.legacy.CiscoIpPhone
mixin cisco.uc.cuae.legacy.JTapi
The primary trigger of the application is
"Metreos.Providers.Http.GotRequest". The app uses jTapiSendXSIData
with
"Dial:" URI.
I have two problems with the application:
1. new instance of the application is started on any JTAPI event,
e.g.:
14:15:57.656 V EPM Handle event message
-Metreos.Providers.JTapi.JTapiGotDigits
14:15:57.656 V EPM Event is from anonymous script
-Metreos.Providers.JTapi.JTapiGotDigits
14:15:57.656 V EPM Handle SendBeginCuaeScript
14:15:57.687 V EPM Send cisco.uc.cuae.EtchBridge.beginCuaeScript
message
to Etch application HttpMakeCall.
14:15:57.687 I EPM Failed to send beginCuaeScript event, Error: Object
reference
not set to an instance of an object.
14:15:57.687 W EPM Error in sending beginCuaeScript to Etch
application
- HttpMakeCall.
2. after jTapiSendXSIData which is (I presume) synchronnous, I get no
data as if the jTapiSendXSIData function didn't return. E.g. for:
CreateExecuteOptions opt = new CreateExecuteOptions();
opt.url1 = "Dial:" + num;
CreateExecuteResult res = server.createExecute(sessionId, opt);
System.out.println("Send Execute: " + res.xmlObject);
JTapiSendXSIDataResult xsires = server.jTapiSendXSIData(sessionId,
device, res.xmlObject, null);
System.out.println("XSI result: " + xsires.resultCode);
the ouput stops at "Send Execute: <?xml version="1.0"
encoding="utf-8"?><CiscoIPPhoneExecute>
<ExecuteItem Priority="0" URL="Dial:2241" />
</CiscoIPPhoneExecute>"
The same happens for "jTapiGetDeviceStatus" so I don't know if I'm
missing some important information how to write an application or if
it's a bug.
Thanks Jarda
_______________________________________________
Cuae-beta mailing list
Cuae-beta@developer.cisco.com
_______________________________________________
Cuae-beta mailing list
Cuae-beta@developer.cisco.com
Jaroslav Martan, CSE Cisco Systems
CCIE#5871 V Celnici 10
Tel: +420 221435030 117 21 Praha 1
GSM: +420 602376247 Czech Republic
Fax: +420 221435230
_______________________________________________
Cuae-beta mailing list
Cuae-beta@developer.cisco.com