07-25-2022 05:49 AM
Hello, I am trying to run the JTAPI example,
I have a cisco IP communicator device, and I added the following input to the code:
# JTAPI user configuration
CUCM_ADDRESS=192.168.X.X
JTAPI_USERNAME=admin
JTAPI_PASSWORD=XXXXXXXXXX
And:
# sendData
ALICE_DN=1000
# makeCall
BOB_DN=1005
Which I need to make a call from Alice to Bob ...
But it fails ...
The log:
15:47:09.94 Initializing Jtapi
15:47:10.22 Connecting Provider: 192.168.x.x;login=admin;passwd=xxxxxxxxxx
15:47:11.15 Awaiting ProvInServiceEv...
Received--> Provider/(P1-admin) ProvInServiceEv [#0] Cause:100 CallCtlCause:0 CiscoCause:0 FeatReason:12
15:47:11.17 Opening fromAddress DN: 1000
Exception in thread "main" com.cisco.jtapi.InvalidArgumentExceptionImpl: Address 1000 is not in provider's domain.
at com.cisco.jtapi.ProviderImpl.getAddress(CTQF)
at com.cisco.jtapi.makecall.makeCall.main(makeCall.java:86)
07-25-2022 12:11 PM
Generally this can happen if:
* The JTAPI user is not associated to the target device/DN in CUCM admin
* The JTAPI user does not have CTI permissions - the allow rollover/connext-xfer permissions are often overlooked (as most modern Cisco phones now support those features)
* The target device has the 'Allow CTI Control' option enabled
07-25-2022 11:06 PM
Thanks for the reply,
regarding the first point, is it this page: (ccmadmin/appuserFindList.do) or this (ccmadmin/userFindList.do) ...
is there any tutorial?
07-25-2022 11:08 PM
Where should I go
07-26-2022 08:47 AM
Devices can be associated to both application and end users.
07-26-2022 11:03 PM
Thank you so much for the fast reply,
I already have an added device, but still the JTAPI application will not work,
This line is throwing an error:
CiscoAddress fromAddress = (CiscoAddress) provider.getAddress(dotenv.get("ALICE_DN"));
Is there a special way that the address should be in??
Thanks a lot
07-26-2022 11:07 PM
Again this is my scenario:
// Basic make call example.
// Devices used / requirements (configure these in .env):
// * ALICE_DN / CTI supported phone,associated with JTAPI user
// * BOB_DN / any phone
// Scenario:
// 1. ALICE_DN creates/connects a call to BOB_DN
// 2. The call rings for 5 seconds (optionally it can be manually answered)
// 3. ALICE_DN drops the call
I configured the server, username, password, and added my Directory Number as "ALICE_DN", I also tried the device name and it didn't work too.
I just want to make a call from the JTAPI, but all solutions are not working for me ...
08-03-2022 08:20 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide