Esempio n. 1
0
static void showMessage(void* data, int32_t sev, int32_t subCode)
{
    switch (sev)
    {
    case zrtp_Info:
        PJ_LOG(3,(THIS_FILE, "ZRTP info message: %s", InfoCodes[subCode]));
        if(subCode == zrtp_InfoSecureStateOn
                || subCode == zrtp_InfoSecureStateOff) {
            on_zrtp_update_transport_wrapper(data);
        }
        break;

    case zrtp_Warning:
        PJ_LOG(3,(THIS_FILE, "ZRTP warning message: %s", WarningCodes[subCode]));
        break;

    case zrtp_Severe:
        PJ_LOG(3,(THIS_FILE, "ZRTP severe message: %s", SevereCodes[subCode]));
        break;

    case zrtp_ZrtpError:
        PJ_LOG(3,(THIS_FILE, "ZRTP Error: severity: %d, subcode: %x", sev, subCode));
        break;
    }
}
Esempio n. 2
0
static void showMessage(void* data, int32_t sev, int32_t subCode)
{
	zrtp_cb_user_data* zrtp_data = (zrtp_cb_user_data*) data;
    switch (sev)
    {
    case zrtp_Info:
        PJ_LOG(3,(THIS_FILE, "ZRTP info message: %s", InfoCodes[subCode]));
        if(subCode == zrtp_InfoSecureStateOn
        		|| subCode == zrtp_InfoSecureStateOff){
        	if(zrtp_data != NULL){
        		on_zrtp_update_transport_wrapper(zrtp_data->call_id);
        	}else{
        		PJ_LOG(1, (THIS_FILE, "Got a message without associated call_id"));
        	}
        }
        break;

    case zrtp_Warning:
        PJ_LOG(3,(THIS_FILE, "ZRTP warning message: %s", WarningCodes[subCode]));
        break;

    case zrtp_Severe:
        PJ_LOG(3,(THIS_FILE, "ZRTP severe message: %s", SevereCodes[subCode]));
        break;

    case zrtp_ZrtpError:
        PJ_LOG(1,(THIS_FILE, "ZRTP Error: subcode: %d", subCode));
        break;
    }
}
Esempio n. 3
0
static void zrtpSecureOff(void* data) {
    on_zrtp_update_transport_wrapper(data);
}
Esempio n. 4
0
static void zrtpSecureOn(void* data, char* cipher) {
    zrtp_cb_user_data* zrtp_data = (zrtp_cb_user_data*) data;
    pj_strdup2_with_null(css_var.pool, &zrtp_data->cipher, cipher);
    on_zrtp_update_transport_wrapper(data);
}
Esempio n. 5
0
static void zrtpSecureOff(void* data){
	zrtp_cb_user_data* zrtp_data = (zrtp_cb_user_data*) data;
	on_zrtp_update_transport_wrapper(zrtp_data->call_id);
}