Hi David, thanks for your reply.
Below is the detailed plain text from Wireshark:
Step 1: Phone 1 send invite message to asterisk 16 with SDP (profile-level-id is high profile)
INVITE sip:650001@172.16.1.75 SIP/2.0
Via: SIP/2.0/UDP 172.16.1.217:5072;branch=z9hG4bK921225804;rport
From: "650005" <sip:650005@172.16.1.75>;tag=1232538312
To: <sip:650001@172.16.1.75>
Call-ID: 433826295-5072-6@BHC.BG.B.CBH
CSeq: 51 INVITE
Contact: "650005" <sip:650005@172.16.1.217:5072>
Authorization: Digest username="650005", realm="asterisk", nonce="2218746a", uri="sip:650001@172.16.1.75", response="db89d714cb92b051239d23133f2e4a49", algorithm=MD5
Max-Forwards: 70
User-Agent: Grandstream GXV3275 1.0.3.224
Privacy: none
P-Preferred-Identity: "650005" <sip:650005@172.16.1.75>
P-Access-Network-Info: IEEE-EUI-48;eui-48-addr=00-1D-AA-8C-FE-A0
P-Emergency-Info: IEEE-EUI-48;eui-48-addr=00-0B-82-73-95-82
Supported: replaces, path, timer, eventlist
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Type: application/sdp
Accept: application/sdp, application/dtmf-relay
Content-Length: 506
v=0
o=650005 8000 8000 IN IP4 172.16.1.217
s=SIP Call
c=IN IP4 172.16.1.217
t=0 0
m=audio 5004 RTP/AVP 0 8 101
a=sendrecv
a=rtcp:5005 IN IP4 172.16.1.217
a=rtpmap:0 PCMU/8000
a=ptime:20
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
m=video 5006 RTP/AVP 100
b=AS:2240
a=sendrecv
a=rtcp:5007 IN IP4 172.16.1.217
a=rtpmap:100 H264/90000
a=fmtp:100 profile-level-id=64001F; packetization-mode=1
a=rtcp-fb:* nack pli
a=rtcp-fb:* ccm fir
a=content:main
a=label:11
Step 2: asterisk send invite message to phone 2
INVITE sip:650001@172.16.1.213;transport=udp SIP/2.0
Via: SIP/2.0/UDP 172.16.1.75:5060;branch=z9hG4bK6af027e0
Max-Forwards: 70
From: <sip:650005@172.16.1.75>;tag=as4802ee08
To: <sip:650001@172.16.1.213;transport=udp>
Contact: <sip:650005@172.16.1.75:5060>
Call-ID: 2fe37d861d3ded1b31df4a8468212c62@172.16.1.75:5060
CSeq: 102 INVITE
User-Agent: asterisk
Date: Mon, 17 Jul 2023 12:56:56 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 356
v=0
o=root 2117605073 2117605073 IN IP4 172.16.1.75
s=asterisk
c=IN IP4 172.16.1.217
b=CT:512
t=0 0
m=audio 5004 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=maxptime:150
a=sendrecv
m=video 5006 RTP/AVP 100
a=rtpmap:100 H264/90000
a=fmtp:100 packetization-mode=1;profile-level-id=64001F
a=sendrecv
Step 3: Phone 2 reply asterisk with message 200OK, SDP and profile-level-id is changed (baseline)
SIP/2.0 200 Ok
Via: SIP/2.0/UDP 172.16.1.75:5060;branch=z9hG4bK6af027e0
From: <sip:650005@172.16.1.75>;tag=as4802ee08
To: <sip:650001@172.16.1.213;transport=udp>;tag=N8zOhLF
Call-ID: 2fe37d861d3ded1b31df4a8468212c62@172.16.1.75:5060
CSeq: 102 INVITE
User-Agent: vipphone-19/4.4.25 - Core/4.4.0
Supported: replaces, outbound, gruu
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO, UPDATE
Contact: <sip:650001@172.16.1.213;transport=udp>;expires=3600;+sip.instance="<urn:uuid:408db02f-15a4-003b-bf33-245aaa0b1712>"
Content-Type: application/sdp
Content-Length: 288
v=0
o=650001 3720 1086 IN IP4 172.16.1.213
s=Talk
c=IN IP4 172.16.1.213
b=AS:3000
t=0 0
m=audio 7078 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
m=video 9078 RTP/AVP 100
a=rtpmap:100 H264/90000
a=fmtp:100 profile-level-id=42801F; packetization-mode=1
Step 4: Asterisk reply message 200OK with SDP, but no profile video to phone 1
SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.16.1.217:5072;branch=z9hG4bK921225804;received=172.16.1.217;rport=5072
From: "650005" <sip:650005@172.16.1.75>;tag=1232538312
To: <sip:650001@172.16.1.75>;tag=as56d917a7
Call-ID: 433826295-5072-6@BHC.BG.B.CBH
CSeq: 51 INVITE
Server: asterisk
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: <sip:650001@172.16.1.75:5060>
Content-Type: application/sdp
Require: timer
Content-Length: 247
v=0
o=root 595057351 595057351 IN IP4 172.16.1.75
s=asterisk
c=IN IP4 172.16.1.213
t=0 0
m=audio 7078 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=maxptime:150
a=sendrecv
m=video 0 RTP/AVP 100
The problem in step 4: I expected Asterisk to include the video attribute in SDP when sending the 200 OK/SDP message to phone 1, but it didn’t happen:
a=rtpmap:100 H264/90000
a=fmtp:100 profile-level-id=42801F; packetization-mode=1
I tested the same scenario with Asterisk 11.18, it worked as expected, the video attribute in SDP when sending the 200 OK/SDP message to phone 1.
Thanks so much!