sipxCallAudioRecordFileStop is asynchronous call, request is posted into
XCpAbstractCall thread and from there
SipXMediaInterfaceImpl::stopRecording -> MpCallFlowGraph::closeRecorders
is called synchronously. So when sipxCallAudioRecordFileStop returns
recording is not really stopped yet. You shouldn't use sleeps in this
case. XSipConnection::~XSipConnection fires CALLSTATE_DESTROYED event,
which is the last event that can be fired from a call before its memory
is freed. This means if you wait with loading the recording file for
CALLSTATE_DESTROYED, it should always succeed since stopRecording was
definitely processed and finished before that.
Jaro
Daniel Brandur Sigurgeirsson schrieb:
> Dan�el
> --
> You received this message because you are subscribed to the Google
> Groups "sipxtapi" group.
> To post to this group, send email to sipx...@googlegroups.com.
> To unsubscribe from this group, send email to
> sipxtapi+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/sipxtapi?hl=en.