[OpenSIPS-Users] ERROR:dialog:dlg_validate_dialog:

Satish Patel satish.txt at gmail.com
Wed Mar 18 21:47:47 CET 2015


I know you guys are super busy in OpenSIPS 2.1 release, but any suggestion
on above issue?

On Wed, Mar 18, 2015 at 12:17 AM, Satish Patel <satish.txt at gmail.com> wrote:

> I am getting following error in log, I can understand my contact: and
> Route: values mismatching here. why it is happening? is there a way to get
> rid on this error?
>
> Following is scenario. Only getting error in BYE message.
>
> [UA]--------[OpenSIP]-------[Freeswitch]---------[Opensip]---------[SIP
> Provide]
>
>
> ERROR:dialog:dlg_validate_dialog: failed to validate remote contact:
> dlg=[sip:16463737221 at 188.178.235.222:5061;transport=udp] ,
> req=[sip:188.178.235.222;lr;ftag=840e2e35;did=1f4.ca6a6956]
>
> I am using fix_route_dialog() in loose_route()
>
> if (has_totag()) {
>                 # sequential request withing a dialog should
>                 # take the path determined by record-routing
>                 if (loose_route() || match_dialog())  {
>                         if ($DLG_status!=NULL && !validate_dialog() ) {
>                                 xlog(" in-dialog bogus request \n");
>                                 fix_route_dialog();
>                          }
>
>                         xlog("L_INFO", "Loose route failed on
> $hdr(route)\n");
>                         if (is_method("BYE")) {
>                                 #setflag(ACC_DO); # do accounting ...
>                                 #setflag(ACC_FAILED); # ... 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();
>                         }
>
>                         if (check_route_param("nat=yes"))
>                                 setflag(NAT);
>
>                         # route it out to whatever destination was set by
> loose_route()
>                         # in $du (destination URI).
>                         route(relay);
>                      }  else {
>
>                         if ( is_method("ACK") ) {
>                                 if ( t_check_trans() ) {
>                                         # non loose-route, but stateful
> ACK; must be an ACK after
>                                         # a 487 or e.g. 404 from upstream
> server
>                                         xlog("non loose-route section\n");
>                                         t_relay();
>                                         exit;
>                                 } else {
>                                         # ACK without matching transaction
> ->
>                                         # ignore and discard
>                                         xlog("ACK without matching
> transaction\n");
>                                         exit;
>                                 }
>                         }
>                         xlog("L_INFO", "destination uri after loose_route:
> <$du>\n");
>                         sl_send_reply("404","Not here");
>                 }
>                 exit;
>         }
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150318/f2f75c9d/attachment.htm>


More information about the Users mailing list