简体   繁体   English

监管如何通过代理服务器发送RTP数据包

[英]Reg how to send the RTP packets through the proxy server

I am using the pjproject1.6 and I could send the sip packets through the sip packets to the proxy server and the rtp packets or not pass through the server. 我正在使用pjproject1.6,可以通过sip数据包将sip数据包发送到代理服务器和rtp数据包,也可以不通过服务器。 Hence the voice could not be heard on both sides. 因此,双方都无法听到声音。

I have checked in proxy server, rtp proxy is running and when proxy server sends 200 Ok, the SDP packets from PJSIP includes the IP address of the proxy server. 我已经检查了代理服务器,rtp代理正在运行,当代理服务器发送200 Ok时,来自PJSIP的SDP数据包包括代理服务器的IP地址。

Still the sound/media are not transmitted to both PJMedia client and reciever. 声音/媒体仍然不会同时传输到PJMedia客户端和接收者。 I have tested the same scenario with the yate client, audio/media is heard both on the sender and reciever. 我已经使用yate客户端测试了相同的方案,发送者和接收者都听到了音频/媒体。

Is there any other config/code change that should taken care from PJSIP? 是否还有其他配置/代码更改应通过PJSIP进行处理?

Kindly find the below log trace for the packets that are transmitted/recived from the server 请找到以下从服务器发送/接收的数据包的日志跟踪

Packet sent to server 数据包发送到服务器

INVITE sip:yyyyy@xxxx:5060 SIP/2.0 Via: SIP/2.0/UDP 10.122.15.112:2370;branch=z9hG4bK8b9359940aa1224a09cd8cfa27959d48;rport Max-Forwards: 70 From: ;tag=a604814d1290cc805caf160bdccb9390^M To: Call-ID: 1002437405@xxxx-b2b_1 CSeq: 201 INVITE Contact: Anonymous Expires: 300 User-Agent: Sippy B2BUA (RADIUS) cisco-GUID: 1368145855-893785068-3325200664-2859798416 h323-conf-id: 1368145855-893785068-3325200664-2859798416 Content-Length: 383 Content-Type: application/sdp 邀请sip:yyyyy @ xxxx:5060 SIP / 2.0通过:SIP / 2.0 / UDP 10.122.15.112:2370;branch=z9hG4bK8b9359940aa1224a09cd8cfa27959d48;rport Max-Forwards:70 From:; from = tag = a604814d1290cc8059-M = 100:Mc: xxxx-b2b_1 CSeq:201邀请联系人:匿名到期:300用户代理:Sippy B2BUA(RADIUS)cisco-GUID:1368145855-893785068-3325200664-2859798416 h323-conf-id:1368145855-893785068-3325200664-2859798416内容长度: 383内容类型:application / sdp

v=0 o=- 1290749418547 1290749418547 IN IP4 10.122.15.112 s=SIP Call c=IN IP4 10.122.15.112 t=0 0 m=audio 33564 RTP/AVP 8 11 98 98 101 a=rtpmap:8 PCMA/8000 a=rtpmap:11 L16/8000 a=rtpmap:98 iLBC/8000 a=fmtp:98 mode=20 a=rtpmap:98 iLBC/8000 a=fmtp:98 mode=30 a=rtpmap:101 telephone-event/8000 a=ptime:30 a=nortpproxy:yes v = 0 o =-1290749418547 1290749418547 IN IP4 10.122.15.112 s = SIP呼叫c = IN IP4 10.122.15.112 t = 0 0 m =音频33564 RTP / AVP 8 11 98 98 101 a = rtpmap:8 PCMA / 8000 a = rtpmap:11 L16 / 8000 a = rtpmap:98 iLBC / 8000 a = fmtp:98模式= 20 a = rtpmap:98 iLBC / 8000 a = fmtp:98模式= 30 a = rtpmap:101电话事件/ 8000 a = ptime:30 a = nortpproxy:yes

Packet from xxxx:5060 来自xxxx:5060的数据包

SIP/2.0 200 OK CSeq: 201 INVITE Via: SIP/2.0/UDP 10.122.15.112:2370;branch=z9hG4bK8b9359940aa1224a09cd8cfa27959d48;rport From: ;tag=a604814d1290cc805caf160bdccb9390 Call-ID: 1002437405@213.146.168.52-b2b_1 To: ;tag=2711361009342964732656241 Contact: Content-Type: application/sdp Content-Length: 250 SIP / 2.0 200 OK CSeq:201 INVITE通过:SIP / 2.0 / UDP 10.122.15.112:2370;branch=z9hG4bK8b9359940aa1224a09cd8cfa27959d48;rport from:; tag = a604814d1290cc805caf160bdccb9390 Call-ID:1002437405@213.146联系人:内容类型:application / sdp内容长度:250

v=0 o=VoipSwitch 7240 7240 IN IP4 xxxx s=VoipSIP i=Audio Session c=IN IP4 xxxx t=0 0 m=audio 6240 RTP/AVP 8 101 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=sendrecv v = 0 o = VoipSwitch 7240 7240 IN IP4 xxxx s = VoipSIP i =音频会话c = IN IP4 xxxx t = 0 0 m =音频6240 RTP / AVP 8101 a = rtpmap:8 PCMA / 8000 a = rtpmap:101电话-event / 8000 a = fmtp:101 0-15 a = sendrecv

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM