Hi Vlad. Ok now it's a bit clear. 
What i am trying to do is to solve the following issue:

PBX<--->Opensips<---->Lync server

Opensips acts as UDP/TCP proxy. Call can go from PBX to LYNC and viceversa.
The problem comes when from LYNC I put on hold the call. Everytime i get the
following error, just after i press hold button on LYNC:

*Oct 11 13:43:04 opensips /usr/local/opensips_proxy/sbin/opensips[9512]:
ERROR:dialog:dlg_validate_dialog: failed to validate remote contact:
dlg=[sip:[email protected];transport=UDP;user=phone] ,
req=[sip:[email protected];user=phone]*

So I want to solve it!!

Now I tried to put " fix_route_dialog() " in sequential requestes but
problem is still present. Maybe i did not understand where to put it or how
to use it. Can you help me?

if (has_totag()) {
                # sequential request withing a dialog should
                # take the path determined by record-routing
                if (loose_route()) {
                        
                        # validate the sequential request against dialog
                        if ( $DLG_status!=NULL && !validate_dialog() ) {
                                xlog("In-Dialog $rm from $si (callid=$ci) is 
not valid according to
dialog\n");
                                ## exit;
                        }
                        
                        if (is_method("BYE")) {
                                setflag(1); # do accounting ...
                                setflag(3); # ... even if the transaction fails
                        } else if (is_method("INVITE")) {
                                # even if in most of the cases is useless, do 
RR for
                                # re-INVITEs alos, as some buggy clients do 
change route set
                                # during the dialog.
                                record_route();
                                *fix_route_dialog();*
                
                        }



Thanks




--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/dlg-validate-dialog-Error-help-tp7582200p7582210.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to