Author Message
COLASChristian
Joined: Mar 2, 2017
Messages: 2
Offline
We are using Windows SDK to build a customized softphone for a customer (few features actually needed, video call required).
Starting from the sample is OK.
We need the resulting softphone to auto-answer calls.

Any quick guidances for us ?
Thanks -
Christian
JohnBiggs
Joined: Jun 20, 2005
Messages: 1139
Location: Rural, Virginia
Offline
The Communication Manager station form has an option for "Auto Answer" on page 2. It works by Communication Manager sending a proprietary off hook request to the station/soft-phone after the call is delivered. The station then goes off hook to answer the call. Avaya devices that support headsets or speakerphones usually support this message (it is hard to get the handset to jump out of the cradle).

In the context of your application I do not know if this proprietary off-hook request is available/exposed in the client SDK. If it isn't, it is probably best to make auto-answer a button of some form on the soft-phone's UI. When messaging offering a call to the station occurs and this option is enabled, the station can send the appropriate off-hook/answer indication.

One should be aware of other features that can interact with this behavior (e.g. send all calls with a simulated bridged appearance, bridging, PCOL, TEG, TEAM, and the like), and think through when auto answer is appropriate and when it may not be desirable to auto-answer a call and under what conditions the application is aware of the feature state of those other features that there may be interactions with.

Communication Manager has an option to just auto answer just ACD calls, just ICOM versus all calls.
COLASChristian
Joined: Mar 2, 2017
Messages: 2
Offline
Thanks for your answer, John,
.... and appreciate your humour about craddle jumping by itself ....
Unfortunately the "sample" as delivered with the SDK does not react to the "auto answer" CM administered feature.
So yes, I think we need to bring some changes to the sample code to make the jumping magic happen.
Wondering if this has ever been done
Thanks
Christian
JohnBiggs
Joined: Jun 20, 2005
Messages: 1139
Location: Rural, Virginia
Offline
not to my knowledge, perhaps some other reader of the forum thread will have more specific knowledge.
Rumata
Joined: Dec 20, 2016
Messages: 133
Offline
Hi COLASChristian,
Thank you for your question.

The SDK never auto-answers a call, we simply provide info indicating whether the call can be auto-answered. It's up to the client to act on this info and automatically answer the call.

You can use Call.CanAutoAnswer property to check whether this incoming call can be answered automatically.

https://www.devconnectprogram.com/site/global/products_resources/avaya_client_sdk/programming_docs/current/windows/communication/api_refs/html/P_Avaya_ClientServices_Call_CanAutoAnswer.htm
Go to:   
Mobile view