Exemplo n.º 1
0
void SipAccount::onCallStateCB(pjsua_call_id call_id, pjsip_event* e) {
  SipAccount* p = (SipAccount*)pjsua_call_get_user_data(call_id);
  if (p == NULL) {
    Logger::warn("onCallMediaStateCB(call_id=%d) failed", call_id);
    return;
  }
  p->onCallState(call_id, e);
}