Hi David, what you wrote could be valid however in the 100 response there is no “Require: 100rel” header and therefore the PRACK is not generated from the source.
I report here the complete sip dialogue between source and Asterisk.
SOURCE => ASTERISK
INVITE sip:+39021234567@xxxx.it;user=phone SIP/2.0
Via: SIP/2.0/UDP 89.89.89.89:5060;branch=z9hG4bKgv8tab00e8gru8kbpmb0.1
To: sip:+39021234567@xxxx.it;user=phone
From: “+390666666666” sip:+390666666666@yyyy.it;user=phone;tag=20643d77-0017-0001-0000-0000
Call-ID: e5de7520d76fc3c-0017-0001-0000-0000@10.5.46.168
CSeq: 1 INVITE
Max-Forwards: 64
Contact: sip:+390666666666@89.89.89.89:5060;transport=udp
Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, MESSAGE, NOTIFY, REGISTER, INFO, REFER, SUBSCRIBE, PUBLISH, PRACK, UPDATE
Supported: 100rel
P-Asserted-Identity: sip:+390666666666@yyyy.it;user=phone;cpc=ordinary
Accept-Contact: *;audio;+g.3gpp.icsi-ref=“urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel”
Accept: application/sdp, application/isup, application/xml
Content-Type: application/sdp
Content-Length: 199
Route: sip:+39021234567@80.65.65.65:5060;user=phone;lr
v=0
o=- 1762684937 1 IN IP4 89.89.89.89
s=-
c=IN IP4 89.89.89.89
t=0 0
m=audio 17178 RTP/AVP 18 8 101
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=maxptime:240
SOURCE <= ASTERISK
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 89.89.89.89:5060;rport=5060;received=89.89.89.89;branch=z9hG4bKgv8tab00e8gru8kbpmb0.1
Call-ID: e5de7520d76fc3c-0017-0001-0000-0000@10.5.46.168
From: “+390666666666” sip:+390666666666@yyyy.it;user=phone;tag=20643d77-0017-0001-0000-0000
To: sip:+39021234567@xxxx.it;user=phone
CSeq: 1 INVITE
Server: GrSBC
Content-Length: 0
SOURCE <= ASTERISK
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 89.89.89.89:5060;rport=5060;received=89.89.89.89;branch=z9hG4bKgv8tab00e8gru8kbpmb0.1
Call-ID: e5de7520d76fc3c-0017-0001-0000-0000@10.5.46.168
From: “+390666666666” sip:+390666666666@yyyy.it;user=phone;tag=20643d77-0017-0001-0000-0000
To: sip:+39021234567@xxxx.it;user=phone;tag=c4ef50c1-fae1-4510-83fe-2967f6a74f91
CSeq: 1 INVITE
Server: GrSBC
Contact: sip:80.65.65.65:5060
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, INFO, MESSAGE, REFER
Require: 100rel
RSeq: 19166
Content-Type: application/sdp
Content-Length: 225
v=0
o=- 1762684937 3 IN IP4 80.65.65.65
s=GrSBC
c=IN IP4 80.65.65.65
t=0 0
m=audio 27956 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:140
a=sendrecv
SOURCE => ASTERISK
PRACK sip:80.65.65.65:5060 SIP/2.0
Via: SIP/2.0/UDP 89.89.89.89:5060;branch=z9hG4bKhffusk0000qc8ur75gk0.1
To: sip:+39021234567@xxxx.it;user=phone;tag=c4ef50c1-fae1-4510-83fe-2967f6a74f91
From: “+390666666666” sip:+390666666666@yyyy.it;user=phone;tag=20643d77-0017-0001-0000-0000
Call-ID: e5de7520d76fc3c-0017-0001-0000-0000@10.5.46.168
CSeq: 2 PRACK
Max-Forwards: 64
RAck: 19166 1 INVITE
Content-Length: 0
SOURCE <= ASTERISK
SIP/2.0 200 OK
Via: SIP/2.0/UDP 89.89.89.89:5060;rport=5060;received=89.89.89.89;branch=z9hG4bKhffusk0000qc8ur75gk0.1
Call-ID: e5de7520d76fc3c-0017-0001-0000-0000@10.5.46.168
From: “+390666666666” sip:+390666666666@yyyy.it;user=phone;tag=20643d77-0017-0001-0000-0000
To: sip:+39021234567@xxxx.it;user=phone;tag=c4ef50c1-fae1-4510-83fe-2967f6a74f91
CSeq: 2 PRACK
Server: GrSBC
Content-Length: 0
SOURCE <= ASTERISK
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 89.89.89.89:5060;rport=5060;received=89.89.89.89;branch=z9hG4bKgv8tab00e8gru8kbpmb0.1
Call-ID: e5de7520d76fc3c-0017-0001-0000-0000@10.5.46.168
From: “+390666666666” sip:+390666666666@yyyy.it;user=phone;tag=20643d77-0017-0001-0000-0000
To: sip:+39021234567@xxxx.it;user=phone;tag=c4ef50c1-fae1-4510-83fe-2967f6a74f91
CSeq: 1 INVITE
Server: GrSBC
Contact: sip:80.65.65.65:5060
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, INFO, MESSAGE, REFER
Require: 100rel
RSeq: 19166
Content-Type: application/sdp
Content-Length: 225
v=0
o=- 1762684937 3 IN IP4 80.65.65.65
s=GrSBC
c=IN IP4 80.65.65.65
t=0 0
m=audio 27956 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:140
a=sendrecv
SOURCE <= ASTERISK
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 89.89.89.89:5060;rport=5060;received=89.89.89.89;branch=z9hG4bKgv8tab00e8gru8kbpmb0.1
Call-ID: e5de7520d76fc3c-0017-0001-0000-0000@10.5.46.168
From: “+390666666666” sip:+390666666666@yyyy.it;user=phone;tag=20643d77-0017-0001-0000-0000
To: sip:+39021234567@xxxx.it;user=phone;tag=c4ef50c1-fae1-4510-83fe-2967f6a74f91
CSeq: 1 INVITE
Server: GrSBC
Contact: sip:80.65.65.65:5060
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, INFO, MESSAGE, REFER
Require: 100rel
RSeq: 19166
Content-Type: application/sdp
Content-Length: 225
v=0
o=- 1762684937 3 IN IP4 80.65.65.65
s=GrSBC
c=IN IP4 80.65.65.65
t=0 0
m=audio 27956 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:140
a=sendrecv
SOURCE <= ASTERISK
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 89.89.89.89:5060;rport=5060;received=89.89.89.89;branch=z9hG4bKgv8tab00e8gru8kbpmb0.1
Call-ID: e5de7520d76fc3c-0017-0001-0000-0000@10.5.46.168
From: “+390666666666” sip:+390666666666@yyyy.it;user=phone;tag=20643d77-0017-0001-0000-0000
To: sip:+39021234567@xxxx.it;user=phone;tag=c4ef50c1-fae1-4510-83fe-2967f6a74f91
CSeq: 1 INVITE
Server: GrSBC
Contact: sip:80.65.65.65:5060
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, INFO, MESSAGE, REFER
Require: 100rel
RSeq: 19166
Content-Type: application/sdp
Content-Length: 225
v=0
o=- 1762684937 3 IN IP4 80.65.65.65
s=GrSBC
c=IN IP4 80.65.65.65
t=0 0
m=audio 27956 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:140
a=sendrecv
SOURCE <= ASTERISK
SIP/2.0 500 Reliable response timed out
Via: SIP/2.0/UDP 89.89.89.89:5060;rport=5060;received=89.89.89.89;branch=z9hG4bKgv8tab00e8gru8kbpmb0.1
Call-ID: e5de7520d76fc3c-0017-0001-0000-0000@10.5.46.168
From: “+390666666666” sip:+390666666666@yyyy.it;user=phone;tag=20643d77-0017-0001-0000-0000
To: sip:+39021234567@xxxx.it;user=phone;tag=c4ef50c1-fae1-4510-83fe-2967f6a74f91
CSeq: 1 INVITE
Server: GrSBC
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, INFO, MESSAGE, REFER
Supported: 100rel, replaces, norefersub
Content-Length: 0