Logo Search packages:      
Sourcecode: capisuite version File versions  Download package

void Connection::facility_conf_DTMF ( _cmsg &  message  )  throw (CapiError,CapiWrongState,CapiMsgError) [protected]

called when we get FACILITY_CONF from CAPI with facility selector saying it's DTMF

Parameters:
message the received FACILITY_CONF message
Exceptions:
CapiWrongState Thrown when the message is received unexpected (i.e. in a wrong plci_state)
CapiError Thrown when an invalid message is received
CapiMsgError Thrown if the info InfoElement indicates an error

Definition at line 743 of file connection.cpp.

References PACT, plci, and plci_state.

{
      if (plci_state!=PACT)
            throw CapiWrongState("FACILITY_CONF for DTMF received in wrong state","Connection::facility_conf_DTMF()");

      if (plci!=(FACILITY_CONF_PLCI(&message) & 0xFFFF)) // this *should* be the PLCI but to be sure we mask out NCCI part
            throw CapiError("FACILITY_CONF received with wrong PLCI","Connection::facility_conf_DTMF()");

      if (FACILITY_CONF_INFO(&message))
            throw CapiMsgError(FACILITY_CONF_INFO(&message),"FACILITY_CONF received with Error (Info)","Connection::facility_conf_DTMF()");

      _cstruct facilityConfParameter=FACILITY_CONF_FACILITYCONFIRMATIONPARAMETER(&message);
      if ((facilityConfParameter[0]==2) && facilityConfParameter[1])
            throw CapiMsgError(FACILITY_CONF_INFO(&message),"FACILITY_CONF received with DTMF Error (DTMF information)","Connection::facility_conf_DTMF()");
}


Generated by  Doxygen 1.6.0   Back to index