// Demux the call event to the right PeerConnection static void onCallEvent_m(nsAutoPtr<std::string> peerconnection, ccapi_call_event_e aCallEvent, CSF::CC_CallInfoPtr aInfo) { CSFLogDebug(logTag, "onCallEvent()"); PeerConnectionWrapper pc(peerconnection->c_str()); if (!pc.impl()) // This must be an event on a dead PC. Ignore return; CSFLogDebug(logTag, "Calling PC"); pc.impl()->onCallEvent(OnCallEventArgs(aCallEvent, aInfo)); }