Re: [OpenSIPS-Users] validate_dialog() failing to recognise reinvites

2021-10-21 Thread Kingsley Tart
Hi, Thanks, that all makes perfect sense. During the tests I had to insert another test and forgot to preserve $rc from validate_dialog() which explains the difference between the -1 I was printing and the -2 that the function would have returned. Thanks for the reference to the RFC. I shall pre

Re: [OpenSIPS-Users] validate_dialog() failing to recognise reinvites

2021-10-20 Thread Bogdan-Andrei Iancu
Hi, So the error log is about the "remote contact", but the return code is -1 ?? (which according to doc [1] means invalid cseq). Checking the code, you should have get a -2 ret code in correlation to that log (see [2]). Now, based on the error log, I see that the dialog module retained the

Re: [OpenSIPS-Users] validate_dialog() failing to recognise reinvites

2021-10-19 Thread Kingsley Tart
Hi, Thanks. I hadn't noticed before but yes, I'm seeing this: ERROR:dialog:dlg_validate_dialog: failed to validate remote contact: dlg=[sip:asterisk@1.1.1.28:5060] , req=[sip:asterisk@1.1.1.28:5060;user=phone] I can't see anywhere in the SIP trace where that contact URI appears *without* user=p

Re: [OpenSIPS-Users] validate_dialog() failing to recognise reinvites

2021-10-19 Thread Bogdan-Andrei Iancu
Hi Kingsley, According to the docs [1], the "-1" ret code means "No  SIP message". Do you see any parsing errors in the logs, while doing the validation? [1] https://opensips.org/html/docs/modules/3.1.x/sipmsgops.html#func_sipmsg_validate Regards, Bogdan-Andrei Iancu OpenSIPS Founder and

[OpenSIPS-Users] validate_dialog() failing to recognise reinvites

2021-10-18 Thread Kingsley Tart
Hi, Using OpenSIPS 3.1.5 I'm getting validate_dialog() returning $rc=-1 on re-invites. I have this in opensips.cfg: modparam("dialog", "dlg_match_mode", 1) The top of route() looks like this: route { if (has_totag()) { if (is_method("ACK") && t_check_trans()) {