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

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

called when we get CONNECT_B3_IND from CAPI

This method will also send a response to Capi.

Parameters:
message the received CONNECT_B3_IND message
Exceptions:
CapiWrongState Thrown when the message is received unexpected (i.e. in a wrong ncci_state)
CapiMsgError Thrown by Capi::connect_b3_resp()

Definition at line 391 of file connection.cpp.

References capi, Capi::connect_b3_resp(), N0, N2, ncci, and ncci_state.

{
      if (ncci_state!=N0) {
            throw CapiWrongState("CONNECT_B3_IND received in wrong state","Connection::connect_b3_ind()");
      } else {
            ncci=CONNECT_B3_IND_NCCI(&message);

            // 0 = we'll accept any call, NULL=no NCPI necessary
            // this can throw CapiMsgError. Propagate.
            ncci_state=N2;
            capi->connect_b3_resp(message.Messagenumber,ncci,0,NULL);
      }
}


Generated by  Doxygen 1.6.0   Back to index