Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I try to detect a call in vb.net from my Skype Client.

I used the lync.model.dll

The problem is, how can I detect a call from Skype for business? The Client is running.

Please look at my try and the ?
Is that the right way?

How I handle the incoming call?

How how connect my Client to the -> Public WithEvents AVMod As Model.Conversation.AudioVideo.AVModality = ???

What I have tried:

Imports Microsoft.Lync
Imports Microsoft.Lync.Model.Conversation
Imports Microsoft.Lync.Model


Public Class Form1

	Public WithEvents automationy As Model.Extensibility.Automation = Microsoft.Lync.Model.LyncClient.GetAutomation()
	Public WithEvents SkypeClient As Microsoft.Lync.Model.Client = Microsoft.Lync.Model.LyncClient.GetClient()
	Public WithEvents MySkype As Model.Contact = SkypeClient.ContactManager.GetContactByUri(SkypeClient.Uri.ToString)
	Public WithEvents AVMod As Model.Conversation.AudioVideo.AVModality = ???
		 
	

Public Sub IncCall(sender As Object, e As Model.Conversation.ModalityStateChangedEventArgs) Handles AVMod.ModalityStateChanged
		 
			MsgBox("There is a Call!")
		 
	End Sub

End Class
Posted
Comments
[no name] 26-Nov-19 20:59pm    
https://docs.microsoft.com/en-us/skype-sdk/ucma/accepting-an-incoming-call
Member 14668148 27-Nov-19 8:14am    
Thanks for the link.
Can you help me and show how it work's in vb.net?

In die Microsoft.Lync.dll is nothing to find like
"endpoint.RegisterForIncomingCall<audiovideocall>(Endpoint_CallReceived)"

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900