SIP VOIP : 488 Not Acceptable Here

Quelqu’un peux me dire ce qui ne vas pas dans ma requête, je suis en train de dev une application voip, les websockets fonctionnent et j’arrive a me register mais les appels ne passent pas, voici a quoi ressemble ma requête :
(j’ai remplacé certaines information de serveur par ----)

INVITE sip:----@---- SIP/2.0
Via: SIP/2.0/WSS y5cjyfohqsey.invalid;branch=z9hG4bK4251433620000000
Max-Forwards: 69
To: <sip:----@---->
From: "name" <----@---->;tag=h0067p43l1
Call-ID: awznn39z5e1959390c97
CSeq: 399 INVITE
Contact: <sip:----@y5cjyfohqsey.invalid;transport=wss;ob>
Content-Type: application/sdp
Session-Expires: 120
Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO
Supported: timer,ice,replaces,outbound
User-Agent: Dart SIP Client v1.0.0
Content-Length: 4426

v=0
o=- 14072648802025589 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0 1
a=extmap-allow-mixed
a=msid-semantic: WMS 16d5d2c8-8b22-47d3-b3e6-05554ed6727f
m=audio 51979 UDP/TLS/RTP/SAVPF 111 63 103 104 9 102 0 8 106 105 13 110 112 113 126
c=IN IP4 77.205.53.229
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:180044992 1 udp 2122260223 192.168.43.111 51979 typ host generation 0 network-id 3 n

Ton SDP n’a qu’une seul track et ton BUNDLE en indique 2. 488 est majoritairement un souci de nego de media ce qui est ton cas. Tu as du activé la video est pas ajouté la track video.

Merci, j’ai corrigé mais je n’arrive toujours pas à passer le moindre appel : en fait je code en Flutter et j’utilise la seule bibliothèque fonctionnelle : Dart SIP UA, comme je l’ai dit quand je me REGISTER ca marche cependant, lorsque je lance un appel les requêtes semble mal se générer, en effet quand je regarde les logs je vois ça :

I/flutter (25834): [2022-04-29 10:28:27.979] Level.debug rtc_session.dart:1684 ::: emit "sdp"
I/flutter (25834): [2022-04-29 10:28:27.984] Level.debug rtc_session.dart:2292 ::: emit "sending" [request]
I/flutter (25834): [2022-04-29 10:28:27.995] Level.debug transport.dart:167 ::: send()
I/flutter (25834): [2022-04-29 10:28:27.999] Level.debug sip_message.dart:275 ::: Outgoing Message: v=0
I/flutter (25834): o=- 4506927224027681378 2 IN IP4 127.0.0.1
I/flutter (25834): s=-
I/flutter (25834): t=0 0
I/flutter (25834): a=group:BUNDLE 0
I/flutter (25834): a=extmap-allow-mixed
I/flutter (25834): a=msid-semantic: WMS 557214c7-1d6a-4e84-bd3a-ed0da452c126
I/flutter (25834): m=audio 38666 UDP/TLS/RTP/SAVPF 111 63 103 104 9 102 0 8 106 105 13 110 112 113 126
I/flutter (25834): c=IN IP4 77.205.143.233
I/flutter (25834): a=rtcp:9 IN IP4 0.0.0.0
I/flutter (25834): a=candidate:180044992 1 udp 2122260223 192.168.43.111 38666 typ host generation 0 network-id 3 network-cost 10
I/flutter (25834): a=candidate:559267639 1 udp 2122202367 ::1 56181 typ host generation 0 network-id 2
I/flutter (25834): a=candidate:1510613869 1 udp 2122129151 127.0.0.1 37110 typ host generation 0 network-id 1
I/flutter (25834): a=candidate:842163049 1 udp 1686052607 77.205.143.233 38666 typ srflx raddr 192.168.43.111 rport 38666 generation 0 network-id 3 network-cost 10
I/flutter (25834): a=candidate:1876313031 1 tcp 1518222591 ::1 60703 typ host tcptype passive generation 0 network-id 2
I/flutter (25834): a=candidate:344579997 1 tcp 1518149375 127.0.0.1 59068 typ host tcptype passive generation 0 network-id 1
I/flutter (25834): a=i
I/flutter (25834): [2022-04-29 10:28:28.3] Level.debug websocket_interface.dart:130 ::: send()
I/flutter (25834): [2022-04-29 10:28:28.10] Level.debug websocket_dart_impl.dart:49 ::: send:
I/flutter (25834):
I/flutter (25834): INVITE sip:----@---- SIP/2.0
I/flutter (25834): Via: SIP/2.0/WSS ymadfpsnyljk.invalid;branch=z9hG4bK1193479090000000
I/flutter (25834): Max-Forwards: 69
I/flutter (25834): To: sip:----@----
I/flutter (25834): From: "getuser" sip:----@----;tag=311f4go2ic
I/flutter (25834): Call-ID: 8l31571793058e65k420
I/flutter (25834): CSeq: 2975 INVITE
I/flutter (25834): Contact: sip:----@ymadfpsnyljk.invalid;transport=wss;ob
I/flutter (25834): Content-Type: application/sdp
I/flutter (25834): Session-Expires: 120
I/flutter (25834): Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO
I/flutter (25834): Supported: timer,ice,replaces,outbound
I/flutter (25834): User-Agent: Dart SIP Client v1.0.0
I/flutter (25834): Content-Length: 2295
I/flutter (25834):
I/flutter (25834): v=0
I/flutter (25834): o=- 4506927224027681378 2 IN IP4 127.0.0.1
I/flutter (25834): s=-
I/flutter (25834): t=0 0
I/flutter (25834): a=group:BUNDLE 0
I/flutter (25834): a=extmap-allow-mixed
I/flutter (25834): a=msid-semantic: WMS 557214c7-1d6a-4e84-bd3a-ed0da452c126
I/flutter (25834): m=audio 38666 UDP/TLS/RTP/SAVPF 111 63 103 104 9 102 0 8 106 105 13 110 112 113 126
I/flutter (25834): c=IN IP4 77.205.143.233
I/flutter (25834): a=rtcp:9 IN IP4 0.0.0.0
I/flutter (25834): a=candidate:180044992 1 udp 2122260223 192.168.43.111 38666 typ host generation 0 network-id 3

j’ai crée un problème sur le github de la bibliothèque en question.
https://github.com/flutter-webrtc/dart-sip-ua/issues/279

Ton SDP n’est toujours pas bon, tu as des codecs défini mais pas dans le rtpmap. Je ne connais pas ta lib, mais y a clairement un souci de ce côté là.

Perso. je pense que la bibliothèque est explosax mais écoutez, en Flutter, voyez-vous, il y à pas des milliers de bibliothèques qui permettent de faire ça…

Il semblerait que cette bibliothèque génère le SDP suivant :

v=0
o=- 6713068100186582407 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0
a=extmap-allow-mixed
a=msid-semantic: WMS 50d4c15d-4cab-45c4-a13d-3ef518873b50
m=audio 59700 UDP/TLS/RTP/SAVPF 111 63 103 9 102 0 8 105 13 110 113 126
c=IN IP4 86.206.141.235
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:1728331434 1 udp 2122260223 192.168.0.116 59700 typ host generation 0 network-id 3 network-cost 10
a=candidate:559267639 1 udp 2122202367 ::1 45242 typ host generation 0 network-id 2
a=candidate:1510613869 1 udp 2122129151 127.0.0.1 47713 typ host generation 0 network-id 1
a=candidate:842163049 1 udp 1686052607 86.206.141.235 59700 typ srflx raddr 192.168.0.116 rport 59700 generation 0 network-id 3 network-cost 10
a=candidate:1876313031 1 tcp 1518222591 ::1 57677 typ host tcptype passive generation 0 network-id 2
a=candidate:344579997 1 tcp 1518149375 127.0.0.1 54872 typ host tcptype passive generation 0 network-id 1
a=ice-ufrag:6XEH
a=ice-pwd:tsAGQOMRa0Vxo+1Q9VBfWSIR
a=ice-options:trickle renomination
a=fingerprint:sha-256 42:88:74:4F:A0:B5:42:6A:3C:EC:B5:11:52:FC:A0:36:29:E1:6F:7C:97:20:C2:D4:14:EC:8B:B1:F1:41:F8:97
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:50d4c15d-4cab-45c4-a13d-3ef518873b50 84d83cef-6144-4480-9505-5a3961be01f9
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:102 ILBC/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:1249176879 cname:AbAmU8TA0snthJ02
a=ssrc:1249176879 msid:50d4c15d-4cab-45c4-a13d-3ef518873b50 84d83cef-6144-4480-9505-5a3961be01f9
a=ssrc:1249176879 mslabel:50d4c15d-4cab-45c4-a13d-3ef518873b50
a=ssrc:1249176879 label:84d83cef-6144-4480-9505-5a3961be01f9

est-il correct ? (J’ai toujours 488 not acceptable here)

Comme ça il semble mieux. Faudrait regarder les logs d’asterisk pour voir si tu as plus d’infos. Conseil si tu dev une app mobile, utilise du turn et pas du stun par défaut ça va t’éviter pas mal de souci de Nat.