This document was generated from CDN thread
Created by: Peter Kaltschmitt on 22-06-2010 03:30:16 PM
Hello,
there is a method call.connect(CMEPhone...) in the API.
This does apparently not work with CMEVirtualTerminal (which is an other subclass of CMEAbstractTerminal besides CMEPhone).
So how is it possible to initiate a call from a virtual terminal?
I appreciate any help.
Thanks!
Subject: RE: How to make a call from a CMEVirtualTerminal
Replied by: Peter Kaltschmitt on 23-06-2010 08:45:17 AM
Hi,
when coding:
CMECall call = myProvider.createCall(CMECall.Type.DIRECT);
CMEVirtualTerminal t = (CMEVirtualTerminal) myProvider.createTerminal("4712", CMEAbstractTerminal.Type.VIRTUAL, "virtual");
CMEAbstractAddress myAddress = myProvider.createAddress("777",CMEAbstractAddress.Type.USER);
t.addAddress(myAddress, cstaListener);
call.connect(t, cmeAddress, destDn, (CMEResponseInterface) cmeResponseListener, false);
it is not possible to use t in call.connect(), because the connect Methods requires CMEPhone, not a CMEVirtualTerminal.
So how is it possible to make a call from a CMEVirtualTerminal, that mean a terminal with a dn but without a mac (a solely programmatically controlled terminal).
This use is not possible because of the Java API.
Independently of any IOS Config this method is not usable for a CMEVirtualTerminal.
Thanks for your help!
Subject: RE: How to make a call from a CMEVirtualTerminal
Replied by: Yawming Chen on 22-06-2010 04:16:19 PM
Can you please post code snippet show how do you do it and IOS config too.
Thanks !
Subject: RE: How to make a call from a CMEVirtualTerminal
Replied by: Yawming Chen on 23-06-2010 08:03:43 PM
You are right
We can not use it in this way to make call CMEVirtualTerminalis used for Extension Mobility.
Is there a reason you need to use it in this way.
Thanks !
<!--EndFragment-->
Subject: RE: How to make a call from a CMEVirtualTerminal
Replied by: Peter Kaltschmitt on 24-06-2010 09:09:28 AM
Hi,
I intended to make a call from an application to a device, and only after the device answering the phone to transfer the call to an other device.
My thought was, that this would only be possible with a VirtualTerminal, because my application would not want to provide a mac address.
Thanks for any ideas regarding this problem!
Subject: RE: How to make a call from a CMEVirtualTerminal
Replied by: Yawming Chen on 08-07-2010 05:26:17 PM
Did you look at the transfer() method in CMECall ? I think you don't need to use VirtualTerminal to do transfer
Thanks !