Microsoft TAPI (en)
 

Hold call is not working


 
Hold call is not working Post Reply
06.05.2008 18:44 Ravi

Hi all,

I am developing a application in c# with TAPI 3.1. My application works for
Call, Answer and transfer. I wrote the function for Hold and disconnect. But
it is throwing error for disconnect and its not responding for hold

i am attaching the code for your view.

This is for call holding
public void TAPICallHold(IEnumCall ec,bool hold)
        {
            uint arg = 0;
            ITCallInfo ici;
            ec.Next(1, out ici, ref arg);
            ITBasicCallControl bc = (TAPI3Lib.ITBasicCallControl)ici;
            bc.Hold(hold);
        }

this is for call disconnecting
public void TAPICallDisconnect(IEnumCall ec)
        {
            uint arg = 0;
            ITCallInfo ici;
            ec.Next(1, out ici, ref arg);
            ITBasicCallControl bc = (TAPI3Lib.ITBasicCallControl)ici;
            bc.Disconnect(DISCONNECT_CODE.DC_NORMAL);
            ici.ReleaseUserUserInfo();
        }

While debugging the disconnect function, found out that it is throwing error
at ici.ReleaseUserUserInfo() function.
The error message i receive is as follows
This implementation doesn't take advises (Exception from HRESULT: 0x80040003
(OLE_E_ADVISENOTSUPPORTED))"

Any ideas please?

url:http://www.ureader.com/gp/1481-1.aspx
Re: Hold call is not working Post Reply
06.05.2008 17:18 Andreas Marschall [MVP TAPI]

"Ravi" schrieb im Newsbeitrag
news:f50a2c7f5fed449fbd231bbe980f75b4@newspe.com...
> I am developing a application in c# with TAPI 3.1. My application works for
> Call, Answer and transfer. I wrote the function for Hold and disconnect. But
> it is throwing error for disconnect and its not responding for hold

Ravi,
Regarding TAPI and .NET see KB article "841712 - Telephony Application
Programming Interface (TAPI) functionality is not supported from managed
code".
See my TAPI and TSPI FAQ:
Q: Are there any .NET wrappers for TAPI2 available ?
http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Are_there_4

You may want to take a look at JulMar's
ITAPI3 - TAPI 3.0 wrapper for .NET 2.0
and
TAPI2 ATAPI.NET - TAPI Application class library for .NET 2.0:
http://www.julmar.com/tapi/
http://www.julmar.com/blog/mark/CategoryView,category,Tapi.aspx


> i am attaching the code for your view.
>
> This is for call holding
>  public void TAPICallHold(IEnumCall ec,bool hold)
>         {
>             uint arg = 0;
>             ITCallInfo ici;
>             ec.Next(1, out ici, ref arg);
>             ITBasicCallControl bc = (TAPI3Lib.ITBasicCallControl)ici;
>             bc.Hold(hold);
>         }

What device / TSP are you using?

Are you sure that it supports hold feature?

Can you reproduce the issue with TAPI Browser TB3x ?
Please post a TB3x log.
See my TAPI and TSPI FAQ:

Q: Where can I download TAPI Browser ?
http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Where_can

Q: Is there a user guide available for TAPI Browser TB3x ?
http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Is_there_2


> this is for call disconnecting
>  public void TAPICallDisconnect(IEnumCall ec)
>         {
>             uint arg = 0;
>             ITCallInfo ici;
>             ec.Next(1, out ici, ref arg);
>             ITBasicCallControl bc = (TAPI3Lib.ITBasicCallControl)ici;
>             bc.Disconnect(DISCONNECT_CODE.DC_NORMAL);
>             ici.ReleaseUserUserInfo();
>         }

Why do you try to ::ReleaseUserUserInfo() ?
What happens if you just ::Disconnect() ?


> While debugging the disconnect function, found out that it is throwing error
> at ici.ReleaseUserUserInfo() function.
> The error message i receive is as follows
> This implementation doesn't take advises (Exception from HRESULT: 0x80040003
> (OLE_E_ADVISENOTSUPPORTED))"


You are looking at the wrong error code description.
It is:
TAPI3 error code: 0x80040003 = This method is not supported..
See my TAPI and TSPI FAQ:
Q: Where are TAPI errors codes defined ?
http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Where_are

--
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK
TAPI / TSP Developer and Tester
My TAPI and TSPI FAQ:
http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
My Toto® Tools (a collection of free, mostly TAPI related tools):
http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm
TAPI development around the world (Frappr! map):
http://www.frappr.com/TAPIaroundTheWorld
* Please post all messages and replies to the newsgroup so all may
* benefit from the discussion.  Private mail is usually not replied to.
* This posting is provided "AS IS" with no warranties, and confers no rights.


 
 
 Write Us|  Add to favorites
 
 
 ©2007 TERASENS GmbH. All rights reserved. Copyright Notice