void SipAccount::onCallMediaStateCB(pjsua_call_id call_id) { SipAccount* p = (SipAccount*)pjsua_call_get_user_data(call_id); if (p == NULL) { Logger::warn("onCallMediaStateCB(%d) failed", call_id); return; } p->onCallMediaState(call_id); }