CCstate
Previous Topic  Next Topic 

Synopsis:

CCstate(port,chan)


Arguments:

       port The logical E1/T1 port number.

channel The channel number.


Description:   This function returns current state of the channel.   The state returned will be one of the following (as defined in the ACULAB.INC file provided with the library):


const CS_IDLE               =0x0;

const CS_WAIT_FOR_INCOMING  =0x1;

const CS_INCOMING_CALL_DET  =0x2;

const CS_CALL_CONNECTED     =0x4;

const CS_WAIT_FOR_OUTGOING  =0x8;

const CS_OUTGOING_RINGING   =0x10;

const CS_INCOMING_DETAILS   =0x20;

const CS_CALL_CHARGE        =0x21;

const CS_EMERGENCY_CONNECT  =0x80;

const CS_TEST_CONNECT       =0x100;

const CS_REMOTE_DISCONNECT  =0x400;

const CS_WAIT_FOR_ACCEPT    =0x800;

const CS_PROGRESS           =0x1000;

const CS_OUTGOING_PROCEEDING=0x2000;

const CS_NOTIFY             =0x4000;

const CS_INFO               =0x8000;

const CS_HOLD               =0x10000;

const CS_HOLD_REJECT        =0x20000;

const CS_TRANSFER_REJECT    =0x40000;

const CS_RECONNECT_REJECT   =0x80000;

const CS_CHARGE_INT         =0x100000;

const CS_EXTENDED           =0x200000;

const CS_DPNS_TRANSIT       =0x1000000;     # DPNSS Enhanced Only

const CS_DPNS_IN_TRANSIT    =0x2000000;     # DPNSS Enhanced Only

const CS_DPNS_HOLDING       =0x4000000;     # DPNSS Enhanced Only

const CS_DPNS_HELD          =0x8000000;     # DPNSS Enhanced Only

const CS_DPNS_CONFERENCE    =0x10000000;    # DPNSS Enhanced Only

const CS_DPNS_INTRUDING     =0x20000000;    # DPNSS Enhanced Only

const CS_DPNS_IN_TRANSIT    =0x40000000;          # DPNSS Enhanced Only

const CS_MEDIA                    =0x00000101;          # IP only

const CS_MEDIA_PROPOSE      =0x00000102;          #IP only

const CS_MEDIA_REJECT_PROPOSAL                =0x00000103;        # IP only

const CS_MEDIA_REQUEST_PROPOSAL                =0x00000104;        # IP only

const CS_MEDIA_REJECT_REQUEST_PROPOSAL        =0x00000105;        # IP only

const CS_INSUFFICIENT_MEDIA_RESOURCE_FOR_CALL =0x00000106;  # IP only


Returns:  Returns the current state of the channel or -1 if a bad port or channel is given.