[Kamailio-Users] BYE to the wrong IP

Danny Fröberg danny.froberg at foreststar.net
Mon Jan 12 22:51:05 CET 2009


Thank you for the suggestion I'll take a look at that.

/Danny

-----Original Message-----
From: users-bounces at lists.kamailio.org [mailto:users-bounces at lists.kamailio.org] On Behalf Of Iñaki Baz Castillo
Sent: den 12 januari 2009 22:37
To: users at lists.kamailio.org
Subject: Re: [Kamailio-Users] BYE to the wrong IP

El Lunes, 12 de Enero de 2009, Danny Fröberg escribió:

> onreply_route[ 1 ] {
>         fix_nated_contact();
>         force_rport();
>         if ( ! search( "^Content-Length:\ 0" ) ) {
>                 fix_nated_sdp( "3" );
>         };
> }

Hi, don't use:
  search( "^Content-Length:\ 0" )

It requires searching all the message looking for a header. And it will not
match the abbrebiated mode of Content-Length header:
  l: 0

Use the pseudovariable $cl:
  http://kamailio.org/dokuwiki/doku.php/pseudovariables:devel#content-length




--
Iñaki Baz Castillo

_______________________________________________
Kamailio (OpenSER) - Users mailing list
Users at lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users




More information about the Users mailing list