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

发布于 2024-10-03 20:00:02 字数 268 浏览 0 评论 0原文

我使用的是pjproject1.6,我可以通过sip数据包将sip数据包发送到代理服务器,而rtp数据包则可以不通过服务器。所以双方都听不到声音。

我已经检查了代理服务器,rtp代理正在运行,当代理服务器发送200 Ok时,来自PJSIP的SDP数据包包含代理服务器的IP地址。

声音/媒体仍然没有传输到 PJMedia 客户端和接收器。 我已经使用 yate 客户端测试了相同的场景,发送者和接收者都可以听到音频/媒体。

PJSIP 是否需要注意任何其他配置/代码更改?

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. 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.

Still the sound/media are not transmitted to both PJMedia client and reciever.
I have tested the same scenario with the yate client, audio/media is heard both on the sender and reciever.

Is there any other config/code change that should taken care from PJSIP?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

○愚か者の日 2024-10-10 20:00:02

请找到以下日志跟踪,了解从服务器发送/接收的数据包

发送到服务器

INVITE sip 的数据包:[电子邮件受保护]:5060 SIP/2.0
通过:SIP/2.0/UDP 10.122.15.112:2370;branch=z9hG4bK8b9359940aa1224a09cd8cfa27959d48;rport
最大前锋:70
来自:;tag=a604814d1290cc805caf160bdccb9390^M
到:
呼叫 ID:[电子邮件受保护]_1
Cseq:201 邀请
联系人:匿名
过期时间:300
用户代理:Sippy B2BUA (RADIUS)
思科 GUID:1368145855-893785068-3325200664-2859798416
h323-conf-id:1368145855-893785068-3325200664-2859798416
内容长度:383
内容类型:application/sdp

v=0
o=- 1290749418547 1290749418547 IP4 10.122.15.112
s=SIP 呼叫
c=IP4 10.122.15.112
t=0 0
m=音频 33564 RTP/AVP 8 11 98 98 101
a=rtpmap:8PCMA/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=时间:30
a=nortpproxy:yes

来自 xxxx 的数据包:5060

SIP/2.0 200 OK
Cseq:201 邀请
通过:SIP/2.0/UDP 10.122.15.112:2370;branch=z9hG4bK8b9359940aa1224a09cd8cfa27959d48;rport
来自:;tag=a604814d1290cc805caf160bdccb9390
呼叫 ID:[电子邮件受保护]_1
至:;标签=2711361009342964732656241
接触:
内容类型:应用程序/sdp
内容长度:250

v=0
o=VoipSwitch 7240 7240 IN IP4 xxxx
s=VoIPSIP
i=音频会话
c=IN IP4 xxxx
t=0 0
m=音频 6240 RTP/AVP 8 101
a=rtpmap:8PCMA/8000
a=rtpmap:101 电话事件/8000
a=fmtp:101 0-15
a=发送接收

Kindly find the below log trace for the packets that are transmitted/recived from the server

Packet sent to server

INVITE sip:[email protected]: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: [email protected]_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

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

Packet from x.x.x.x: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: [email protected]_1
To: ;tag=2711361009342964732656241
Contact:
Content-Type: application/sdp
Content-Length: 250

v=0
o=VoipSwitch 7240 7240 IN IP4 x.x.x.x
s=VoipSIP
i=Audio Session
c=IN IP4 x.x.x.x
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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文