Thank you for the suggestion I'll take a look at that.
/Danny
-----Original Message-----
From: users-bounces(a)lists.kamailio.org [mailto:users-bounces@lists.kamailio.org] On Behalf
Of Iñaki Baz Castillo
Sent: den 12 januari 2009 22:37
To: users(a)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(a)lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users