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

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

called when we get ALERT_CONF from CAPI

message the received ALERT_CONF message
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 700 of file connection.cpp.

References P2, P5, plci, and plci_state.

      if (plci_state!=P2 && plci_state!=P5)
            throw CapiWrongState("ALERT_CONF received in wrong state","Connection::alert_conf()");

      if (plci!=ALERT_CONF_PLCI(&message))
            throw CapiError("ALERT_CONF received with wrong PLCI","Connection::alert_conf()");

      if (ALERT_CONF_INFO(&message) && ALERT_CONF_INFO(&message)!=0x0003) // 0x0003 = another application sent ALERT_REQ earlier -> no problem for us
            throw CapiMsgError(ALERT_CONF_INFO(&message),"ALERT_CONF received with Error (Info)","Connection::alert_conf()");

Generated by  Doxygen 1.6.0   Back to index