Webrtc wrong codec chosen

Dear community,

I don’t understand why, in webrtc, asterisk send the video profile codec profile-level-id=640C1F to the caller whereas the callee doesn’t support this profile-level-id. Result the video doesn’t work.

here sdp trace :




<--- Received SIP request (7858 bytes) from WSS:xx.xx.xx.xx:36114 --->
INVITE sip:10000014021@xxxxx.xx SIP/2.0
Via: SIP/2.0/WSS wvu7jvvd55fx.invalid;branch=z9hG4bK6527244
Max-Forwards: 69
To: <sip:10000014021@xxxxx.xx>
From: "Monsieur xxxxx" <sip:10000014022@xxxxx.xx>;tag=5urkqnt91l
Call-ID: kt3a7bqhr0akar4fu6hl
CSeq: 9722 INVITE
X-Greeting: Nice to see you!
Contact: <sip:10000014022@wvu7jvvd55fx.invalid;transport=ws;ob>
Content-Type: application/sdp
Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY,SUBSCRIBE
Supported: ice,replaces,outbound
User-Agent: AudioCodes WebRTC SDK. Single call phone prototype 1.17.0 dev Chrome/101
Content-Length: 7194

v=0
o=- 6455596391511804770 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0 1
a=extmap-allow-mixed
a=msid-semantic: WMS cz5810FBFxSybykwfCjD2n6XJsRsXgI88y3C
m=audio 50848 UDP/TLS/RTP/SAVPF 111 63 103 104 9 0 8 106 105 13 110 112 113 126
c=IN IP4 xx.xx.xx.xx
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:4137710139 1 udp 2122262783 2a01:cb1d:8b43:ab00:4781:78d9:8cff:b6b4 49664 typ host generation 0 network-id 2
a=candidate:829852397 1 udp 2122194687 xx.xx.xx.xx 50848 typ host generation 0 network-id 1
a=candidate:2793065197 1 udp 2122129151 xx.xx.xx.xx 54344 typ host generation 0 network-id 3
a=candidate:3089338059 1 tcp 1518283007 2a01:cb1d:8b43:ab00:4781:78d9:8cff:b6b4 9 typ host tcptype active generation 0 network-id 2
a=candidate:2146792989 1 tcp 1518214911 xx.xx.xx.xx 9 typ host tcptype active generation 0 network-id 1
a=candidate:3908646429 1 tcp 1518149375 xx.xx.xx.xx 9 typ host tcptype active generation 0 network-id 3
a=ice-ufrag:wGCf
a=ice-pwd:HrLL0S5MV1SQ8uQLTERvnOqG
a=ice-options:trickle
a=fingerprint:sha-256 00:41:FB:10:1A:5B:22:AB:E2:93:07:11:18:F0:A1:72:F4:55:3C:5D:70:3C:35:41:FB:1A:60:AA:44:3C:68:D1
a=setup:actpass
a=mid:0
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=sendrecv
a=msid:cz5810FBFxSybykwfCjD2n6XJsRsXgI88y3C cac2d823-e9b6-48c7-b6e4-c43fa297e9f8
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:63 red/48000/2
a=fmtp:63 111/111
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:112 telephone-event/32000
a=rtpmap:113 telephone-event/16000
a=rtpmap:126 telephone-event/8000
a=ssrc:3000180014 cname:72PbnIS6varWz96I
a=ssrc:3000180014 msid:cz5810FBFxSybykwfCjD2n6XJsRsXgI88y3C cac2d823-e9b6-48c7-b6e4-c43fa297e9f8
a=ssrc:3000180014 mslabel:cz5810FBFxSybykwfCjD2n6XJsRsXgI88y3C
a=ssrc:3000180014 label:cac2d823-e9b6-48c7-b6e4-c43fa297e9f8
m=video 53903 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 127 121 125 107 108 109 124 120 123 119 35 36 41 42 114 115 116
c=IN IP4 xx.xx.xx.xx
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:4137710139 1 udp 2122262783 2a01:cb1d:8b43:ab00:4781:78d9:8cff:b6b4 49674 typ host generation 0 network-id 2
a=candidate:829852397 1 udp 2122194687 xx.xx.xx.xx 53903 typ host generation 0 network-id 1
a=candidate:2793065197 1 udp 2122129151 xx.xx.xx.xx 50108 typ host generation 0 network-id 3
a=candidate:3089338059 1 tcp 1518283007 2a01:cb1d:8b43:ab00:4781:78d9:8cff:b6b4 9 typ host tcptype active generation 0 network-id 2
a=candidate:2146792989 1 tcp 1518214911 xx.xx.xx.xx 9 typ host tcptype active generation 0 network-id 1
a=candidate:3908646429 1 tcp 1518149375 xx.xx.xx.xx 9 typ host tcptype active generation 0 network-id 3
a=ice-ufrag:wGCf
a=ice-pwd:HrLL0S5MV1SQ8uQLTERvnOqG
a=ice-options:trickle
a=fingerprint:sha-256 00:41:FB:10:1A:5B:22:AB:E2:93:07:11:18:F0:A1:72:F4:55:3C:5D:70:3C:35:41:FB:1A:60:AA:44:3C:68:D1
a=setup:actpass
a=mid:1
a=extmap:14 urn:ietf:params:rtp-hdrext:toffset
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:13 urn:3gpp:video-orientation
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:5 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
a=extmap:8 http://www.webrtc.org/experiments/rtp-hdrext/color-space
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:10 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:11 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=sendrecv
a=msid:cz5810FBFxSybykwfCjD2n6XJsRsXgI88y3C 4decca88-eebc-4b39-889d-0b3dd30a23f5
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:96 VP8/90000
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=rtpmap:98 VP9/90000
a=rtcp-fb:98 goog-remb
a=rtcp-fb:98 transport-cc
a=rtcp-fb:98 ccm fir
a=rtcp-fb:98 nack
a=rtcp-fb:98 nack pli
a=fmtp:98 profile-id=0
a=rtpmap:99 rtx/90000
a=fmtp:99 apt=98
a=rtpmap:100 VP9/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=fmtp:100 profile-id=2
a=rtpmap:101 rtx/90000
a=fmtp:101 apt=100
a=rtpmap:127 H264/90000
a=rtcp-fb:127 goog-remb
a=rtcp-fb:127 transport-cc
a=rtcp-fb:127 ccm fir
a=rtcp-fb:127 nack
a=rtcp-fb:127 nack pli
a=fmtp:127 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f
a=rtpmap:121 rtx/90000
a=fmtp:121 apt=127
a=rtpmap:125 H264/90000
a=rtcp-fb:125 goog-remb
a=rtcp-fb:125 transport-cc
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=42001f
a=rtpmap:107 rtx/90000
a=fmtp:107 apt=125
a=rtpmap:108 H264/90000
a=rtcp-fb:108 goog-remb
a=rtcp-fb:108 transport-cc
a=rtcp-fb:108 ccm fir
a=rtcp-fb:108 nack
a=rtcp-fb:108 nack pli
a=fmtp:108 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtpmap:109 rtx/90000
a=fmtp:109 apt=108
a=rtpmap:124 H264/90000
a=rtcp-fb:124 goog-remb
a=rtcp-fb:124 transport-cc
a=rtcp-fb:124 ccm fir
a=rtcp-fb:124 nack
a=rtcp-fb:124 nack pli
a=fmtp:124 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f
a=rtpmap:120 rtx/90000
a=fmtp:120 apt=124
a=rtpmap:123 H264/90000
a=rtcp-fb:123 goog-remb
a=rtcp-fb:123 transport-cc
a=rtcp-fb:123 ccm fir
a=rtcp-fb:123 nack
a=rtcp-fb:123 nack pli
a=fmtp:123 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=4d001f
a=rtpmap:119 rtx/90000
a=fmtp:119 apt=123
a=rtpmap:35 H264/90000
a=rtcp-fb:35 goog-remb
a=rtcp-fb:35 transport-cc
a=rtcp-fb:35 ccm fir
a=rtcp-fb:35 nack
a=rtcp-fb:35 nack pli
a=fmtp:35 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=4d001f
a=rtpmap:36 rtx/90000
a=fmtp:36 apt=35
a=rtpmap:41 AV1/90000
a=rtcp-fb:41 goog-remb
a=rtcp-fb:41 transport-cc
a=rtcp-fb:41 ccm fir
a=rtcp-fb:41 nack
a=rtcp-fb:41 nack pli
a=rtpmap:42 rtx/90000
a=fmtp:42 apt=41
a=rtpmap:114 red/90000
a=rtpmap:115 rtx/90000
a=fmtp:115 apt=114
a=rtpmap:116 ulpfec/90000
a=ssrc-group:FID 1866137202 2514305937
a=ssrc:1866137202 cname:72PbnIS6varWz96I
a=ssrc:1866137202 msid:cz5810FBFxSybykwfCjD2n6XJsRsXgI88y3C 4decca88-eebc-4b39-889d-0b3dd30a23f5
a=ssrc:1866137202 mslabel:cz5810FBFxSybykwfCjD2n6XJsRsXgI88y3C
a=ssrc:1866137202 label:4decca88-eebc-4b39-889d-0b3dd30a23f5
a=ssrc:2514305937 cname:72PbnIS6varWz96I
a=ssrc:2514305937 msid:cz5810FBFxSybykwfCjD2n6XJsRsXgI88y3C 4decca88-eebc-4b39-889d-0b3dd30a23f5
a=ssrc:2514305937 mslabel:cz5810FBFxSybykwfCjD2n6XJsRsXgI88y3C
a=ssrc:2514305937 label:4decca88-eebc-4b39-889d-0b3dd30a23f5

<--- Received SIP response (5959 bytes) from WSS:xx.xx.xx.xx:62161 --->
SIP/2.0 200 OK
Via: SIP/2.0/WSS xx.xx.xx.xx:8089;rport;branch=z9hG4bKPj78661a36-38aa-4799-b9a7-ed6e05f40d3e;alias
To: <sip:10000014021@xx.xx.xx.xx>;tag=flmd8092ql
From: "Monsieur xxxxx" <sip:10000014022@VISIO2>;tag=30cfed14-3108-4499-8f9b-eb9cf66bc1f0
Call-ID: 5a348ceb-14a1-4118-8c14-6d881a44b58d
CSeq: 28724 INVITE
Contact: <sip:10000014021@fwutry2sdam2.invalid;transport=ws>
X-Greeting: You are welcome !
Supported: ice,replaces,outbound
Content-Type: application/sdp
Content-Length: 5439

v=0
o=- 6360304478986527016 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0 1
a=extmap-allow-mixed
a=msid-semantic: WMS 898eec17-3327-440a-aed1-d544da7bd145
m=video 59113 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 102 125 104 124 106 107 108 109 127
c=IN IP4 xx.xx.xx.xx
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:3892024601 1 udp 2122260223 xx.xx.xx.xx 59113 typ host generation 0 network-id 1 network-cost 50
a=candidate:2843240937 1 tcp 1518280447 xx.xx.xx.xx 9 typ host tcptype active generation 0 network-id 1 network-cost 50
a=ice-ufrag:9IiJ
a=ice-pwd:bXapT6KbmmeGVM9v7YafoSpF
a=ice-options:trickle
a=fingerprint:sha-256 F0:1B:1B:2A:BF:A4:65:C4:C1:7C:C9:01:26:04:73:03:ED:E6:0E:C4:0A:EB:9F:E9:B3:B0:C4:28:7A:6D:5F:8F
a=setup:actpass
a=mid:0
a=extmap:1 urn:ietf:params:rtp-hdrext:toffset
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:3 urn:3gpp:video-orientation
a=extmap:4 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:5 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
a=extmap:8 http://www.webrtc.org/experiments/rtp-hdrext/color-space
a=extmap:9 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:10 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:11 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=sendrecv
a=msid:898eec17-3327-440a-aed1-d544da7bd145 410cfcb8-47e4-4004-a002-292f8c483fbe
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:96 H264/90000
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=fmtp:96 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=640c1f
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=rtpmap:98 H264/90000
a=rtcp-fb:98 goog-remb
a=rtcp-fb:98 transport-cc
a=rtcp-fb:98 ccm fir
a=rtcp-fb:98 nack
a=rtcp-fb:98 nack pli
a=fmtp:98 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtpmap:99 rtx/90000
a=fmtp:99 apt=98
a=rtpmap:100 H264/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=fmtp:100 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=640c1f
a=rtpmap:101 rtx/90000
a=fmtp:101 apt=100
a=rtpmap:102 H264/90000
a=rtcp-fb:102 goog-remb
a=rtcp-fb:102 transport-cc
a=rtcp-fb:102 ccm fir
a=rtcp-fb:102 nack
a=rtcp-fb:102 nack pli
a=fmtp:102 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f
a=rtpmap:125 rtx/90000
a=fmtp:125 apt=102
a=rtpmap:104 VP8/90000
a=rtcp-fb:104 goog-remb
a=rtcp-fb:104 transport-cc
a=rtcp-fb:104 ccm fir
a=rtcp-fb:104 nack
a=rtcp-fb:104 nack pli
a=rtpmap:124 rtx/90000
a=fmtp:124 apt=104
a=rtpmap:106 VP9/90000
a=rtcp-fb:106 goog-remb
a=rtcp-fb:106 transport-cc
a=rtcp-fb:106 ccm fir
a=rtcp-fb:106 nack
a=rtcp-fb:106 nack pli
a=fmtp:106 profile-id=0
a=rtpmap:107 rtx/90000
a=fmtp:107 apt=106
a=rtpmap:108 red/90000
a=rtpmap:109 rtx/90000
a=fmtp:109 apt=108
a=rtpmap:127 ulpfec/90000
a=ssrc-group:FID 1458737135 3070731813
a=ssrc:1458737135 cname:fZLgTwV8Ja/COPHp
a=ssrc:1458737135 msid:898eec17-3327-440a-aed1-d544da7bd145 410cfcb8-47e4-4004-a002-292f8c483fbe
a=ssrc:1458737135 mslabel:898eec17-3327-440a-aed1-d544da7bd145
a=ssrc:1458737135 label:410cfcb8-47e4-4004-a002-292f8c483fbe
a=ssrc:3070731813 cname:fZLgTwV8Ja/COPHp
a=ssrc:3070731813 msid:898eec17-3327-440a-aed1-d544da7bd145 410cfcb8-47e4-4004-a002-292f8c483fbe
a=ssrc:3070731813 mslabel:898eec17-3327-440a-aed1-d544da7bd145
a=ssrc:3070731813 label:410cfcb8-47e4-4004-a002-292f8c483fbe
m=audio 63658 UDP/TLS/RTP/SAVPF 111 63 103 9 0 8 105 13 110 113 126
c=IN IP4 xx.xx.xx.xx
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:3892024601 1 udp 2122260223 xx.xx.xx.xx 63658 typ host generation 0 network-id 1 network-cost 50
a=candidate:2843240937 1 tcp 1518280447 xx.xx.xx.xx 9 typ host tcptype active generation 0 network-id 1 network-cost 50
a=ice-ufrag:9IiJ
a=ice-pwd:bXapT6KbmmeGVM9v7YafoSpF
a=ice-options:trickle
a=fingerprint:sha-256 F0:1B:1B:2A:BF:A4:65:C4:C1:7C:C9:01:26:04:73:03:ED:E6:0E:C4:0A:EB:9F:E9:B3:B0:C4:28:7A:6D:5F:8F
a=setup:actpass
a=mid:1
a=extmap:14 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:4 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:9 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:10 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:11 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=sendrecv
a=msid:898eec17-3327-440a-aed1-d544da7bd145 4553d826-7a32-4367-b380-a5e151d50d53
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:63 red/48000/2
a=fmtp:63 111/111
a=rtpmap:103 ISAC/16000
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:113 telephone-event/16000
a=rtpmap:126 telephone-event/8000
a=ssrc:1516619945 cname:fZLgTwV8Ja/COPHp
a=ssrc:1516619945 msid:898eec17-3327-440a-aed1-d544da7bd145 4553d826-7a32-4367-b380-a5e151d50d53
a=ssrc:1516619945 mslabel:898eec17-3327-440a-aed1-d544da7bd145
a=ssrc:1516619945 label:4553d826-7a32-4367-b380-a5e151d50d53

<--- Transmitting SIP request (2171 bytes) to WSS:xx.xx.xx.xx:62161 --->
ACK sip:10000014021@xx.xx.xx.xx:62161;transport=ws SIP/2.0
Via: SIP/2.0/WSS xx.xx.xx.xx:8089;rport;branch=z9hG4bKPj07aef71f-6347-4846-b2fe-f1a35577b095;alias
From: "Monsieur xxxxx" <sip:10000014022@VISIO2>;tag=e0642cfb-2976-4b2a-90a7-71f567145d47
To: <sip:10000014021@xx.xx.xx.xx>;tag=vo6m13vrdj
Call-ID: b61a4de6-1aa0-4c41-bc58-235eae700d67
CSeq: 3535 ACK
Max-Forwards: 70
User-Agent: Asterisk PBX
Content-Type: application/sdp
Content-Length:  1692

v=0
o=- 3581938993 4 IN IP4 xx.xx.xx.xx
s=Asterisk
c=IN IP4 xx.xx.xx.xx
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE 0 1
m=audio 18728 UDP/TLS/RTP/SAVPF 111 126
a=connection:new
a=setup:active
a=fingerprint:SHA-256 61:32:C2:2D:BF:00:61:58:8C:8F:13:10:CB:3D:0F:A4:4C:CA:2E:55:08:23:85:34:1B:86:AF:77:3B:CD:D4:9F
a=ice-ufrag:43bcd479080776fd72a029ca356482a3
a=ice-pwd:4794d13e3f0245d4078b751e5be076b2
a=candidate:H3353712f 1 UDP 2130706431 xx.xx.xx.xx 18728 typ host
a=candidate:Hc0a800d3 1 UDP 2130706431 192.168.0.211 18728 typ host
a=rtpmap:111 opus/48000/2
a=fmtp:111 useinbandfec=1
a=rtpmap:126 telephone-event/8000
a=fmtp:126 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
a=rtcp-mux
a=ssrc:1458888743 cname:b0cb46f3-76f5-4e73-b067-4856b39e9e6d
a=msid:bc0a5fe0-744a-4407-b682-f79c07d36664 68207ee8-be87-47c1-81cc-2d2b7ef30409
a=rtcp-fb:* transport-cc
a=mid:0
m=video 18728 UDP/TLS/RTP/SAVPF 96
a=connection:new
a=setup:active
a=fingerprint:SHA-256 61:32:C2:2D:BF:00:61:58:8C:8F:13:10:CB:3D:0F:A4:4C:CA:2E:55:08:23:85:34:1B:86:AF:77:3B:CD:D4:9F
a=ice-ufrag:43bcd479080776fd72a029ca356482a3
a=ice-pwd:4794d13e3f0245d4078b751e5be076b2
a=sendrecv
a=rtcp-mux
a=ssrc:1179803373 cname:bb4c7a4e-8113-4186-a8f2-10938672ac0d
a=msid:d2ad3f86-296e-4bb7-b7e5-c18682d49de7 1eec696a-67a9-41bb-b6a7-f15eb26cd978
a=rtcp-fb:* transport-cc
a=rtcp-fb:* ccm fir
a=rtcp-fb:* goog-remb
a=rtcp-fb:* nack
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=mid:1
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;level-asymmetry-allowed=1;profile-level-id=640C1F

    -- PJSIP/10000014021-0000001b answered PJSIP/10000014022-00000018
<--- Transmitting SIP response (2434 bytes) to WSS:xx.xx.xx.xx:36114 --->
SIP/2.0 200 OK
Via: SIP/2.0/WSS wvu7jvvd55fx.invalid;rport=36114;received=xx.xx.xx.xx;branch=z9hG4bK8422122
Call-ID: kt3a7bqhr0akar4fu6hl
From: "Monsieur xxxxx" <sip:10000014022@xxxxx.xx>;tag=5urkqnt91l
To: <sip:10000014021@xxxxx.xx>;tag=5ebb132a-bbb8-4431-b4e7-29aee1fca792
CSeq: 9723 INVITE
Server: Asterisk PBX
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REFER, MESSAGE
Contact: <sip:xx.xx.xx.xx:8089;transport=ws>
Supported: 100rel, timer, replaces, norefersub
Content-Type: application/sdp
Content-Length:  1817

v=0
o=- 22727522 4 IN IP4 xx.xx.xx.xx
s=Asterisk
c=IN IP4 xx.xx.xx.xx
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE 0 1
m=audio 14486 UDP/TLS/RTP/SAVPF 0 8 9 111 126
a=connection:new
a=setup:active
a=fingerprint:SHA-256 61:32:C2:2D:BF:00:61:58:8C:8F:13:10:CB:3D:0F:A4:4C:CA:2E:55:08:23:85:34:1B:86:AF:77:3B:CD:D4:9F
a=ice-ufrag:0c40ff1a10fe742d19e65eef73cae205
a=ice-pwd:5742aab023723927759c6f302ea754a2
a=candidate:H3353712f 1 UDP 2130706431 xx.xx.xx.xx 14486 typ host
a=candidate:Hc0a800d3 1 UDP 2130706431 192.168.0.211 14486 typ host
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:111 opus/48000/2
a=fmtp:111 useinbandfec=1
a=rtpmap:126 telephone-event/8000
a=fmtp:126 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
a=rtcp-mux
a=ssrc:2040848830 cname:5390670c-60ad-447a-8fc6-4b284194650b
a=msid:acb44240-496f-412f-afdf-14cf88d7a7dd d6edf41c-2c3a-407e-822b-e66daf2698c8
a=rtcp-fb:* transport-cc
a=mid:0
m=video 14486 UDP/TLS/RTP/SAVPF 127 96 98
a=connection:new
a=setup:active
a=fingerprint:SHA-256 61:32:C2:2D:BF:00:61:58:8C:8F:13:10:CB:3D:0F:A4:4C:CA:2E:55:08:23:85:34:1B:86:AF:77:3B:CD:D4:9F
a=ice-ufrag:0c40ff1a10fe742d19e65eef73cae205
a=ice-pwd:5742aab023723927759c6f302ea754a2
a=rtpmap:127 H264/90000
a=fmtp:127 packetization-mode=1;level-asymmetry-allowed=1;profile-level-id=42001F
a=rtpmap:96 VP8/90000
a=rtpmap:98 VP9/90000
a=sendrecv
a=rtcp-mux
a=ssrc:1258324446 cname:536bf6b4-1262-4ac3-965d-010f8ca56e89
a=msid:acb44240-496f-412f-afdf-14cf88d7a7dd 7390eac4-51cf-43c9-a1f6-a770e5cb01f1
a=rtcp-fb:* transport-cc
a=rtcp-fb:* ccm fir
a=rtcp-fb:* goog-remb
a=rtcp-fb:* nack
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=mid:1

Asterisk does not currently support multiple SDP entries for the same codec with different attributes. It supports only one. It also doesn’t currently supporting relaying the attribute information back from the answered side.

Thanks for your reply jcolp,

But when the asterisk core merges the codec lists, shouldn’t it be merged with the profile-id to send a codec with the same attributes to the caller and callee ?

Ideally it would be nice, but that isn’t currently supported.

It might need to do a re-INVITE for that, as the caller can be answered even before there has been any interaction with the callee.

Do you plan to do this in a future release?

Potentially.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.