<div dir="ltr">Hello,<br><br>I am experiencing strange behaviour from one specific provider.<br>80% of calls work properly, some of them fall into the validate_dialog condition, returncode = -1<br>i've checked INVITE and ACK message , i don't see anything that could cause that.<br>fix_dialog_route seems to fix the problem but I would love to understand what is causing it.<br>i noticed that with other providers when the dialog is not valid there is an ERROR message in the log files<br>"ERROR:dialog:dlg_validate_dialog: failed to validate remote contact"<br>with this one , there is no error.<br>I compared the call with another working one from the same provider , I see no difference.<br>Here are the initial invite, the 200 ok from opensips to provider, and the ACK that does not match during dialog validation.<br><br>proxyfqdn.example:  my opensips FQDN<br>pro.vid.der.ip : provider ip address<br>my.pbx.behind.opensips.ip : my pbx behind opensips (asterisk box)<br><br>INITIAL INVITE : <br><br>INVITE sip:0100000010@proxyfqdn.example SIP/2.0<br>Via: SIP/2.0/UDP pro.vid.der.ip:5060;branch=z9hG4bK695c5157<br>Max-Forwards: 70<br>From: "anonymous" <sip:6134673@pro.vid.der.ip>;tag=as6a0e2632<br>To: <sip:0100000010@proxyfqdn.example><br>Contact: <sip:6134673@pro.vid.der.ip:5060><br>Call-ID: 0211c8466462c5e942f58e7479e81c08@pro.vid.der.ip:5060<br>CSeq: 102 INVITE<br>User-Agent: Asterisk PBX 18.3.0<br>Date: Mon, 17 Apr 2023 18:52:49 GMT<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE<br>Supported: replaces, timer<br>X-ADDTIONAL-UUID: <p(<<br>Privacy: id<br>P-Asserted-Identity: <sip:+XXXXXXXXX@pro.vid.der.ip:5060><br>XSHDATAID: T1798<br>Diversion: <sip:+XXXXXXXXXX@pro.vid.der.ip>;reason=unconditional<br>Content-Type: application/sdp<br>Content-Length: 250<br><br>v=0<br>o=root 665874795 665874795 IN IP4 pro.vid.der.ip<br>s=Asterisk PBX 18.3.0<br>c=IN IP4 pro.vid.der.ip<br>t=0 0<br>m=audio 7162 RTP/AVP 8 101<br>a=rtpmap:8 PCMA/8000<br>a=rtpmap:101 telephone-event/8000<br>a=fmtp:101 0-16<br>a=ptime:20<br>a=maxptime:150<br>a=sendrecv<br><br><br>--------------------------------------<br><br>200 OK (Proxy to provider)<br><br>SIP/2.0 200 OK<br>Via: SIP/2.0/UDP pro.vid.der.ip:5060;branch=z9hG4bK695c5157<br>Record-Route: <sip:pro.xy.ip.address:5060;lr;ftag=as6a0e2632;did=1bc.b66272e6><br>From: "anonymous" <sip:6134673@pro.vid.der.ip>;tag=as6a0e2632<br>To: <sip:0100000010@proxyfqdn.example>;tag=as2b2572fa<br>Call-ID: 0211c8466462c5e942f58e7479e81c08@pro.vid.der.ip:5060<br>CSeq: 102 INVITE<br>Server: Asterisk PBX 13.11.2<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE<br>Supported: replaces, timer<br>Session-Expires: 1800;refresher=uas<br>Contact: <sip:+XX100000010@my.pbx.behind.opensips.ip:5060><br>Content-Type: application/sdp<br>Require: timer<br>Content-Length: 237<br><br>v=0<br>o=root 1475118129 1475118129 IN IP4 my.pbx.behind.opensips.ip<br>s=MYMEDIASERVER<br>c=IN IP4 my.pbx.behind.opensips.ip<br>t=0 0<br>m=audio 17486 RTP/AVP 8 101<br>a=rtpmap:8 PCMA/8000<br>a=rtpmap:101 telephone-event/8000<br>a=fmtp:101 0-16<br>a=maxptime:150<br>a=sendrecv<br><br>--------------------------------------------------------<br><br>ACK that cause dialog invalidation :<br><br><br>ACK sip:+XX100000010@my.pbx.behind.opensips.ip:5060 SIP/2.0<br>Via: SIP/2.0/UDP pro.vid.der.ip:5060;branch=z9hG4bK11c1df1f<br>Route: <sip:pro.xy.ip.address:5060;lr;ftag=as6a0e2632;did=1bc.b66272e6><br>Max-Forwards: 70<br>From: "anonymous" <sip:6134673@pro.vid.der.ip>;tag=as6a0e2632<br>To: <sip:0100000010@proxyfqdn.example>;tag=as2b2572fa<br>Contact: <sip:6134673@pro.vid.der.ip:5060><br>Call-ID: 0211c8466462c5e942f58e7479e81c08@pro.vid.der.ip:5060<br>CSeq: 102 ACK<br>User-Agent: Asterisk PBX 18.3.0<br>Content-Length: 0<br></div>