Giter VIP home page Giter VIP logo

Comments (2)

heshouyong avatar heshouyong commented on June 14, 2024 1

@Odinvt thx!

RFC 8839https://datatracker.ietf.org/doc/html/rfc8839#name-ice-ufrag-and-ice-pwd-attri

The "ice-pwd" and "ice-ufrag" attributes can appear at either the session-level or media-level. When present in both, the value in the media-level takes precedence. Thus, the value at the session-level is effectively a default that applies to all data streams, unless overridden by a media-level value. Whether present at the session or media-level, there MUST be an "ice-pwd" and "ice-ufrag" attribute for each data stream. If two data streams have identical "ice-ufrag"s, they MUST have identical "ice-pwd"s.

Freeswitch + jssip works.

sdp offer:

v=0
o=FreeSWITCH 1701613161 1701613162 IN IP4 47.113.xxx.xxx
s=FreeSWITCH
c=IN IP4 47.113.xxx.xxx
t=0 0
a=msid-semantic: WMS gqct7TD05FQAZOOBwWw05vT4fq7gcLoi
m=audio 63598 RTP/SAVPF 102 8 0 103 101
a=rtpmap:102 opus/48000/2
a=fmtp:102 useinbandfec=1; maxaveragebitrate=30000; maxplaybackrate=48000; ptime=20; minptime=10; maxptime=40; stereo=1
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:103 telephone-event/48000
a=rtpmap:101 telephone-event/8000
a=fingerprint:sha-256 CE:1C:DE:82:4F:DD:D2:9A:00:F7:CC:BB:58:52:57:F8:0F:A4:75:74:C8:97:04:7C:F1:C0:5F:A6:28:78:4B:07
a=setup:actpass
a=rtcp-mux
a=rtcp:63598 IN IP4 47.113.xxx.xxx
a=ssrc:3984245743 cname:2qCZa5P5Awvqa9Rx
a=ssrc:3984245743 msid:gqct7TD05FQAZOOBwWw05vT4fq7gcLoi a0
a=ssrc:3984245743 mslabel:gqct7TD05FQAZOOBwWw05vT4fq7gcLoi
a=ssrc:3984245743 label:gqct7TD05FQAZOOBwWw05vT4fq7gcLoia0
a=ice-ufrag:WdnRy7LEnJKpkZyc
a=ice-pwd:g02gVIbl4wB5wisimG0LDCfR
a=candidate:7967151544 1 udp 2130706431 47.113.xxx.xxx 63598 typ host generation 0
a=candidate:7967151544 2 udp 2130706431 47.113.xxx.xxx 63598 typ host generation 0
a=ptime:20
m=video 64898 RTP/SAVPF 125 120
b=AS:3072
a=rtpmap:125 H264/90000
a=fmtp:125 profile-level-id=42801E;packetization-mode=0
a=rtpmap:120 VP8/90000
a=fingerprint:sha-256 CE:1C:DE:82:4F:DD:D2:9A:00:F7:CC:BB:58:52:57:F8:0F:A4:75:74:C8:97:04:7C:F1:C0:5F:A6:28:78:4B:07
a=setup:actpass
a=rtcp-mux
a=rtcp:64898 IN IP4 47.113.xxx.xxx
a=rtcp-fb:125 ccm fir
a=rtcp-fb:125 ccm tmmbr
a=rtcp-fb:125 nack
a=rtcp-fb:125 nack pli
a=rtcp-fb:120 ccm fir
a=rtcp-fb:120 ccm tmmbr
a=rtcp-fb:120 nack
a=rtcp-fb:120 nack pli
a=ssrc:3133429099 cname:2qCZa5P5Awvqa9Rx
a=ssrc:3133429099 msid:gqct7TD05FQAZOOBwWw05vT4fq7gcLoi v0
a=ssrc:3133429099 mslabel:gqct7TD05FQAZOOBwWw05vT4fq7gcLoi
a=ssrc:3133429099 label:gqct7TD05FQAZOOBwWw05vT4fq7gcLoiv0
a=ice-ufrag:HSojCjoIN4pOhl2e
a=ice-pwd:hoBuqJ3u1YJjkEUSn81QhfoU
a=candidate:1710108620 1 udp 2130706431 47.113.xxx.xxx 64898 typ host generation 0
a=candidate:1710108620 2 udp 2130706430 47.113.xxx.xxx 64898 typ host generation 0
a=end-of-candidates

sdp answer:
v=0
o=- 7356779784958511773 2 IN IP4 127.0.0.1
s=-
t=0 0
a=msid-semantic: WMS 507fe75a-6cb9-46d8-b12e-2f304e1013c6
m=audio 56724 RTP/SAVPF 102 8 0 103 101
c=IN IP4 172.17.0.1
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:1779298220 1 udp 2122260223 172.17.0.1 56724 typ host generation 0 network-id 1
a=candidate:228680011 1 udp 2122194687 192.168.2.8 52162 typ host generation 0 network-id 2
a=candidate:4095402675 1 udp 2122129151 192.168.4.64 58715 typ host generation 0 network-id 3
a=candidate:348261684 1 tcp 1518280447 172.17.0.1 9 typ host tcptype active generation 0 network-id 1
a=candidate:1936622547 1 tcp 1518214911 192.168.2.8 9 typ host tcptype active generation 0 network-id 2
a=candidate:2329215019 1 tcp 1518149375 192.168.4.64 9 typ host tcptype active generation 0 network-id 3
a=ice-ufrag:Vu1L
a=ice-pwd:ZPAqpgF0QluaTwFjawE7HXdd
a=ice-options:trickle
a=fingerprint:sha-256 23:71:4B:62:E7:42:73:ED:EE:8F:7E:1B:CE:CB:DC:1A:70:D1:10:29:9A:EB:29:BF:D7:B8:0A:EF:98:D4:4E:62
a=setup:active
a=mid:0
a=sendrecv
a=rtcp-mux
a=rtpmap:102 opus/48000/2
a=fmtp:102 minptime=10;useinbandfec=1
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:103 telephone-event/48000
a=rtpmap:101 telephone-event/8000
a=ssrc:3644385866 cname:R7MO1wEI320p8m2k
a=ssrc:3644385866 msid:507fe75a-6cb9-46d8-b12e-2f304e1013c6 63e53d0e-0c33-40a8-9240-7dd4a66467a8
m=video 56927 RTP/SAVPF 125 120
c=IN IP4 172.17.0.1
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:1779298220 1 udp 2122260223 172.17.0.1 56927 typ host generation 0 network-id 1
a=candidate:228680011 1 udp 2122194687 192.168.2.8 33534 typ host generation 0 network-id 2
a=candidate:4095402675 1 udp 2122129151 192.168.4.64 59521 typ host generation 0 network-id 3
a=candidate:348261684 1 tcp 1518280447 172.17.0.1 9 typ host tcptype active generation 0 network-id 1
a=candidate:1936622547 1 tcp 1518214911 192.168.2.8 9 typ host tcptype active generation 0 network-id 2
a=candidate:2329215019 1 tcp 1518149375 192.168.4.64 9 typ host tcptype active generation 0 network-id 3
a=ice-ufrag:Q82i
a=ice-pwd:ntFOIeqZmCnwAahlxCUP1wXP
a=ice-options:trickle
a=fingerprint:sha-256 23:71:4B:62:E7:42:73:ED:EE:8F:7E:1B:CE:CB:DC:1A:70:D1:10:29:9A:EB:29:BF:D7:B8:0A:EF:98:D4:4E:62
a=setup:active
a=mid:1
a=sendrecv
a=rtcp-mux
a=rtpmap:125 H264/90000
a=rtcp-fb:125 ccm fir
a=rtcp-fb:125 nack
a=rtcp-fb:125 nack pli
a=fmtp:125 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42001e
a=rtpmap:120 VP8/90000
a=rtcp-fb:120 ccm fir
a=rtcp-fb:120 nack
a=rtcp-fb:120 nack pli
a=ssrc:1724314962 cname:R7MO1wEI320p8m2k
a=ssrc:1724314962 msid:507fe75a-6cb9-46d8-b12e-2f304e1013c6 2a369e8f-9352-4127-b382-f30996c42d1e

from webrtc.

Odinvt avatar Odinvt commented on June 14, 2024

@heshouyong I'm not sure FreeSwitch Verto supports WebRTC Bundling. And Pion for sure doesn't support unbundled WebRTC for now.

I suggest you switch to Asterisk as they introduced WebRTC Bundling capabilities as of version 15 a couple of years ago.

If your use case relies on FreeSwitch transcoding capabilities, that is not available in Asterisk. You will have to do the transcoding yourself. Even if you do, for Pion to accept your offer, #2621 would need to be solved, or you can use my workaround here #2621 (comment) .

If you really need FreeSwitch, then you're out of luck with Pion, I suggest you switch libraries.

from webrtc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.