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

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

called when we get CONNECT_CONF from CAPI

message the received CONNECT_CONF message
CapiWrongState Thrown when the message is received unexpected (i.e. in a wrong plci_state)
CapiMsgError Thrown if the info InfoElement indicates an error

Definition at line 642 of file connection.cpp.

References debug, debug_level, P01, P1, plci, plci_state, and prefix().

      if (plci_state!=P01)
            throw CapiWrongState("CONNECT_CONF received in wrong state","Connection::connect_conf()");

      if (CONNECT_CONF_INFO(&message))
            throw CapiMsgError(CONNECT_CONF_INFO(&message),"CONNECT_CONF received with Error (Info)","Connection::connect_conf()");
            // TODO: do we have to delete Connection here if Info!=0 or is a DISCONNECT_IND initiated then (think not ...)

      if (debug_level >= 2) {
            debug << prefix() << "got PLCI " << plci << endl;


Generated by  Doxygen 1.6.0   Back to index