« Back to Technical Questions

How to make a call from a CMEVirtualTerminal

Combination View Flat View Tree View
Threads [ Previous | Next ]
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!

Can you please post code snippet show how do you do it and IOS config too.
 
Thanks !

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!

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

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!

Did you look at the transfer() method in CMECall ? I think you don't need to use VirtualTerminal to do transfer
 
Thanks !