<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Razvan,</div><div class="gmail_default" style="font-family:tahoma,sans-serif">Thanks ! I tried what you indicated but I don’t see the contact changing. Im taking care of the fix contacts where it needs to be bet but still on the bye it can’t find it. </div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">root@gcwregistrar151:~$ opensipsctl fifo dlg_list. <b>(Call Connected)</b></div><div class="gmail_default" style="font-family:tahoma,sans-serif">dialog:: ID=5820137817639</div><div class="gmail_default" style="font-family:tahoma,sans-serif"> state:: 4</div><div class="gmail_default" style="font-family:tahoma,sans-serif"> user_flags:: 0</div><div class="gmail_default" style="font-family:tahoma,sans-serif"> timestart:: 1532043804</div><div class="gmail_default" style="font-family:tahoma,sans-serif"> datestart:: 2018-07-19 19:43:24</div><div class="gmail_default" style="font-family:tahoma,sans-serif"> timeout:: 1532044163</div><div class="gmail_default" style="font-family:tahoma,sans-serif"> dateout:: 2018-07-19 19:49:23</div><div class="gmail_default" style="font-family:tahoma,sans-serif"> callid:: fp436dll6pcmdqk78gn6</div><div class="gmail_default" style="font-family:tahoma,sans-serif"> from_uri:: <a href="mailto:sip%3Auser@domain.com">sip:user@domain.com</a></div><div class="gmail_default" style="font-family:tahoma,sans-serif"> to_uri:: <a href="mailto:sip%3A18889990000@domain.com">sip:18889990000@domain.com</a></div><div class="gmail_default" style="font-family:tahoma,sans-serif"> caller_tag:: 1i4vfmjico</div><div class="gmail_default" style="font-family:tahoma,sans-serif"> caller_contact:: sip:lccpphv2@192.168.202.3:51292;transport=wss;ob</div><div class="gmail_default" style="font-family:tahoma,sans-serif"> callee_cseq:: 0</div><div class="gmail_default" style="font-family:tahoma,sans-serif"> caller_route_set:: </div><div class="gmail_default" style="font-family:tahoma,sans-serif"> caller_bind_addr:: wss:<a href="http://10.101.10.151:443">10.101.10.151:443</a></div><div class="gmail_default" style="font-family:tahoma,sans-serif"> caller_sdp:: </div><div class="gmail_default" style="font-family:tahoma,sans-serif"> CALLEES:: </div><div class="gmail_default" style="font-family:tahoma,sans-serif"> callee:: </div><div class="gmail_default" style="font-family:tahoma,sans-serif"> callee_tag:: d651df12-c9c2-4db1-99ad-b15d6240ffee</div><div class="gmail_default" style="font-family:tahoma,sans-serif"> callee_contact:: sip:<a href="http://10.101.10.161:5060">10.101.10.161:5060</a></div><div class="gmail_default" style="font-family:tahoma,sans-serif"> caller_cseq:: 1094</div><div class="gmail_default" style="font-family:tahoma,sans-serif"> callee_route_set:: </div><div class="gmail_default" style="font-family:tahoma,sans-serif"> callee_bind_addr:: udp:<a href="http://10.101.10.151:5060">10.101.10.151:5060</a></div><div class="gmail_default" style="font-family:tahoma,sans-serif"> callee_sdp:: </div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">root@gcwregistrar151:~$ opensipsctl fifo dlg_list <b>(Call on Hold )</b></div><div class="gmail_default" style="font-family:tahoma,sans-serif">dialog:: ID=5820137817639</div><div class="gmail_default" style="font-family:tahoma,sans-serif"> state:: 4</div><div class="gmail_default" style="font-family:tahoma,sans-serif"> user_flags:: 0</div><div class="gmail_default" style="font-family:tahoma,sans-serif"> timestart:: 1532043804</div><div class="gmail_default" style="font-family:tahoma,sans-serif"> datestart:: 2018-07-19 19:43:24</div><div class="gmail_default" style="font-family:tahoma,sans-serif"> timeout:: 1532044163</div><div class="gmail_default" style="font-family:tahoma,sans-serif"> dateout:: 2018-07-19 19:49:23</div><div class="gmail_default" style="font-family:tahoma,sans-serif"> callid:: fp436dll6pcmdqk78gn6</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><div class="gmail_default"> from_uri:: <a href="mailto:sip%3Auser@domain.com">sip:user@domain.com</a></div><div class="gmail_default"> to_uri:: <a href="mailto:sip%3A18889990000@domain.com">sip:18889990000@domain.com</a></div></div><div class="gmail_default" style="font-family:tahoma,sans-serif"> caller_tag:: 1i4vfmjico</div><div class="gmail_default" style="font-family:tahoma,sans-serif"> caller_contact:: sip:lccpphv2@192.168.202.3:51292;transport=wss;ob</div><div class="gmail_default" style="font-family:tahoma,sans-serif"> callee_cseq:: 0</div><div class="gmail_default" style="font-family:tahoma,sans-serif"> caller_route_set:: </div><div class="gmail_default" style="font-family:tahoma,sans-serif"> caller_bind_addr:: wss:<a href="http://10.101.10.151:443">10.101.10.151:443</a></div><div class="gmail_default" style="font-family:tahoma,sans-serif"> caller_sdp:: </div><div class="gmail_default" style="font-family:tahoma,sans-serif"> CALLEES:: </div><div class="gmail_default" style="font-family:tahoma,sans-serif"> callee:: </div><div class="gmail_default" style="font-family:tahoma,sans-serif"> callee_tag:: d651df12-c9c2-4db1-99ad-b15d6240ffee</div><div class="gmail_default" style="font-family:tahoma,sans-serif"> callee_contact:: sip:<a href="http://10.101.10.161:5060">10.101.10.161:5060</a></div><div class="gmail_default" style="font-family:tahoma,sans-serif"> caller_cseq:: 1095</div><div class="gmail_default" style="font-family:tahoma,sans-serif"> callee_route_set:: </div><div class="gmail_default" style="font-family:tahoma,sans-serif"> callee_bind_addr:: udp:<a href="http://10.101.10.151:5060">10.101.10.151:5060</a></div><div class="gmail_default" style="font-family:tahoma,sans-serif"> callee_sdp:: </div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 16, 2018 at 7:55 AM, Răzvan Crainea <span dir="ltr"><<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, Sebastian!<br>
<br>
The re-invite probably generates a remote contact update. And if you don't "fix" the contact on re-invites and their 200 OK, you might end up with broken contacts in the dialog, thus sequential signaling will not work.<br>
I suggest you do two things to debug this:<br>
1. remove the fix_route_dialog() call - the call should still be routed according to RR information, presuming this information is correct.<br>
2. start the call, run `opensipsctl fifo dlg_list` and write down the WSS's contact, then put the call on hold, and check again the contact.<br>
<br>
Best regards,<br>
Răzvan<div><div class="h5"><br>
<br>
On 07/13/2018 09:19 PM, Sebastian Sastre wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<br>
Hello, I’ve been experiencing a situation with Proto WSS. The scenario is very simple. A call is established from an Asterisk Box to Opensips (UDP) and finally a SipJs7.8 (WSS). Everything works great and we are able to register using mid registrar and pass calls thru.<br>
<br>
When an agent puts the call on hold a reinvite is correctly negotiated and the call is placed on hold and viceversa. However!, if the originating caller disconnects the call while still on hold, Asterisk will correctly terminate the dialog with a Bye but when OpenSIPs will complain about not finding a suitable tcp connection and responds with a 477 even after successfully matching and processing the dialog termination correctly.<br>
<br>
opensipsctl fifo list_tcp_conns shows the connection available.<br>
<br>
The only way I found of fixing this problem is by adding fix_route_dialog() on the sequential loose route.<br>
<br>
if (loose_route()) {<br>
if (is_method("BYE")) {<br>
if (!validate_dialog()){<br>
fix_route_dialog();<br>
}<br>
<br>
What do you guys think?<br>
Am I messing up something in the script or is this the correct way to address this problem?<br>
<br>
The funny thing is that there is no difference notable between the bye after hold and a regular bye without putting the call on hold.<br>
Here is the opensips log with the error and the trace.<br>
<br>
<a href="https://pastebin.com/BEJ6fAR8" rel="noreferrer" target="_blank">https://pastebin.com/BEJ6fAR8</a><br>
<br>
Thanks !<br>
<br>
<br>
<br></div></div>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
Răzvan Crainea<br>
OpenSIPS Core Developer<br>
<a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">http://www.opensips-solutions.<wbr>com</a><br>
<br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
</font></span></blockquote></div><br></div>