Synopsis:
CCgetcause(port, channel[,std_or_raw])
Arguments:
port – The logical E1/T1 port number.
channel – The channel number.
[std_or_raw] – Optional parameter to define whether to return the standard (0) or raw (1) cause value.
Description: This function maps to the following Aculab function:
ACU_ERR call_getcause(CAUSE_XPARMS *causep);
This function is used to return the clearing cause when an incoming or outgoing call clears. The returned clearing cause will only be valid when the call state is either EV_IDLE or EV_REMOTE_DISCONNECT.
Returns: This function returns 0 upon success or a negative error code.