Nils W
unread,Nov 16, 2009, 6:46:17 PM11/16/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SIPek
Hi, I am trying to write a little client that simply shows a balloon
tooltip on incoming calls.
I have worked through your example and I am able to do calls. However
on incoming calls, I don't get anything.
I have the line
CallManager.IncomingCallNotification += new DIncomingCallNotification
(CallManager_IncomingCallNotification);
in my Constructor
an asynchronous callback
void CallManager_IncomingCallNotification(int sessionId,
string number, string info)
{
// MUST synchronize threads
if (InvokeRequired)
this.BeginInvoke(new DIncomingCallNotification
(OnIncomingCall), new object[] { sessionId, number, info });
else
OnIncomingCall(sessionId, number, info);
}
and the two synchronous callbacks
private void OnStateUpdate(int sessionId)
{
if (outcall != null) textBoxCallState.Text =
outcall.StateId.ToString();
if (incall != null) textBoxCallState.Text =
incall.StateId.ToString();
}
private void OnIncomingCall(int sessionId, string number,
string info)
{
incall = CallManager.getCall(sessionId);
}
I see the call in the log but the program doesn't do anyting...