cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
201
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Satoshi Hirose on 16-06-2010 01:34:18 AM
Hi,

I tried CMEPhone.pickup() method and I have two questions, could you help me ?

#1. Do I need monitor the pickup-from-phone ?
Phone A : DN 1004, cti watched and controlled by CSTA
Phone B : DN 1005, call to C
Phone C : DN 1002, called from B

my application invoke phoneA.pickup(1002,1004,myResponseListener) then the app had 'No calls found for the pickup address:1002' exception.

com.cisco.cme.cti.exceptions.CMEResourceUnavailableException: No calls found for the pickup address:1002
    at com.cisco.cme.cti.CMEPhone.directPickup(CMEPhone.java:225)
    at com.cisco.cme.cti.CMEPhone.pickup(CMEPhone.java:261)

I add 'cti watch' to Phone C and monitor in my app(createTerminal,createAddress...), it works.
Do I need monitor the pickup-from-phone ?
i.e.) I would like to pickup from 2001,2002,2003,2004 and 2005, all ephone-dn need 'cti watch' and monitor by the app ?


#2. How do I un-park using pickup() method ?
Please see the section '4.10) Pickup Call' on the dev guide.
It seems that I can use pickup() method  for un-park. But I can't.
Could you give me a hint ? (I could un-park using call.create())
 
Thanks,
Satoshi

Subject: RE: How can I pickup the call ?
Replied by: Satoshi Hirose on 16-06-2010 02:56:58 AM
monitored by API means, the following code ?
 
    public void monitorPhone(String mac, String phoneNumber) throws Exception {
        CMEUserAddress cmeAddress = (CMEUserAddress)myProvider.createAddress(phoneNumber, CMEAbstractAddress.Type.USER);
        CMEPhone cmePhone = (CMEPhone)myProvider.createTerminal(mac, CMEAbstractTerminal.Type.PHONE,"SEP"+mac);
        cmePhone.addAddress(cmeAddress, new CSTAListenerImpl(this));
    }
 
I already tried and it works. So you means that I need monitor these phones if I need pickup ?
 
Thanks,
Satoshi

Subject: RE: How can I pickup the call ?
Replied by: Satoshi Hirose on 16-06-2010 04:22:21 AM
Thanks! I understood.
 
do you have answer for #2 ?
 
#2. How do I un-park using pickup() method ?
Please see the section '4.10) Pickup Call' on the dev guide.
It seems that I can use pickup() method  for un-park. But I can't.
Could you give me a hint ? (I could un-park using call.create())
 
Thanks,
Satoshi

Subject: RE: How can I pickup the call ?
Replied by: Satoshi Hirose on 16-06-2010 05:17:19 AM
case1)
Phone A : DN 1004, cti watched and controlled by CSTA
Phone B : DN 1005, call to C
Phone C : DN 1002, called from B, answer the call and park to 002

Phone A tried pickup("002","1004",cmeResponseListener), then throw exception.

 com.cisco.cme.cti.exceptions.CMEResourceUnavailableException: No calls found for the pickup address:002
    at com.cisco.cme.cti.CMEPhone.directPickup(CMEPhone.java:225)
    at com.cisco.cme.cti.CMEPhone.pickup(CMEPhone.java:261)

case2)
Phone A : DN 1004, cti watched and controlled by CSTA
Phone B : DN 1005, call to A

Phone A answer the call and park to 002 by API.
Phone A tried pickup("002","1004",cmeResponseListener), then throw same exception.


When Phone A dial to 002, it can get packed call both cases.
Could you give me your advice ?
 
Thanks,
Satoshi

Subject: RE: How can I pickup the call ?
Replied by: Yawming Chen on 16-06-2010 02:36:35 AM
I think the reason might be that phone is not monitored.
 
Please add those phone monitored by API and try again.
 
Thanks,
 
Yawming

Subject: RE: How can I pickup the call ?
Replied by: Yawming Chen on 16-06-2010 04:15:23 AM
Yes,
 
cmePhone.addAddress(cmeAddress, cstaListener);
 

Basically adding CMECSTAListener
to start monitoring CSTA event notification from CUCME.
 
Thanks !

Subject: RE: How can I pickup the call ?
Replied by: Yawming Chen on 16-06-2010 04:51:28 AM
I think you are right to "un-park" we can use pick up. But you didn¿t add phone on monitoring so you couldn¿t pick up.



Thanks !

Subject: RE: How can I pickup the call ?
Replied by: Yawming Chen on 16-06-2010 05:29:53 AM
Can you please attach your code ?

Subject: RE: How can I pickup the call ?
Replied by: Satoshi Hirose on 17-06-2010 01:16:13 AM
Hi,
I added monitoring Phone B, then it's working fine.

before)
Phone A : DN 1004, cti watched and controlled by CSTA
Phone B : DN 1005, call to C
Phone C : DN 1002, called from B, answer the call and park to 002

after)
Phone A : DN 1004, cti watched and controlled by CSTA
Phone B : DN 1005, cti watched and monitored, call to C
Phone C : DN 1002, called from B, answer the call and park to 002
 
So, we need monitoring parked phone, if need un-park (pickup the parking #).
 
Thanks a lot!

Subject: RE: How can I pickup the call ?
Replied by: Satoshi Hirose on 17-06-2010 01:55:58 AM
Additional question.

'make call' and 'pickup call' work for un-park.
Can I use both way for un-park ?

Thanks

Subject: RE: How can I pickup the call ?
Replied by: Yawming Chen on 17-06-2010 05:04:55 AM
Well, to make call we need to know the call object first so pickup will be the easier way.
 
But this is a good question, let me find it out.
 
Thanks !
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:

Quick Links