[Kamailio-Users] BYE to the wrong IP

Iñaki Baz Castillo ibc at aliax.net
Mon Jan 12 22:37:29 CET 2009


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




More information about the Users mailing list