Blogs

Check out the new content on the Cisco Developer Network reflecting the New & Enhanced features in Cisco Unified Communication Manager 9.1.
See the new 9.1 JTAPI Documentation ...Read More

 

The Unified Communications 9.0 Partner Bundle packages Cisco’s Collaboration application software for our Collaboration partner community to leverage for their internal lab or demonstration systems. The 9.0 version is now available for order. Learn More >> ...Read More

 

Developer Partners,

Cisco announces the availability of our 2012 Developer Partner presentations shared at CiscoLive San Diego.

Please log into the Cisco Developer Network using your Partner UserID to download this content.

Access these presentations here: http://developer.cisco.com/web/cdc/devforumpreso PARTNER LOGIN REQUIRED
...Read More

 

Developer Partners,

Cisco announces the availability of our 2012 Developer Partner presentations shared at CiscoLive London.

Please log into the Cisco Developer Network using your Partner UserID to download this content.

Access these presentations here: http://developer.cisco.com/web/cdc/devforumpreso PARTNER LOGIN REQUIRED
...Read More

 

Cisco Technology Developer Partners,

Cisco is proud to announce the availability of our Cisco Unified Communications System Release 8.6 Not-For-Resale software bundle on Cisco Marketplace (Partner Login Required).

To purchase the latest Unified Communications NFR Software bundle
- Navigate to Cisco Marketplace
- Login using your Cisco.com UserID ...Read More

 

Showing 1 - 5 of 30 results.
Items per Page 5
of 6

Forums

« Back to Cisco JTAPI Questions

RE: how to get caller phone number with the JTAPI?

Combination View Flat View Tree View
Threads [ Previous | Next ]
 I am a freshman for JTAPI, I test with the JTAPI sample. for the makecall method, we need to pass some parameters to it. such as
makecall <server> <login> <password> <delay> <origin> <destination>. we can hardcode the origin number and destination number to test now.
but I have a quesion, can I get the origin number( this also is the caller number) with the JTAPI? If no, how can I get this number with other way?

Hi Yang,

You can use CiscoCall API's like getCallingAddress(), getCurrentCallingAddress(), getModifiedCallingAddress(), etc, to retrieve the caller address in a call. For more info, please refer to the latest JTAPI Developer Guide posted on http://developer.cisco.com/web/jtapi/docs.

Thanks,
Andrew

Hi Yang,

You can use CiscoCall API's like getCallingAddress(), getCurrentCallingAddress(), getModifiedCallingAddress(), etc, to retrieve the caller address in a call. For more info, please refer to the latest JTAPI Developer Guide posted on http://developer.cisco.com/web/jtapi/docs.

Thanks,
Andrew



Thanks your suggestion, but I think for getCallingAddress(), getCurrentCallingAddress(), getModifiedCallingAddress() can be used to get the caller infomation after make a call. my quesion is when I begin to make a call ,how to know this number. below coding is copy from sample coding-makecall.java
 
 if (src == null) {
                        src = args;
                    } else {
                        dest = args;
                        Originator originator = new Originator(this.provider.getAddress(src), dest, (Trace) this, actionDelayMillis);
 
you can see the src is the original number, and it is passed from outside. My PC has installed the Cisco IP communatior software. There is a bingding phone number for me. How can I get this numer with the JTAPI ?

When JTAPI is used to open provider, application would know all the controllable addresses and terminals for that user. For example, you can fetch those addresses from CiscoProvider.getAddresses() and decide which address to be used as the calling party. Or you can fetch the terminals from provider and get the address of the one that you're interested in.

Regards,
Andrew

Collateral


No files available