h324EndSession

Directs the H.324M Middleware to terminate the current H.324 session at the end of the call.

Prototype

DWORD h324EndSession ( MSPHD msphd)

Argument

Description

msphd

MSPP handle associated with the MUX endpoint.

Return values

Return value

Description

SUCCESS

 

CTAERR_NOT_FOUND

msphd was not found. Either h324Start was not called or h324Delete was called.

H324ERR_INTERNAL_ERROR

Internal error in the 3G-324M Middleware.

H324ERR_MUTEX_LOCK_FAILED

Internal error trying to lock mutex.

H324ERR_NOT_INITIALIZED

h324Initialize was not called first.

Events

Event

Description

H324EVN_END_SESSION_DONE

End session message was delivered to the remote terminal.

Example

ret = h324EndSession( pCfg->MuxEp.hd );
if(ret != SUCCESS)
{
    printf("h324EndSession returned 0x%08x\n",ret);
    return ret;
}
ret = WaitForSpecificEvent( nGw, GwConfig[nGw]. hCtaQueueHd,
                            H324EVN_END_SESSION_DONE, &event );
if ( ret != 0 )
{
    printf(“h324EndSession failed to get remote ACK\n");
    return ret;
}