Radiance Udai
unread,Nov 26, 2007, 8:21:16 AM11/26/07Sign 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 DOTNET-CAFE
TapiClass tobj=new TapiClass();
BasicCallControl bcc;
When we try to Disconnect the call,if the call state is in
"callConnecting" especially during the call is switched to voice
mail, the following two lines are causing problem and crashes the
application.
Here is the code which causes the application hangs -up.
bcc.Disconnect(DISCONNECT_CODE.DC_NORMAL);
tobj.Shutdown();
Below is the code snippet responsible for Disconnecting the call.
IEnumCall ec = ia[line].EnumerateCalls();
uint arg = 0;
ITCallInfo ici;
try
{
ec.Next(1,out ici,ref arg);
ITBasicCallControl
bcc=(ITBasicCallControl)ici;
bcc.Disconnect(DISCONNECT_CODE.DC_NORMAL);
tobj.Shutdown();
}
let me know if anybody knows the solution