cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Walkthrough Wednesdays

Subscribing for media stream events and EpOpenById

500
Views
0
Helpful
0
Comments
This document was generated from CDN thread

Created by: Christoph Mueller on 02-09-2013 09:35:05 AM
Hello community,

is it correct that I have to subscribe to the media stream events prior to calling EpOpenById and EpGetStreamHandle?

And how is this subscription done? I know via lineDevSpecific, but have no idea how to use that.

Maybe you guys can give me a hint

Thanks a lot in advance

Subject: RE: Subscribing for media stream events and EpOpenById
Replied by: denes istvan on 03-09-2013 02:19:30 AM
Hi,

as media stream event subscription all I did was call the EpApiInitDefault method, with a callback function as parameter. In the callback function I get all the media stream events. Also you can set the level of the events you receive with EpApiTraceLevelSet method.

Regards,
Istvan

Subject: RE: Subscribing for media stream events and EpOpenById
Replied by: Christoph Mueller on 03-09-2013 02:47:50 AM
Thank you very much!

So, do I have to wait for any media stream events before I start calling EpOpenById and EpGetStreamHandle or can I just start right after answering the call?

Right now LastError says 16003 after EpApiInit (although it returns True).
And when I answer a call EpOpenById returns a handle without any errors but EpGetStreamHandle says Error 16102.

Sadly these error codes arent't documented anywhere

Subject: RE: Subscribing for media stream events and EpOpenById
Replied by: denes istvan on 03-09-2013 04:20:40 AM
Maybe you should try EpApiInitDefault. I had problems setting up EpApiInit.

What I do is call EpApiInitDefault at application startup, and then when a call gets connected I call EpOpenById and EpGetStreamHandle one after the other and it works.

However after calling EpClose I get the same error code as you do: 16102. I have another forum thread about this, didn't get any response yet

Subject: RE: Subscribing for media stream events and EpOpenById
Replied by: denes istvan on 03-09-2013 05:42:28 AM
I don't think they are mandatory, I don't have them in my registry.

Subject: RE: Subscribing for media stream events and EpOpenById
Replied by: Christoph Mueller on 03-09-2013 05:26:16 AM
When I only use EpApiInitDefault, I don't get a valid handle from EpOpenById

What I found in the trace logs was this:
HKEY_USERS/S-1-5-20\Software\Cisco Systems, Inc.\RTPLib/RTPDefaultAddr: error=0x2(2)
HKEY_USERS/S-1-5-20\Software\Cisco Systems, Inc.\RTPLib/RTPDefaultAddrFamily: error=0x2(2)

Are these values mandatory and what values do you have there?
Content for Community-Ad