|
lineDrop
The lineDrop function drops or disconnects the specified call. The application has the
option to specify user-to-user information to be transmitted as part of the call
disconnect.
LONG lineDrop(
HCALL hCall,
|
| LPCSTR lpsUserUserInfo,
|
| DWORD dwSize
|
| );
|
|
Parameters
hCall
A handle to the call to be dropped. The application must be an owner of the
call. The call state of hCall can be any state except idle.
lpsUserUserInfo
A pointer to a string containing user-to-user information to be sent to the
remote party as part of the call disconnect. This pointer can be left NULL if no
user-to-user information is to be sent. User-to-user information is only sent
if supported by the underlying network (see LINEDEVCAPS). The protocol discriminator field for the user-to-user information, if
required, should appear as the first byte of the buffer pointed to by lpsUserUserInfo, and must be accounted for in dwSize.
dwSize
The size in bytes of the user-to-user information in lpsUserUserInfo. If lpsUserUserInfo is NULL, no user-to-user information is sent to the calling party and dwSize is ignored.
Return Values
Returns a positive request ID if the function will be completed
asynchronously, or a negative error number if an error has occurred. The dwParam2 parameter of the corresponding LINE_REPLY message is zero if the function is successful or it is a negative error
number if an error has occurred. Possible return values are:
LINEERR_INVALCALLHANDLE, LINEERR_OPERATIONUNAVAIL, LINEERR_NOMEM,
LINEERR_OPERATIONFAILED, LINEERR_NOTOWNER, LINEERR_RESOURCEUNAVAIL, LINEERR_INVALPOINTER,
LINEERR_USERUSERINFOTOOBIG, LINEERR_INVALCALLSTATE, LINEERR_UNINITIALIZED.
Remarks
When invoking lineDrop, related calls may sometimes be affected as well. For example, dropping a
conference call may drop all individual participating calls. LINE_CALLSTATE messages are sent to the application for all calls whose call state is
affected. A dropped call typically transitions to the idle state. Invoking lineDrop on a call in the offering state rejects the call. Not all telephone networks provide this capability.
A call in the onholdpending state will typically revert to the connected state. When dropping the consultation call to the third party for a
conference call or when removing the third party in a previously established conference
call, the provider (and switch) may release the conference bridge and revert
the call back to a normal two-party call. If this is the case, hConfCall transitions to the idle state, and the only remaining participating call will transition to the connected state. Some switches automatically "unhold" the other call.
The application has the option to send user-to-user information at the time of
the drop. Even if user-to-user information can be sent, there is no guarantee
that the network will deliver this information to the remote party.
Note that in various bridged or party-line configurations when multiple
parties are on the call, lineDrop may not actually clear the call. For example, in a bridged situation, a lineDrop operation may possibly not actually drop the call because the status of other
stations on the call may govern; instead, the call may simply be changed to
the LINECONNECTEDMODE_INACTIVE mode if it remains connected at other stations.
See Also
LINE_CALLSTATE, LINE_REPLY, LINEDEVCAPS
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|