void DSMCall::onZRTPProtocolEvent(zrtp_protocol_event_t event, zrtp_stream_t *stream_ctx) { DBG("DSMCall::onZRTPProtocolEvent: %s\n", zrtp_protocol_event_desc(event)); if (checkVar(DSM_ENABLE_ZRTP_EVENTS, DSM_TRUE)) { map<string, string> params; params["event"] = zrtp_protocol_event_desc(event); params["event_id"] = int2str(event); engine.runEvent(this, this, DSMCondition::ZRTPProtocolEvent, ¶ms); } }
void AmSession::onZRTPProtocolEvent(zrtp_protocol_event_t event, zrtp_stream_t *stream_ctx) { DBG("AmSession::onZRTPProtocolEvent: %s\n", zrtp_protocol_event_desc(event)); if (event==ZRTP_EVENT_IS_SECURE) { INFO("ZRTP_EVENT_IS_SECURE \n"); // info->is_verified = ctx->_session_ctx->secrets.verifieds & ZRTP_BIT_RS0; // zrtp_session_t *session = stream_ctx->_session_ctx; // if (ZRTP_SAS_BASE32 == session->sas_values.rendering) { // DBG("Got SAS value <<<%.4s>>>\n", session->sas_values.str1.buffer); // } else { // DBG("Got SAS values SAS1 '%s' and SAS2 '%s'\n", // session->sas_values.str1.buffer, // session->sas_values.str2.buffer); // } } // case ZRTP_EVENT_IS_PENDINGCLEAR: // INFO("ZRTP_EVENT_IS_PENDINGCLEAR\n"); // INFO("other side requested goClear. Going clear.\n\n"); // // zrtp_clear_stream(zrtp_audio); // break; }