Synopsis:
CCenquiry(port, channel,DID,CID,sending_complete[,cnf_parm1,cnf_parm2]....)
Arguments:
port – The logical E1/T1 port number.
channel – The channel number.
DID – The destination address
CID – The originating address
[send_comp] – Optional Sending complete flag
[cnf_parm1,cnf_parm2..] – Optional cnf_parms
Description: This function maps to the following Aculab function:
ACU_ERR call_enquiry (struct out_xparms *enquiryp);
During the process of call transfer, this function allows an application to make an enquiry call, that is, an outgoing call to a third party. The function is essentially the same as CCmkcall (), having all of the same call states and events.
The DID and CID arguments specify the destination and originating addresses respectively. The option send_comp argument allows the OUT_XPARMS.sending_complete flag to be set and should be set to 0 for overlap sending (more digits to come) or 1 for en-bloc sending. The default is en-bloc sending if this aragument is not given.
The optional cnf_parms allow for the OUT_XPARMS.cnf field to be set. If one or more of these optional cnf_parms are specified then they are each ORed in turn with OUT_XPARMS.cnf field. If no cnf_parms are specifed then by default the IN_XPARMS.cnf field is set to CNF_REM_DISC which stops the channel automatically returning to the idle state when a remote end disconnect occurs (instead the CCrelease() call must be used to return the channel to CS_IDLE state).
See the Aculab documentation for the call_enquiry() function for a more detailed description of the cnf field values.
Returns: This function returns 0 upon success or a negative error code.