精通
英语
和
开源
,
擅长
开发
与
培训
,
胸怀四海
第一信赖
锐英源精品开源心得,转载请注明:“锐英源www.wisestudy.cn,孙老师作品,电话13803810136。微信号ryysoft”需要全文内容或开源服务请联系孙老师。
Hi Fadi,
first things first: That is a great Article. Well done! Espcially since it is pretty hard to find a good documentation for the LSR.NET.RTP.
文章很好。特别是在LSR.NET.RPT的文档不好找的情况下。
Now my question:
I'm trying to use the MSR.LSR.NET.RTP.dll in a small VoIP Client, coded in C#. My problem is: Im not able to receive RTP Data. Here's what i'm doing:我的问题:我尝试在一个小的VoIP客户端里使用MSR.LSR.NET.RTP.DLL,语言是C#。问题是我不能接收到RTP数据。下面是我的实现步骤:
-I initialize a VoIP Session via SIP / SDP. The Counterpart is the SIP Server of an random VoIP Provider. Everything is working fine up to this point. The Server is now sending RTP Packets to my PC on Port 5062.我通过SIP/SDP初始化VoIP事件。计数部分是随机VoIP供应端的SIP服务器。此步骤一切正常。服务器下面发送RTP包到我的PC,发到端口5062.
And this is where i'm stuck. I've setup a RTPSession with the follwing IPEndpoint: 这里卡住了。我用如下方式设置了RTPSession:
new IPEndPoint(IPAddress("192.168.0.118"),5062);
192.168.0.118 is the IPV4 Address of my PC where the VoIP Server is sending the packets to.是IPV4地址,是VoIP服务器发送包到的地址。
But i don't get the FrameReceived Event in my Programm. I'm using pretty much your code for the RTP-Part of the program.但我收不到FrameReceived事件。我就是按照你的RTP部分的代码来同样实现的。
Thanks in advance.
Michael
Hello Michael,
The FrameReceived event depends on add new RTP Session for this reason to get the event the sender must first join to your RTP session. anyway this technique is useful in multicasting but in your case you have to use the RtpListener itself without associate with the RTPSession... FrameReceived依赖于新加的RTP事务,因为此原因,你要先加入RTP事务里。不管怎样,这个技术在多播里有用,但在你的案例里,你必须使用RtpListener,也不要关联RTPSession。
What RTPListener? I can't find any class named RTPListener.我找不到RTPListener
Thank you,
ALen