void MyH323EndPoint::OnConnectionEstablished(H323Connection & connection, const PString & estCallToken) { if (h323debug) { cout << "\t=-= In OnConnectionEstablished for call " << connection.GetCallReference() << endl; cout << "\t\t-- Connection Established with \"" << connection.GetRemotePartyName() << "\"" << endl; } on_connection_established(connection.GetCallReference(), (const char *)connection.GetCallToken()); }
H323Connection::AnswerCallResponse CMfcEndPoint::OnAnswerCall(H323Connection & connection, const PString &caller, const H323SignalPDU &, H323SignalPDU &) { m_dialog->m_token = connection.GetCallToken(); m_dialog->m_caller.SetWindowText(caller + " is calling."); m_dialog->m_answer.EnableWindow(); m_dialog->m_refuse.EnableWindow(); m_dialog->m_call.EnableWindow(false); return H323Connection::AnswerCallPending; }