TAstaVoIPEndPoint.MakeCall

Top  Previous  Next

TAstaVoIPEndPoint

 

Declaration

function MakeCall(RemoteParty: string; var Token: string): TAstaVoIPConnection;

 

Description

Make a call to a remote party. An appropriate transport is determined from the remoteParty parameter. The general form for this parameter is:

 

[alias@][transport$]host[:port]

 

Where the default alias is the same as the host, the default transport is "ip" and the default port is 1720. This function returns almost immediately with the call occurring in a new background thread. Note that the call could be created and cleared ie OnConnectionCleared is called BEFORE this function returns. It is guaranteed that the token variable is set before OnConnectionCleared called.

 

Note: The returned pointer to the connection is not locked and may be deleted at any time. This is extremely unlikely immediately after the function is called, but you should not keep this pointer beyond that brief time. The the FindConnectionWithLock() function for future references to the connection object.