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