I have created a trust application, which have sip:[email protected] as endpoint contact. I'm using the UCMASampleHelper from the UCMA SDK to create and establish my app endpoint, which seems to work without any exceptions.
But when I'm doing
applicationEndpoint.RegisterForIncomingCall<AudioVideoCall>(AVCallReceived);
running the application in debug, and trying to call the sip address, the AVCallReceived isn't fired.
Anyone that can tell me what's going wrong?? Lync client is trying to place a call, but the event is never fired.
EDIT: Here is a code sample http://pastebin.com/wyHAhQuU
Found the solution. Creating a UserEndpoint with the ApplicationEndpoint sip uri passed in the constructor, and then register for calls on the UserEndpoint object.