CCanscode
Previous Topic  Next Topic 

Synopsis:

CCanscode(port, channel,code)

Arguments:

       port The logical E1/T1 port number.

channel The channel number.

code The answer code to send

Description:   This function maps to the following Aculab function:


ACU_ERR call_answercode(CAUSE_XPARMS *answerp);


This function allows for an answer code to be sent during the CS_CALL_CONNECTED state which provides information about how the call is to be handled.    This is primarily used for CAS protocols and will be ignored for protocols where this is not relevant.


Below are the list of supported answer codes as defined in ACULAB.INC:


const AC_NORMAL            =0; # default acceptance code

const AC_CHARGE          =100; # answer call with charging

const AC_NOCHARGE        =101; # answer call without charging

const AC_LAST_RELEASE    =102; # last party release

const AC_SPARE1          =103; # spare

const AC_SPARE2          =104; # spare


Returns: This function returns 0 upon success or a negative error code.