ladendirekt / pjsip4net

A wrapper library exposing the pjsip library to the .NET world in a OO-friendly way.
71 stars 42 forks source link

Recover audio call after remote hold #26

Closed luisolarte closed 9 years ago

luisolarte commented 9 years ago

Hi Robert

I'm testing your library and i found a problem when the sip server have the reinvite option active, if I put hold in the remote device, the audio call is in silence, and arrive the MediaState.RemoteHold Event in the change status call, but when i remove the hold, the active event don't work and the audio never active again.

I'm grateful with your opinion about the topic, i'm working to resolve it

siniypin commented 9 years ago

Hi @lcop200685,

can you show your config? Is there anything in logs that suggests the problem?

Cheers

luisolarte commented 9 years ago

Hi Robert

I'm using my own class config , it only have this data image code config pjsip4net class

I'm resolve the problem changing the original RemoteHoldMediaState original

to this, It is similar to LocalHoldMediaState changes in remote hold

It wokrs but in this moment, i have a problem with the function call.ReleaseHold() when I put local hold, i'm working in that

luisolarte commented 9 years ago

Hi Robert

The fail of the function call.releaseHold(), is other topic, I'm going to put it in a new Issue,

In this moment the change I've done in the class RemoteHoldMediaState works ok, if you like, i could send you a pull request, in a similar form i've repair other bug with the dispose to the recorder when the remote caller hangup the call

luisolarte commented 9 years ago

The case of the releaseHold function is a mistake mine, i'm sorry, the functions works ok

siniypin commented 9 years ago

I appreciate the work you did, please send your fix and I will merge it.

Cheers