[OpenSER-Users] Fixing wrong SDP with "textutils" module (LF -> CRLF)

Iñaki Baz Castillo ibc at in.ilimit.es
Thu May 15 12:22:35 CEST 2008


El Thursday 15 May 2008 12:14:19 Iñaki Baz Castillo escribió:
> El Thursday 15 May 2008 11:42:46 Iñaki Baz Castillo escribió:
> >   if ($si == NORTEL_CS2K_IP)
> >     replace_body("\n$", "\r\n");
>
> I mean:
>
>    replace_body_all("\n$", "\r\n");

Better:

  replace_body_all("\n", "\r\n");

because $ is the end of the SDP and not the end of each line.



-- 
Iñaki Baz Castillo
ibc at in.ilimit.es




More information about the Users mailing list