cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1230
Views
10
Helpful
7
Replies

DN - provider's domain - make call

Sameer111
Level 1
Level 1

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)

 

7 Replies 7

dstaudt
Cisco Employee
Cisco Employee

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

Thanks for the reply, 

 

regarding the first point, is it this page: (ccmadmin/appuserFindList.do) or this (ccmadmin/userFindList.do) ... 

is there any tutorial? 

 

Where should I go

Screenshot 2022-07-26 090702.png

Devices can be associated to both application and end users.

Peek 2022-07-26 10-44.gif

Thank you so much for the fast reply, 

img1.pngimg2.png

 

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

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 ... 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: